Closed lwasser closed 4 years ago
I'm also seeing this on travis:
> from rasterio._base import gdal_version
E ImportError: dlopen(/Users/travis/miniconda/envs/test/lib/python3.8/site-packages/rasterio/_base.cpython-38-darwin.so, 2): Symbol not found: _crc32
E Referenced from: /Users/travis/miniconda/envs/test/lib/libgdal.26.dylib
E Expected in: /Users/travis/miniconda/envs/test/lib/libcfitsio.8.dylib
E in /Users/travis/miniconda/envs/test/lib/libgdal.26.dylib
Relevant travis job: https://travis-ci.org/github/pytroll/satpy/jobs/680364670
Oh interesting. And you are on python 3.8. Ive tested on 3.6 and 3.7 so it is not the python version!
I downgraded several packages too including gdal to see if I could figure out which upgrade broke things but to no avail.
Looks like cfitsio had a new release a couple days ago: https://github.com/conda-forge/cfitsio-feedstock
@lwasser Could you try forcing the version to something older. I think this should work:
conda install cfitsio=3.470=2
@djhoese PROGRESS!
i ran this
conda install -c conda-forge cfitsio=3.470=h84d2f63_2
and pytest is running perfectly now!
in my broken build i have this:
cfitsio 3.470 h35c4aa5_3
It was funny because i thought that package might be the cuprit but i saw the same version numbers missing the fact that the build is different. So is the solution for now (temporarily) to downgrade our builds to that working build. And in the future perhaps this build will resolve properly?
@djhoese given this is open in the cfitsio repo, should i close here? just wanted to check that there is nothing to do with rasterio before closing. seems to be on the way to being fixed in the other repo.
wave hi there @ocefpaf !! me, yet again. i'm running into some issues with rasterio (i think) on MAC. Essentially it's throwing errors for our earthpy build: example
Sorry, just got back to work today. Looks like people already found a way forward to fix this.
@djhoese given this is open in the cfitsio repo, should i close here? just wanted to check that there is nothing to do with rasterio before closing. seems to be on the way to being fixed in the other repo.
Yes please. Thanks for the but report!
š @ocefpaf no worries!! and thank you!!
yes i think we did some detective work and it's cfitsio. i'll close for now :) but again happy to test when its needed!!
Issue:
š hi there @ocefpaf !! me, yet again. i'm running into some issues with rasterio (i think) on MAC. Essentially it's throwing errors for our earthpy build: example
https://travis-ci.org/github/earthlab/earthpy/jobs/680217713#L1887
At first it was working just fine for me locally on my mac. But then i rebuilt the environment and got the following failure when running
pytest
.Here is what i've tried so far (each time rebuilding the environment completely):
pip install -r dev-requirements.txt
to my conda envt just in case it was a pip / conda forge issue - so i just installed stuff using the envt and conda forge - no pip.I'm really open to trying something different. this is oddly mac specific so i'm not sure what else to try but i can test it locally. the travis build instructions are here.
https://github.com/earthlab/earthpy/blob/master/.travis/install.sh
To recreate, following this:
https://github.com/earthlab/earthpy/blob/master/CONTRIBUTING.rst
But note that this failure is occuring on multiple builds right now with spatial dependencies.
A WORKING BUILD:
JUST FOR GIGGLES - here is my local environment BEFORE updating when all was running nicely. i took a "snapshot" of the envt specs just in case it would help.
Environment (
conda list
):Details about
conda
and system (conda info
):I'm happy to try anything else that might help with troubleshooting. i'm just not sure what else to try! I hope all is well.