Questions tagged [pycharm]

A Python Integrated Development Environment (IDE)

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

Error calculating field with script exported from ModelBuilder

I am attempting to add a new field called "TimeYrCode" to a list of shape files, and then add values to this field based on the value of the "gridcode" attribute, which represents different days of ...
1
vote
0answers
12 views

Missing SQL Code Style [closed]

I'm missing the Editor Option for Code Style SQL. Its not in the Options and I am using PyCharm Community 2019.3 on Manjaro.
1
vote
1answer
50 views

Catching a system exit caused by ArcPy in PyCharm?

Using ArcPy in PyCharm, I'm constantly getting Process finished with exit code -1073741819 (0xC0000005) in my RegionGroup loop. I have posted my code in a previous question (Process finished with exit ...
0
votes
0answers
50 views

Process finished with exit code -1073741819 (0xC0000005) from RegionGroup (ArcGIS 10.7)

I'm trying to automate my work using ArcPy in PyCharm on Windows. However, when I run the following (abridged) loop, it exits at random points: sometimes at the 4th iteration, sometimes at the 31st, ...
1
vote
0answers
121 views

QGIS 3.10, Python IDE - Application path not initialized

I installed QGIS 3.10 on Win10-64 and I try to use the qgis core and processing functionalities from PyCharm IDE. I used to do this successfully with previous QGIS versions, but this time the output ...
2
votes
1answer
35 views

Setting up PyCharm 64bit with QGIS 64bit OSGeo4W64 installation on Windows

Trying to setup PyCharm Community Edition 64Bit with QGIS OSGeo4W64 installation on Windows so that I can debug some python and reference the QGIS/Qt modules. I tried the folowing tutorials; https://...
2
votes
0answers
68 views

QGIS Plugin reload is incomplete

I am developing a QGIS Plugin in PyCharm. I use the QGIS Plugin "Plugin reloader" to reload the plugin when I want to test the plugin. But changes in the code are not applied on running the plugin ...
1
vote
2answers
33 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
121 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 ...
4
votes
1answer
265 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 ...
2
votes
1answer
145 views

QGIS3 Python Plugin External Module

I am building a plugin based around PyQt5.QtChart This line will not work as QGIS (3.8) appears to use its own python. It works fine in my python IDE. I have confirmed that QGIS is using a different ...
1
vote
1answer
87 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 ...
2
votes
0answers
49 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
63 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 ...
0
votes
0answers
145 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
127 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
28 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....
0
votes
1answer
83 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 ...
0
votes
1answer
64 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
0answers
76 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. ...
1
vote
1answer
134 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-...
0
votes
0answers
53 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 ...
2
votes
1answer
71 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
177 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
108 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
185 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
185 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
413 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 ...
0
votes
0answers
98 views

Using PyQGIS in standalone scripts and in PyCharm gives ImportError: DLL load failed: The specified module could not be found. appears

I am trying to get PyQGIS (3.4.6) to work in a standalone script on Windows 10 - preferably in PyCharm, though not necessarily. A solution where I can externally call a python script with initialized ...
4
votes
1answer
123 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
64 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 ...
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 ...
1
vote
2answers
165 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
674 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
1answer
519 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 ...
1
vote
1answer
139 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
530 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
1k 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
804 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
85 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
80 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
177 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
992 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
54 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
264 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 ...
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 ...
1
vote
2answers
745 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
142 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
415 views

ArcPy 64bit giving 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
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 ...