Questions tagged [pycharm]

A Python Integrated Development Environment (IDE)

Filter by
Sorted by
Tagged with
14
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 ...
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.
11
votes
3answers
15k views

Fixing “The SDK seems invalid” error when setting up PyCharm and PyQGIS?

I wanted to set up PyCharm the way this blog post explains: Setting up PyCharm for PyQGIS and Qt. I did everything as instructed but when it comes to adding project interpreters I got this error ...
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 ...
7
votes
2answers
3k views

How to define pycharm to understand PYQGIS and GDAL

I use pyqgis in standalone apps and I have defined paths in Windows and Python paths to take python API from outside QGIS. I have created some simple tools using pygis and GDAL in standalone script ...
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 ...
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 ...
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 ...
5
votes
0answers
551 views

Setting up PyCharm CE 4 to work with PyQGIS library in Mac OS

I am trying to set up pycharm to work with pyQgis library but with not success till now. I am using PyCharm CE v4 and QGIS version 2.8 I have tried to implemnte the instructions of several posts like ...
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 ...
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-...
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, ...
3
votes
1answer
99 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 ...
3
votes
2answers
957 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 ...
3
votes
0answers
456 views

Pycharm cannot find reference 'SearchCursor' in 'arcpy.da' [duplicate]

Whenever I try to use a search cursor from arcpy in pycharm, I get this unresolved reference error. I should note that it was working fine earlier in the night, I have no idea what happened. I've ...
3
votes
0answers
438 views

PyQGIS with Pycharm CE 4.5

I'm able to run PyQGIS on my Mac (OSX 10.10.3) through the Python (2.7) console and through execution of Python files through my terminal. In order to do so, I added the following to my bash_profile: ...
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 ...
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? ...
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 ...
2
votes
2answers
2k views

Running and debugging PyQGIS scripts in PyCharm Community Edition?

I am working with creating plugins for QGIS 2.4.0 (Chugiak). I am curious to know how I can write the codes, and debug them in the environment I am comfortable in, i.e. PyCharm Community Edition 3.4.1....
2
votes
1answer
389 views

Attempting to run first script after setting up environment for QGIS and python?

I uninstalled arcmap and all existing python installations. Then I followed the instructions from https://www.youtube.com/watch?v=Chq9fTRKsHk&t=2s to install qgis and set the environment variables....
2
votes
1answer
152 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 ...
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 ...
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'...
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 ...
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 ...
2
votes
0answers
363 views

Unable to run scripts with arcpy using ArcGIS Pro and Pycharm?

I have installed ArcGIS Pro 2.0 which runs Python 3.5.3. I am trying to get started with the Arcpy library using the IDE PyCharm. I started a new project and pointed to the python file of the ArcGIS ...
1
vote
1answer
631 views

Python new packages installation with ArcGIS interpreter?

I would like to introduce some functions derived from scipyin my code. Since I also need arcpy, I use the Interpreter installed inside ArcGIS, whose directory is: (C:\Python27\ArcGIS10.3\python.exe). ...
1
vote
1answer
475 views

Running custom model via ArcPy with PyCharm fails with exit code -1073741819 (0xC0000005)?

I'm trying to geocode a few address using a custom model created. When running the model via model builder all runs perfectly. Also when running it via the embedded interactive python console in ...
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 ...
1
vote
2answers
443 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
2answers
655 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() ...
1
vote
1answer
376 views

ArcPy 64bit gives 0xC0000005 error with PyCharm?

I have a simple script, which converts raster to shapefile and merges all the shapefiles. It does not really matter. The execution is fine, everything finishes but: I am using PyCharm Community 2018....
1
vote
1answer
428 views

Error when running Split by Attributes tool from arcpy- arcgisscripting.ExecuteError: 'str' object has no attribute 'polygon' -

I am trying to use the Split by Attributes tool in arcpy to split a shapefile with 18 point features into 18 separate shapefiles. It works as expected in ArcGIS Pro, but when I run the following ...
1
vote
2answers
132 views

Update Cursor keeps Crashing and Skipping

I use a 3rd party software that exports the name of JPEG as I collect points, in this case street signs. I know the names stay static and are all unique but different features may have the same JPEG (...
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 ...
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 ...
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-...
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 ...
1
vote
1answer
851 views

Autocomplete not working for ArcPy in PyCharm

I'm trying to set up auto complete for ArcPy in PyCharm, but while submodules seem to have auto complete suggestions, the ArcPy module itself doesn't have completions provided. Example of ...
1
vote
1answer
238 views

Running PyQGIS script in pycharm?

I did this script in Pycharm and I don't know why python show me this wrong: QObject::connect: Cannot connect (null)::raiseError( QString ) to QgsVectorLayer::raiseError( QString ) My script below: ...
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.
1
vote
0answers
123 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 ...
1
vote
1answer
673 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....
1
vote
1answer
73 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 = ...
1
vote
0answers
895 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
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
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
0answers
145 views

Configuring PyCharm for QGIS in OS X?

Can anyone point me to instructions for setting up PyCharm (or any IDE) on OS X to run QGIS for building standalone scripts/applications? I have seen many tutorials for Windows, but nothing out ...
1
vote
0answers
168 views

Arcpy and pyqgis on same IDE [closed]

I have question: is it possible to set up arcpy and pyqgis on the same IDE (I use Pycharm). I have some problem with running my pyqgis scripts from pycharm. When I first configure Pycharm to recognize ...