Questions tagged [pycharm]

A Python Integrated Development Environment (IDE)

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

Missing classes from qgis.core module only in PyCharm's editor

I would like to use PyCharm Community Edition 2020.1.2 x64 on Windows 10 as IDE for writing QGIS plugins. I need to base on old version - QGIS 2.18, so I need python 2.7, qt4, and also core modules ...
0
votes
1answer
45 views

Creating QGIS Shapefile in PyCharm leaving some attributes NULL

I've created the shapefile and can manually enter in all the attributes to come in fine, but when I call it any other way (which I will need to do), the values for the floating types appear as NULL, ...
2
votes
1answer
32 views

Creating a Polyline from a list of QgsPoints using PyQGIS when working in PyCharm

So I have a .csv of points that I've cleaned up using pandas, and appended to a list with each item being Type: QgsPoint, with it's correct X and Y coordinate. I'm trying to find the correct operation ...
1
vote
1answer
23 views

Shapefile type description showing attribute error

import arcpy esc = arcpy.Describe("C:\Users\Drona_Maps\Desktop\lecture16\shapefiles\world_continents.shp") print esc.ShapeType Shape file type description showing attribute error like this: ...
2
votes
0answers
35 views

Getting a warning of “unexpected argument” for PyQGIS processing parameter in PyCharm

When specifying named argument for any type of QgsProcessingParameter, PyCharm complains of an Unexpected Argument warning. Although it doesn't cause any issue to the execution of the Processing ...
3
votes
1answer
180 views

PyQGIS in PyCharm 2020

I know this problem appears over and over again, but maybe someone can help me. I've read many articles on GIS StackExchange on the topic and I'm referring to this post: Why does QGIS 3.2 "...
0
votes
0answers
38 views

Error whenever I try to geocode

I used this code to calculate my centroid and the centriod co-ordinates I get is "314167.7583680855,239312.8503371872". however whenever I try to geocode this co-ordinate I get an error. ERROR: ...
1
vote
1answer
100 views

Finding the centroid of a merged polygon using shapely function

I have a polygon shapefile and I want to find the centroid of the polygon, and output the centroid as a new shapefile before I geocode. How I should do this with Python functions shapely and Fiona and ...
1
vote
2answers
180 views

Selecting specific rows and column from a shapefile using Fiona and Shapely

I am new to using PyCharm, but I am trying to cut out 4 rows from a county shapefile from that 4 rows specify the columns or attributes to also be extracted and output the result as a new shapefile....
0
votes
0answers
31 views

Python script not delivering expected output for Vegetation indices (NDVI, CLgreen) using ArcPy and ArcGIS

I have a script that was written in Python in PyCharm. The script is something meant to run once then all the indices I list in the python can run from PyCharm rather than opening the ArcMap or ...
1
vote
0answers
41 views

Setup PyCharm to develop Python scripts for QGIS?

I want to set up for the first time an environment with PyCharm to write scripts for QGIS on my Ubuntu desktop and I'm completely lost. I'm not having problems with the console on QGIS, but I couldn'...
0
votes
0answers
137 views

Setting up PyQGIS 3 (QGIS 3.12) interpreter in PyCharm 2018.3.7

I cannot set up the correct interpreter for PyQGIS 3 in PyCharm 2018.3.7. Using: QGIS 3.12.0, OSGeo4W64, Python 3.7 (part of the OSGeo4W64 folder), PyCharm 2018.3.7. My .cmd files in OSGeo4W64 look ...
1
vote
0answers
105 views

Viewing GeoPandas Dataframe in VScode or PyCharm like Pandas Dataframes

I'm not sure if this is a missing feature or something that I couldn't figure out so I wanted to get some help; I started learning geopandas library, now I'm following some tutorials I realized that ...
1
vote
1answer
37 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
15 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
60 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
115 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
1answer
538 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 ...
3
votes
1answer
88 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://...
3
votes
0answers
86 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
40 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
278 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 ...
5
votes
1answer
581 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
190 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
99 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
64 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
85 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
213 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 ...
1
vote
2answers
212 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
32 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....
2
votes
2answers
72 views

Raster processing “Tool is not licensed”

I have a piece of python code written that works fine on a small test area but when I blow up the size of the test area I get a "tool is not licensed" error. arcpy.CheckOutExtension("Spatial") ...
0
votes
1answer
122 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
112 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
125 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
203 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
56 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
105 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
242 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
252 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
282 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
236 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
591 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 ...
4
votes
1answer
203 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
78 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 ...
15
votes
6answers
2k 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
230 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
815 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
652 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
180 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 ...
2
votes
2answers
773 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 ...