DigitalGlobe / gbdxtools

(Deprecated) Python SDK for using GBDX
MIT License
74 stars 57 forks source link

import fails with ImportError: cannot import name 'imread' #771

Closed joemcglinchy closed 4 years ago

joemcglinchy commented 5 years ago

GBDXTools New Issue

Please provide some background information:

GBDX Username

joseph.mcglinchy@colorado.edu

GBDX Account Tier

GBDXTools Version

Run pip show gbdxtools in a terminal or !pip show gbdxtools in a Jupyter notebook cell

[ 0.16.5 ]

Python Version

Environment

Anaconda3, python 3.6.7, Ubuntu 18.04.2

Description

'import gbdxtools' fails with: /home/joemcglinchy/anaconda3/envs/eapy_torch/lib/python3.6/site-packages/gbdxtools/images/meta.py:21: UserWarning: ShareDict has been deprecated in favor of HighLevelGraph and will be removed in future versions from dask import sharedict, optimization Traceback (most recent call last): File "", line 1, in File "/home/joemcglinchy/anaconda3/envs/eapy_torch/lib/python3.6/site-packages/gbdxtools/init.py", line 10, in from gbdxtools.images.tms_image import TmsImage File "/home/joemcglinchy/anaconda3/envs/eapy_torch/lib/python3.6/site-packages/gbdxtools/images/tms_image.py", line 20, in from scipy.misc import imread ImportError: cannot import name 'imread'

Expected behavior:

successful import

Actual behavior:

failed import

Example

see above

joemcglinchy commented 5 years ago

installed using conda install -c conda-forge -c digitalglobe gbdxtools

drwelby commented 5 years ago

Newer versions of scipy dropped imread. You can get around this by installing an older version:

conda install -c conda-forge -c digitalglobe scipy=1.0.0 gbdxtools

We have a new release of GBDXtools almost ready that catches up all the dependencies.

anthony-ct commented 5 years ago

How is the new release of gbdxtools coming along?

drwelby commented 5 years ago

It's temporarily on pause.

drwelby commented 4 years ago

addressed in https://github.com/DigitalGlobe/gbdxtools/commit/5c09217c2cf50da183f768178955008f31ad99cd