Questions tagged [pycharm]

A Python Integrated Development Environment (IDE)

Filter by
Sorted by
Tagged with
2
votes
1answer
39 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 ...
0
votes
1answer
38 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
37 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, ...
1
vote
0answers
40 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
40 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
94 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 ...
2
votes
1answer
64 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
27 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 ...
13
votes
4answers
513 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
49 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 ...
2
votes
1answer
295 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 ...
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
291 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
1answer
93 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
2answers
310 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 ...
0
votes
0answers
539 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
1answer
426 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
74 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
61 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 = ...
2
votes
2answers
129 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? ...
0
votes
0answers
711 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
51 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
184 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 ...
3
votes
1answer
737 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 ...
1
vote
2answers
498 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() ...
2
votes
1answer
96 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 ...
1
vote
1answer
307 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....
6
votes
1answer
1k 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 ...
2
votes
0answers
345 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 ...
4
votes
1answer
2k 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-...
10
votes
1answer
514 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 ...
1
vote
0answers
143 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
votes
1answer
366 views

Pycharm Couldn't recognise QGIS 2.8.11's python 2.7.5 packaging tools. win 7

using "C:\Program Files\QGIS 2.18\bin\python.exe" for my project interpreter in pycharm and, path variables as : PYTHONHOME = "C:\Program Files\QGIS 2.18\bin" PYTHONPATH = "C:\Program Files\QGIS 2.18\...
3
votes
1answer
2k views

Using Pycharm with QGIS 3?

I've just changed to qgis3 and I can't figure out why I cant change from python27 to python36 in Pycharm, keep getting invalid SDK! I run this .bat file: SET OSGEO4W_ROOT=C:\OSGeo4W64 SET QGISNAME=...
0
votes
0answers
214 views

pyqgis error messages using PYCHARM

I use pyqgis in standalone app using python 2.7 in windows 10. I have create some scripts using python idle and work fine without some errors or messages. Now I try to use pyqgis using pycharm ...
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 ...
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
1answer
377 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
298 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 ...
1
vote
1answer
400 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
1answer
781 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
226 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
votes
1answer
320 views

ArcGIS pro import modules error

I am currently using python 3.5 interpreter to run pycharm and ArcGIS Pro version 1.1. But my pycharm is unable to recognize the arcpy package settings and throwing me an error showing underline. Can ...
1
vote
1answer
610 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). ...
3
votes
0answers
356 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
2answers
845 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 ...
0
votes
1answer
451 views

Reading shapefile directory in Python? [closed]

I am developing tool on ArcGIS ArcMap 10.0 with .NET and Python technology. In TOPOTORASTER tool , I give a line feature class. the line feature class path something like this: inputOne = "C:\Users\...
1
vote
2answers
128 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 (...
3
votes
0answers
436 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: ...
4
votes
0answers
544 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 ...