Questions tagged [pycharm]

A Python Integrated Development Environment (IDE)

Filter by
Sorted by
Tagged with
0
votes
1answer
25 views

Unable to install gdal2tiles on PyCharm

I have installed gdal 2.4.1 while installing gdal2tiles. I am getting this error: ERROR: Could not find a version that satisfies the requirement GDAL==2.4.1 (from gdal2tiles) (from versions: 1....
1
vote
2answers
28 views

ArcPy update a field based on the value of another field containing wildcard text

I have a file geodatabase feature class (fc). I want to update Field 1 (Colour) with text where Field 2 (Description) contains a certain word. ie. Field 2 contains the string 'the ball is red and ...
0
votes
2answers
63 views

Importing ArcPy installed with ArcGIS Pro in PyCharm

I am trying to import arcpy in a script, which is running in a PyCharm environment using the Python 3.6.6 installation that comes bundled with ArcGIS Pro 2.3.2 as the base interpreter. I get the ...
3
votes
1answer
96 views

Import qgis.core in PyCharm: “No Module Named Pyqt5.Qtcore”

I would like to work on Python script with tools from qgis in a standalone software (like Pycharm or IDLE). I am quite new with Python programming and with setting up a work environnement. In order ...
13
votes
6answers
1k views

PyCharm 2019 is not working with QGIS anymore

Since the update to PyCharm 2019 I am unable to load the QGIS Python modules. I can not use auto completion either. I already deleted the cache (by invalidating the cache in PyCharm and also by ...
1
vote
1answer
84 views

QGIS: prefixPath() gives NULL in PyCharm

I have installed QGIS 2.18, QGIS 3.8 and OSGeo on a Windows machine. I tried to set up a PyCharm environment for PyQGIS coding, but I can't initialize the OGR provider to import shapefiles. Here's ...
6
votes
1answer
2k views

Using PyCharm with QGIS 3?

I've just changed to QGIS 3 and I can't figure out why I can't change from Python 2.7 to Python 3.6 in PyCharm, keep getting invalid SDK! I run this .bat-file: SET OSGEO4W_ROOT=C:\OSGeo4W64 SET ...
2
votes
0answers
34 views

IDE PyCharm settings for developing a QGIS plugin

How do i setup pycharm to recognize QGIS modules? IDE: PyCharm OS: Ubuntu 18.04 QGIS: 3.8 example of imports this answer is very close to the solution but I cannot add the interpreter location I'...
1
vote
1answer
48 views

Importing shapefile into PyCHARM with QgsVectorLayer “Layer is not valid”

I'm using PyCharm with QGIS3 and Python3. I tried this code to import a shape file and the other to connect to PostGIS vector layer. The codes goes right on the python console of QGIS, but in the ...
2
votes
1answer
2k views

IDE (PyCharm) settings for developing with Processing in Linux (Ubuntu)

How to setup Python interpreter in IDE to develop using Processing module? I need this not for running from IDE, but to have tips about classes, methods, arguments etc. IDE: PyCharm 2016.3 (but ...
0
votes
0answers
110 views

QGIS error - ValueError: PyCapsule_GetPointer called with incorrect name Ask

I'm trying to use to PyQGIS from PyCharm environment, and used those guides to try and install it: Guide 1 Guide 2 I don't have GRASS on my computer, so in guide 2 I deleted it. Now, when I try to ...
0
votes
1answer
46 views

Importing ArcPy in PyCharm?

>>> import arcpy Traceback (most recent call last): File "<stdin>", line 1, in <module> File "D:\Program Files (x86)\ArcGIS10.5\Desktop10.5\ArcPy\arcpy\__init__.py", line 22, ...
0
votes
1answer
65 views

`pyproj` initialization error in PyCharm but not in cmd?

I am currently struggling to get pyproj to initialize when running in PyCharm. Oddly enough, I am able to get it to work in cmd. The version of pyproj I am using is 1.9.6, and the version of proj4 I ...
0
votes
1answer
48 views

PyQgs: unresolved reference for QgsProject() and QgsVectorLayer()

In my code I'm using the classes QgsProject() and QgsVectorLayer(). However PyCharm gives me the following error: Unresolved reference 'QgsProject' Inspection info: This inspection detects names ...
1
vote
1answer
88 views

Adding vector layer in QGIS with standalone PyCharm script?

I've been struggling with a standalone script in PyCharm, trying to add a vector layer. I've set up PyCharm with Python3.7 to work with QGIS3 using: http://spatialgalaxy.net/2014/10/09/a-quick-guide-...
13
votes
5answers
14k views

Setting up PyCharm to reference ArcPy?

How would I setup PyCharm to recognize import arcpy? I'd like to use PyCharm to develop and debug geoprocessing tool.
2
votes
1answer
56 views

Creating and calling virtual environment to run ArcPy script?

I'm getting a new computer and am trying to set up my virtual environments the right way. In the past, I've just been using PyCharm and running everything through "C:\Python27\ArcGIS10.6" so it's a ...
4
votes
2answers
1k views

Set up PyCharm for PyQGIS 3 development

I'd like to setup PyCharm for PyQGIS 3 development. There is a good guide for PyQGIS 2, but those steps only make python 2 available, and I want to use python 3. Selecting python3 as interpreter ...
0
votes
0answers
62 views

No module named 'qgis' only in IDE?

I'm working with pycharm 3.7 on win 8.1 with anaconda. Im trying to import qgis with no success. after reading this link I succeeded to import qgis when runing python from terminal but not from IDE. ...
0
votes
0answers
50 views

Python script kills the data of QGIS Project

i´ve a problem with a script, working fine until last month and there is no idea coming up what to do. I use PyCharm 2017.3.7 for this script because every Version above 2018.3.3 do not work with QGIS ...
1
vote
2answers
126 views

Automating calculation of NDVI with rasterio?

I want to automate this code below for other 99 images, the problem that I have is that each image is in its specific folder as it's mentioned in the picture below. the images are very big and I want ...
0
votes
1answer
131 views

How to access/edit QGIS3 Plugin folder in Flatpak version from external software in Linux Mint 19.1?

I am glad to share my first question in this forum with you. I hope I can formulate the problem correctly. I have been working in a QGIS3 Python plugin in a Windows system with QGIS 3.8. From today ...
0
votes
1answer
75 views

Adding QGIS-specific Python interpreter to PyCharm on MacOS?

I have seen the below question, and searched around the internet for a tutorial for instructions on getting Pycharm CE to recognise the QGIS package. I have found which interpreter that QGIS is using, ...
6
votes
1answer
2k views

Adding QGIS-specific Python interpreter to PyCharm on Windows?

I am having trouble adding a QGIS-specific Python interpreter to PyCharm. Ideally, I would like to be able to switch between both Python2 and Python3 in PyCharm. I thought this might be possible by ...
0
votes
1answer
122 views

arcpy SelectLayerByAttribute_management runs in the Python window in ArcGIS Pro, but fails to run from Spyder or PyCharm

I have this script for querying a feature layer and then copying to a geodatabase. It works when I run it in the ArcGIS Pro Python window, but not when I run it from Spyder or PyCharm. When I run in ...
1
vote
0answers
122 views

PyCharm and ArcGIS Pro issue: Arcpy Must Run From Inside the Conda Environment,

I am getting the following error when running my python scripts in Pycharm, does anybody know how to fix it? it is very odd, because it was working just fine, then installed some updates on ArcGIS Pro ...
2
votes
1answer
150 views

PyQGIS standalone app with pycharm : exit code -1073741819 (0xC0000005)

I try to run standalone PyQgis code with PyCharm, but I always have this result : Process finished with exit code -1073741819 (0xC0000005) I tried my code line by line, and this result appear after ...
0
votes
0answers
315 views

Can't open shapefile with GeoPandas

I downloaded a shapefile from the Brazilian Institute of Geography and Statistics (IBGE). I can open it on QGIS and work with it perfectly there, but I need to work with it using Python. I'm trying ...
3
votes
1answer
78 views

Making Upload button for shapefile in QGIS plugin?

I am new to Plugin Builder and creating my first plugin called NearestNeighbour. The below is GUI of my plugin made using Qt Creator I read in this link that it is important to rename Dialog Box, ...
0
votes
0answers
49 views

Loading shapefile using ArcPy in Pycharm?

I want to use ArcPy and pycharm to do zonal statistics. When I loaded shapefile just as I did in the python console in arcgis, the pycharm identifies the shapefile as string type and I got the ERROR ...
2
votes
1answer
602 views

How to convert a spatial Oracle LOB object type to a Geodataframe listlike geometry object column

I have in my dataframe one column with cx_Oracle.LOB object [2D polygon type], made with a SDO_UTIL.TO_WKTGEOMETRY SQL function and I want to create a geodataframe, and set my geometry column the ...
1
vote
2answers
1k views

Setting up ArcMap to debug scripts in PyCharm?

I'm wondering whether anyone succeeded at setting up ArcMap to debug python scripts in PyCharm. I've tried several times to configure both, but failed.
0
votes
0answers
24 views

IDE's syntax completion doesn't work fine while using PyQGIS library!

I use a batch file to set everything up in Pycharm but while I want to use "iface"(which is the QGIS interface instance), my IDE wouldn't recognize it and Its arguments. My batch file is like this: ...
0
votes
1answer
458 views

ArcPy module not found in PyCharm? [duplicate]

I have installed PyCharm Edu and am trying to run a python script calling on ArcPy. I get an import arcpy module error: However, when I use the python scripter in ArcGIS Desktop, I see that it is ...
0
votes
0answers
889 views

Error installing GDAL in PyCharm

I've been trying to install GDAL for a month now in PyCharm. I use PyCharm, I like it, and I'm not switching to/adding Anaconda. I keep getting the following error (screenshot below) on any GDAL or ...
1
vote
2answers
441 views

Error from create a reference to the QgsApplication

I followed these getting started instructions to create a standalone script in pycharm. The only thing I did differently was to download the standalone installer, not the network installer. I'm ...
1
vote
1answer
668 views

Process finished with exit code 139 (interrupted by signal 11: SIGSEGV) - PyQGIS in PyCharm

When I try to execute this code: from qgis.core import * QgsApplication.setPrefixPath("/usr/lib/qgis", True) app = QgsApplication([], True) app.initQgis() layer = QgsVectorLayer('/home/city....
0
votes
1answer
81 views

UpdateCursor not updating when run from PyCharm?

I have a script in ArcPy that iterates through a set of intersection points and determines if all intersecting streets have the same attribute value in the CROSSLTS field, and if they do, sets the the ...
1
vote
1answer
72 views

Receiving ERROR 000732 from ArcPy that raster does not exist or isn't supported? [closed]

I am running this script to perform simple raster algebra on the pycharm interpretor... import arcpy arcpy.env.overwriteOutput = True from arcpy.sa import * # Specify the input raster inRaster = ...
10
votes
1answer
551 views

How to connect Qgis with pycharm in Ubuntu OS

I have just started using pycharm with qgis but could not connect both of them. Pycharm always stays in a state of "waiting for connection". Most the tutorials available points to the windows but I am ...
3
votes
2answers
956 views

Python script hanging forever in Pycharm with import arcpy?

I'm trying to get arcpy to work in Pycharm. I've done this successfully in the past. However, now when I try to do anything involving arcpy in Pycharm, the program runs then hangs forever. I have it ...
2
votes
2answers
165 views

How do I run SAGA algorithms in PyCharm? [closed]

Is there anyway I can input a raster and number and then use the SAGA algorithm "Fill Sinks (Wang and Liu)" on the raster through an IDE such as PyCharm? How would I go about calling the algorithm? ...
1
vote
0answers
52 views

Running QGIS Processing Modeler Script

Is there anyway to run an exported script from the processing modeler in PyCharm? How do I go about installing the necessary packages to run a function?
1
vote
0answers
892 views

Using qgis.core in Pycharm

I set up a batch file to launch pycharm on Windows in accordance with https://qtibia.ro/2016/06/09/how-to-setup-pycharm-for-qgis-development-under-linux-and-windows/ @echo off SET OSGEO4W_ROOT=C:\...
1
vote
0answers
242 views

Running spatial analysis using ArcPy in PyCharm failed with error code 1073740791 (0xC0000409)

I'm running spatial analysis using ArcPy in PyCharm (Windows 10 64bit environment) failed with error code 1073740791 (0xC0000409). Specifically, i'm trying to run Expand within the spatial analysis ...
1
vote
2answers
654 views

QGIS standalone application, problem with prefix path

I am trying to create a standalone application of QGIS in PyCharm. My code is: app = QgsApplication([], True) app.setPrefixPath("usr/lib/qgis/plugins", True) app.initQgis() canvas = QgsMapCanvas() ...
4
votes
1answer
3k views

Understanding qgis.core import error: no module named qgis.core?

I searched all the same questions, and none of them works for me, so i decided to ask this question in addition to those: I installed QGIS 2.18 via this downloaded setup 'QGIS-OSGeo4W-2.18.11-1-Setup-...
2
votes
1answer
131 views

PyQGIS equivalent for ArcPy ListFields

I just started using PyQGIS and I am not familiar with many of the commands. In ArcPy, you can use the command arcpy.ListFields to print out the fields present in a shapefile. I'm wondering if there ...
6
votes
1answer
1k views

How is Python IDE aware of ArcPy?

I am using PyCharm 4 for some Python scripting. When I type: import arcpy I can immediately start using items within the arcpy namespace, like the environment & workspace objects. How does ...
2
votes
1answer
335 views

Executing a voronoi polygon to a shapefile With Pycharm

I'm trying to get a voronoi polygon from points using Pycharm. I've tried: processing.runalg("qgis:voronoipolygons", file ,1, "C:\Voronoi.shp" ) but it doesn't work. It works in the python console ...