Skip to main content
11 events
when toggle format what by license comment
Dec 4, 2021 at 5:36 comment added LostinSpatialAnalysis I did that and it worked! Well almost. I successfully installed geocube through pip, and then re-installed jupyter. However running from geocube.api.core import make_geocube reveals the error: CRSError: The EPSG code is unknown. PROJ: proj_create_from_database: Cannot find proj.db. Do you know how I can fix this? I am confused because I already have pyproj installed.
Nov 25, 2021 at 4:53 comment added snowman2 I usually re-install Jupyter in each environment. You could try that.
Nov 25, 2021 at 4:22 comment added LostinSpatialAnalysis I also tried within the pyproj_env the following: conda config --prepend channels conda-forge conda config --set channel_priority strict conda install geocube. This led to the same error messages. I then tried running the same from my own myenv environment and it appears that everything downloaded after seeing Preparing transaction: done Verifying transaction: done Executing transaction: done. Yet going into Jupyter Notebook and entering import geocube resulted in ` ModuleNotFoundError: No module named 'geocube'`
Nov 25, 2021 at 4:21 comment added snowman2 I wonder if you need to to create a new environment with python=3.9? Either that or you need to update your conda version so it works with python 3.10.
Nov 25, 2021 at 4:08 comment added LostinSpatialAnalysis I was not, but I just tried that, using the instruction you linked to. Now using the pyproj_env environment, I ran conda install -c conda-forge geocube, which led to the error messages of Solving environment: failed with initial frozen solve. Retrying with flexible solve., Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source., and then ResolvePackageNotFound: - python=3.1.
Nov 25, 2021 at 2:11 comment added snowman2 Are you creating a new environment? See the conda install section here: pyproj4.github.io/pyproj/stable/installation.html
Nov 25, 2021 at 1:15 comment added LostinSpatialAnalysis I tried using conda-forge via those instructions and received the messages: Solving environment: failed with initial frozen solve. Retrying with flexible solve. and Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source., ultimately being stuck on `Solving environment: `. I am not sure how to fix this, but maybe it is something to do with how I set up my system.
Nov 25, 2021 at 0:42 comment added snowman2 See: corteva.github.io/geocube/stable/installation.html
Nov 25, 2021 at 0:41 comment added snowman2 For geocube, you should use conda to install from conda-forge.
Nov 25, 2021 at 0:37 comment added LostinSpatialAnalysis I really really want to use Geocube as my main tool for raster processing! However, I just cannot seem to get it to download properly. When I try to simply run pip install geocube from Anaconda Prompt (Anaconda3), I get a a long list of error messages (much too long to post the complete traceback here) including: WARNING: Ignoring invalid distribution -umpy (c:\users\MyName\anaconda3\lib\site-packages), Building wheel for gdal (setup.py) ... error ERROR: Command errored out with exit status 1:, andERROR: Failed building wheel for gdal. I am not sure how to address this.
Nov 24, 2021 at 23:51 history answered snowman2 CC BY-SA 4.0