Skip to main content

Questions tagged [anaconda]

A free collection of Python packages for large-scale data management, analysis, and visualization.

Filter by
Sorted by
Tagged with
2 votes
1 answer
28 views

gdal.Translate producing error

I'm running a Python script that uses gdal.Translate to set an area of interest. I believe that the important parts are: from osgeo import gdal, osr, ogr # ... translate_options = gdal....
Ubron Cinzento's user avatar
0 votes
2 answers
95 views

Rasterio & rioxarray no longer compatible with fairly standard modules

I just bought a new computer and want to read a geotiff and plot it in cartopy. I'm typing: conda create --name my_env conda activate my_env conda install numpy pandas jupyter cartopy xarray ...
Robbie Mallett's user avatar
1 vote
1 answer
43 views

Convert Multi-layered GML file to GeoJSON

I have the GreenSpace GML file from https://osdatahub.os.uk/ When using ogr2ogr with this command: -f GeoJSON -lco RFC7946=YES OSOpenGreenspace.geojson OSOpenGreenspace.gml I am given this Error by ...
GentleCynic's user avatar
1 vote
1 answer
1k 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 ...
Prashant Kumar's user avatar
1 vote
1 answer
100 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,...
DianeS's user avatar
  • 103
0 votes
0 answers
122 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
dr.petr's user avatar
  • 13
1 vote
0 answers
106 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] ...
Andrew Clouse's user avatar
0 votes
0 answers
405 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....
amin's user avatar
  • 1
1 vote
2 answers
2k 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 ...
BERA's user avatar
  • 73.8k
0 votes
0 answers
92 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 ...
Samira Goodarzi's user avatar
0 votes
1 answer
227 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?
Nickmofoe's user avatar
  • 123
0 votes
2 answers
2k 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 ... ...
Learner's user avatar
  • 119
1 vote
1 answer
2k 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 ...
goatmilkshake's user avatar
0 votes
1 answer
3k 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 ...
sutan's user avatar
  • 929
1 vote
1 answer
1k 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 ...
UserDT12345's user avatar
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 ...
user44796's user avatar
  • 1,925
0 votes
1 answer
362 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()....
Binx's user avatar
  • 1,360
0 votes
1 answer
744 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 ...
user123's user avatar
  • 195
4 votes
1 answer
783 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 ...
Lee Hachadoorian's user avatar
1 vote
1 answer
261 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 ...
sutan's user avatar
  • 929
2 votes
2 answers
3k 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 ...
Oskar Karlsson's user avatar
0 votes
1 answer
2k 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 ...
Beck's user avatar
  • 301
0 votes
1 answer
124 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 ...
Bradley_Burrell's user avatar
1 vote
0 answers
104 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 ...
David Kovar's user avatar
0 votes
1 answer
1k 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 ...
nyquist's user avatar
  • 148
-1 votes
1 answer
560 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 ...
Sinooshka's user avatar
  • 391
0 votes
1 answer
1k 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: ...
ZZZ's user avatar
  • 530
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 ...
gwydion93's user avatar
  • 1,903
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 ...
ENIAC-6's user avatar
  • 906
1 vote
1 answer
5k 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 ...
PPR's user avatar
  • 511
4 votes
1 answer
1k 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 ...
Cary H's user avatar
  • 986
7 votes
4 answers
5k 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 ...
jawGIS's user avatar
  • 71
2 votes
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\...
Aizaz's user avatar
  • 21
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 ...
paime's user avatar
  • 191
2 votes
0 answers
2k 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 ...
Nikko's user avatar
  • 611
3 votes
1 answer
552 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. ...
Huite Bootsma's user avatar
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. ...
GBG's user avatar
  • 9,930
0 votes
0 answers
720 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 ...
Eric Romero's user avatar
2 votes
0 answers
633 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: ...
Yusraa's user avatar
  • 21
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 ...
Gonçalo Peres's user avatar
1 vote
0 answers
763 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 ...
julianas's user avatar
1 vote
1 answer
3k 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 ...
Julian_P's user avatar
  • 327
0 votes
0 answers
818 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 ...
ushham's user avatar
  • 103
1 vote
0 answers
172 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! ---------------------------------------------------------------...
Rim Sleimi's user avatar
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 ...
Rim Sleimi's user avatar
0 votes
1 answer
377 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 ...
Rim Sleimi's user avatar
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 = ...
Rim Sleimi's user avatar
-2 votes
1 answer
500 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?
user163613's user avatar
0 votes
0 answers
680 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)})...
Rim Sleimi's user avatar
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....
BallpenMan's user avatar
  • 1,217