Questions tagged [anaconda]
A free collection of Python packages for large-scale data management, analysis, and visualization.
131
questions
0
votes
1
answer
68
views
Python unable to import GDAL
I am trying to run a Python code with GDAL library. I've created the environment and installed GDAL and GeoPandas but the Python won't import the GDAL for some reason.
What am I doing wrong here?
Here ...
1
vote
1
answer
46
views
Install osm2pgsql in a conda environment
I have OpenStreetMap data and a database with the postgis extension, on a supercomputer (precisely Jean Zay, French cluster). In order to use JZ and install all the programs, packages etc I need on JZ,...
0
votes
0
answers
57
views
Install QGIS with ECW support conda-forge
How can I add ECW support to QGIS instaleld in conda environment?
conda 23.3.1
qgis 3.30.3-'s-Hertogenbosch
Windows 10
1
vote
0
answers
82
views
Having issues trying to plot SPC outlook in Anaconda
My code works perfectly until I go to run this cell
panel = MapPanel()
panel.title = 'SPC Day 1 Convective Outlook (Valid 12z Mar 31 2023)'
panel.plots = [geo]
panel.area = [-120, -75, 25, 50]
...
0
votes
0
answers
187
views
Python Esri ArcPy functions do not work properly in command prompt but it works properly in PyScripter IDE
I have a simple Python script that imports the arcpy module. It works quite perfect in ArcMap's Python Window and PyScripter IDE but in the Command Prompt console some functions like arcpy....
1
vote
2
answers
1k
views
CRSError: Invalid projection
I cant get GeoPandas to work properly on my new laptop, with windows 10.
Installation:
https://repo.anaconda.com/archive/Anaconda3-2022.10-Windows-x86_64.exe, executed as admin
Anaconda prompt (as ...
0
votes
0
answers
65
views
Using jupyter_client version with ArcGIS API for Python
I am using ArcGIS API for Python.
When I install Jupyter_client==7.1.0, I get error of arcgis 2.0.1 requires jupyter-client<=6.1.12, but you have jupyter-client 7.1.0 which is incomatible.
When I ...
0
votes
1
answer
130
views
Calculate the Topographic Ruggedness Index using GDAL
I have never used GDAL and I need to calculate the TRI. I have the DEM input I just do not know any of the code in anaconda.
How can I calculate the Topographic Ruggedness Index using GDAL?
0
votes
2
answers
696
views
Installing rasterio python package
I am trying to install 'rasterio' package in my conda environment. It is throwing below error
Collecting rasterio
Using cached rasterio-1.2.10.tar.gz (2.3 MB)
Installing build dependencies ... ...
1
vote
1
answer
950
views
How to fix ogr2ogr: command not found
I am an intern and was told to run this script, but I'm having some problems getting it to work and no one in my department has been able to offer any advice.
I am using Windows 10 and running the ...
0
votes
1
answer
2k
views
Update GDAL in an Anaconda environment
I have a GDAL installed in an Anaconda environment:
(base) > conda create --name gdal_env
(base) > conda activate gdal_env
(gdal_env) > gdal_info --version
GDAL 3.0.2, released 2019/10/28
...
1
vote
1
answer
860
views
GeoPandas installation problems [closed]
I wanted to install GeoPandas, but I end up getting only this. (conda install geopandas)
I also tried the other methods (https://geopandas.org/en/stable/getting_started/install.html), but doesn't ...
0
votes
1
answer
1k
views
Installing and importing Google Earth Engine Python API
Until this morning, I was able to use Google Earth Engine via the Python API in anaconda through ArcGIS. However, I updated ArcGIS and am having to reinstall everything.
I installed gee using conda ...
0
votes
1
answer
271
views
gdal.Warp - set env var
I set up an ubuntu 18.04 EC2 through AWS that "On Start" will run a python script in which will download a .tif from an s3 bucket and project it from EPSG:4326 to EPSG:3857 using gdal.Warp()....
0
votes
1
answer
582
views
Installing ArcPy in Anaconda gives ImportError: Unable to locate a valid Pro or Server installation
I am trying to install ArcPy module in the Anaconda but I always get this error:
ImportError: Unable to locate a valid Pro or Server installation to use with ArcPy. ArcPy must be installed, and match ...
4
votes
1
answer
589
views
QGIS installed via Windows Anaconda fails to launch
I'm trying to install QGIS using the Anaconda package manager in a new environment. I have done this successfully before (not sure if it was on this specific Windows laptop, but probably) and also ...
1
vote
1
answer
167
views
Conduct Buffer Analysis in PyQGIS
Given that I have 1 shapefiles for instance c:/users/user/line.shp
and I have activated my QGIS Console in Anaconda prompt
(base) $ conda activate qgis-venv
(qgis-venv) $ python
>>> import ...
2
votes
2
answers
2k
views
Can't make GDAL work on Python 3.7 from Anaconda
I am trying to install GDAL on an clean Anaconda environment (Python 3.7.11) but it fails when imported in the Python console. It does work fine in another environment (Python 3.6). GDAL package is ...
0
votes
1
answer
1k
views
gdal_translate ERROR 6: Too many command options
I'm using GDAL 3.3.1 on Windows 10 through Anaconda. I'm trying to convert a TIMESAT binary file to a .tif, which I've been able to do before. However, when I enter this code:
gdal_translate -of GTiff ...
0
votes
1
answer
113
views
Shapefile missing spatial reference information when run as a batchfile
I have Python script that needs to pull the ESPG code from a shapefile, when I run this in Intellij IDEA 2021.1.2 (using a Anaconda Environment for Python) it works correctly, but when it is run as a ...
1
vote
0
answers
101
views
QGIS 3.20 failed dependency in qgis_core on libQt5Concurrent
I wrote a Python application that successfully uses QGIS on OSX. I now want to 'freeze' it. Building an app after using the kyngchaos packages resulted in all sorts of issues finding components. I ...
0
votes
1
answer
832
views
Cannot authenticate Earth Engine on Mac OSX
Fresh install of Mac OSX Catalina (v10.15.7)
Running Anaconda 3 and Python 3.8.10
I install the EE Python API client by doing:
conda install earthengine-api
Install is successful
I then try to ...
-1
votes
1
answer
446
views
Anaconda install Orfeotoolbox
I am trying to install Orfeotoolbox as a package within one of my conda environments.
No matter which version of python I have (3.6 , 3.7 , 3.8) the package can not be installed.
Below is the result ...
0
votes
1
answer
973
views
Cannot add packages using ArcGIS Pro Python Package Manager [duplicate]
I am trying to install a Python package in ArcGIS Pro but cannot get it to work. Somehow this worked for me with an earlier version of Pro. I am now using 2.6.3
The things that I have tried so far:
...
4
votes
1
answer
1k
views
Cannot install GeoPandas on cloned arcgispro env in Anaconda
I have cloned my ArcGIS Pro env into my Anaconda 3 env. My goal was to have access to both the arcpy mod and GeoPandas mod. I tested it in a notebook to make sure arcpy is working and it is. But ...
3
votes
1
answer
1k
views
Cannot find cloned python arcgispro-py3 environment with conda env list
I am trying to clone my python environment that comes with ArcGIS Pro (arcgispro-py3 located in C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3) to a location I can access (I do not have ...
1
vote
1
answer
4k
views
ImportError: DLL load failed: The specified module could not be found. while importing GeoPandas
How can I fix the error and get GeoPandas to work on my Win10 machine?
Solutions tried:
New environment following instructions here
Uninstalling and reinstalling Geopandas
Detailed error:
import ...
3
votes
1
answer
869
views
Is it possible to run PDAL without Conda?
PDAL looks like a fantastic library but for some reason when I install Anaconda, it breaks a bunch of dependencies\paths. Is it possible to use PDAL without having Anaconda (Miniconda) installed? If ...
7
votes
4
answers
4k
views
Unable to activate cloned ArcGIS Pro default Python environment due to missing packages
I am unable to activate cloned copies of the default ArcGIS Pro python environment, receiving an error message that required packages are missing.
I am using ArcGIS Pro 2.7.0.
I am trying to create a ...
1
vote
2
answers
1k
views
Shapely command error: from shapely.geometry import LineString
I am trying to run a program but getting the following error when I am using the command:
from shapely.geometry import LineString
Error: FileNotFoundError: Could not find module
'C:\Users\SWWB\...
5
votes
1
answer
1k
views
Make QGIS use a conda virtual environment for python libraries
I wanted to install a plugin, but it requires scipy. Thus I realized that QGIS use the default python3 installation. I tried to launch it from a conda virtual environment, as advised in this related ...
2
votes
0
answers
1k
views
COG Driver not recognized in GDAL 3.2.0
I want to generate a Cloud Optimized Geotiff (COG) using Python (with Anaconda environment). I wanted to use GDAL 3.2.0 since it has a COG Built in Driver since 3.1. Initially I cannot update GDAL to ...
3
votes
1
answer
400
views
Activating a conda environment from within QGIS -- cannot be done due to inherited environmental variables?
Background
I've been working on a small QGIS Python plugin. Part of the functionality requires a number of packages that have complex dependencies. In my regular Python use, I use conda to manage it. ...
1
vote
1
answer
1k
views
Can't install Packages with Cloned ArcGIS Pro Python
I have a new installation of ArcGIS Pro 2.6 on a Windows 10 computer. I have successfully cloned Python because I want to install third-party packages to this cloned environment and still use arcpy.
...
0
votes
0
answers
613
views
OGR Geometries Error When Writing to Disk: 'Incompatible geometry for operation'
I am working on a piece of code that does a pretty complex computation using GPKG layer feature areas, I then calculate several new fields . Finally, when I try and write the results back to disk, I ...
2
votes
0
answers
594
views
Unable to install geopandas using conda install
I'm trying to install GeoPandas using the Command Prompt terminal. I have Python 3 and ArcGIS installed. I keep getting these messages that say there is a conflict with various packages. For example:
...
1
vote
2
answers
3k
views
ECCODES ERROR when opening .GRIB file in Spyder/Visual Studio Code
I have accessed Anaconda Prompt for the environment that I will be working.
Once there, I have changed the directory to the place where I have the grib files that I will be working with, in order to ...
1
vote
0
answers
676
views
Fixing ArcGIS Pro crash with opening notebooks after installing Anaconda
I have had problems with opening notebooks in ArcGIS Pro 2.5 since installing 64-bit Anaconda 3 on my PC (Windows 10 OS). When I create a project in ArcGIS Pro and try to open a notebook within ...
0
votes
1
answer
2k
views
How to make PROJ work via Anaconda in Google Colab?
I broke Google Colab with GDAL and Anaconda, how do I repair it?
So hear my story:
In a project I need to use the RSGISLib Python library (link) developed for object-based analysis of georeferenced ...
0
votes
0
answers
670
views
Installing eccodes with conda install windows
I am trying to install eccodes using conda forge, following the advice on https://anaconda.org/conda-forge/eccodes, on a windows 10 computer.
I keep getting an error message:
failed with initial ...
1
vote
0
answers
159
views
KeyError: 'BANDS' and NameError: 'bands'
I am trying to follow this tutorial: land cover fastai
And while executing the workflow, I got this error:
eopatch 0 has been processed!
---------------------------------------------------------------...
0
votes
1
answer
3k
views
ValueError: too many values to unpack (expected 2)
I am trying to follow this tutorial: land cover fastai
And while executing the workflow, I got this error:
This is the code where the error occurs:
def png_gen(patch, inference=False):
"""Save ...
0
votes
1
answer
329
views
Transforming an image (TIFF) into an array
I found the following code for crop classification and I am trying to understand it.
# We have 10 images and 5 bands for each image so we’ll have a total of 50 columns in our data frame
# we’ll ...
1
vote
1
answer
4k
views
Reading .tiff data using Python
I got none type while trying to open those tiff data. What issue could it possibly be?
I tried this:
import glob
images_tiff = []
for im in glob.glob(os.path.join(data_path, "*.tiff")):
im = ...
-2
votes
1
answer
419
views
Install pyModis on Anaconda/Spyder
I need to use pyModis on Spyder (Anaconda), but I'm not able to install it.
Does anyone have a step by step or tutorial for Windows?
0
votes
0
answers
589
views
Transforming CRS to UTM using Python
I am trying to transform CRS to UTM using a GeoJSON file.
This is what I tried:
from sentinelhub import CRS
country_crs = CRS.UTM_32N
country = country.to_crs(crs={'init':CRS.ogc_string(country_crs)})...
2
votes
1
answer
1k
views
How to display together a shapefile (country basemap) and points (from CSV) via geopandas?
So, I wrote this code that tries to do it but I end up with the map and points being displayed separately
import pandas as pd
import geopandas as gpd
from geopandas import GeoDataFrame
from shapely....
0
votes
0
answers
1k
views
Unable to install GeoPandas
Trying to install GeoPandas using Anaconda for Python 2 (geopandas version in anaconda navigator is 0.6.1).
I also have ArcGIS 10.7 pre installed.
First when I tried to install it through the ...
3
votes
1
answer
9k
views
GeoPandas installation errors
(base) C:\WINDOWS\system32>conda install -c conda-forge geopandas
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with ...
1
vote
0
answers
95
views
Re-occuring errors in my JupyterLab environment because of instillation errors in anaconda?
I use python in the JupyterLab notebook environment through anaconda3 for my coding. I recently encountered a Runtime Error when trying to set the CRS for a geodataframe and from my research online it ...