Closed jackieleng closed 1 year ago
Related Toblerity/Fiona#944 conda-forge/fiona-feedstock#192
This issue has been going on forever, can some fix it?
This issue has been going on forever, can some fix it?
If you know how to and have Windows skill, please do! Otherwise, you should know that the volunteers here are overwhelmed with tons of requests and they 0 pay they get makes this a really low priority.
Is anyone aware of any robust workarounds?
Still having this issue. import rasterio
appears to work for me in a jupyter notebook but not in a standalone Python script. Tried re-installing GDAL using a wheel file (from https://www.lfd.uci.edu/~gohlke/pythonlibs/) but still get the error described here.
It is solved for me using:
It solved for me by adding directories of "gdal.dll" file and "gdaldata" floder to the Windows PATH Directory, as it was suggested as a note in https://rasterio.readthedocs.io/en/latest/installation.html
It seems like the issue is somewhere in rasterio's 1.3.2 build. If anyone is looking for a conda alternative to the wheels you can install rasterio 1.2.10 via conda and it appears to work fine.
conda install "rasterio=1.2.10"
2nd this issue
There is a not of confusing in this issue. I just tested a fresh env, with only conda-forge in the channel list as stated in our docs, and everything worked.
conda create --name TEST rasterio
conda activate TEST
python -c "import rasterio"
and here is my .condarc
for reference. Note that only the strict channel option and the conda-forge channel in the list are required, everything else is optional and this also works with or without them.
show_channel_urls: true
add_pip_as_python_dependency: false
channel_priority: strict
channels:
- conda-forge
safety_checks: disabled
auto_update_conda: false
experimental_solver: libmamba
I'm closing and locking this issue. If you are still experiencing this please open a new one with the required debug information so we can do something. +1 ones here won't help b/c we don't know each of your personal config or install attempts.
PS: some of you here seems to be mixing non official pip DLLs with conda packages, that won't work!
Solution to issue cannot be found in the documentation.
Issue
I try installing rasterio from conda-forge (Windows), but when importing rasterio I get an error. I.e.:
Installed packages
Environment info