Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rasterio should be optional #383

Closed
ceball opened this issue Jun 20, 2017 · 0 comments
Closed

rasterio should be optional #383

ceball opened this issue Jun 20, 2017 · 0 comments
Assignees

Comments

@ceball
Copy link
Collaborator

ceball commented Jun 20, 2017

Currently, rasterio is required at least to run the tests:

$ py.test datashader --verbose
================================ test session starts ================================
platform darwin -- Python 3.6.0, pytest-3.0.5, py-1.4.32, pluggy-0.4.0 -- /Users/cball/anaconda3/bin/python
cachedir: .cache
rootdir: /Users/cball/code/datashader, inifile: 
collected 68 items / 1 errors 

====================================== ERRORS =======================================
_________________ ERROR collecting datashader/tests/test_raster.py __________________
ImportError while importing test module '/Users/cball/code/datashader/datashader/tests/test_raster.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
datashader/tests/test_raster.py:12: in <module>
   with xr.open_rasterio(TEST_RASTER_PATH) as src:
../../anaconda3/lib/python3.6/site-packages/xarray/backends/rasterio_.py:117: in open_rasterio
   import rasterio
E   ModuleNotFoundError: No module named 'rasterio'
!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!!!
============================== 1 error in 2.96 seconds ==============================

I'll make rasterio truly optional, but I don't seem to be able to assign issues to myself.

Note: I couldn't install rasterio on OS X using conda - I had to use pip (ContinuumIO/anaconda-issues#2428).

@ceball ceball self-assigned this Jun 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant