abzargar / COVID-Classifier

An efficient machine learning model to assist in the diagnosis of COVID-19 infection in chest x-ray images
11 stars 13 forks source link

I am having this Import error. Don't know why #1

Open SanaMunirKhan opened 3 years ago

SanaMunirKhan commented 3 years ago

runfile('C:/Users/SANA/Downloads/COVID-Classifier-master/preprocess_images.py', wdir='C:/Users/SANA/Downloads/COVID-Classifier-master') Traceback (most recent call last):

File "", line 1, in runfile('C:/Users/SANA/Downloads/COVID-Classifier-master/preprocess_images.py', wdir='C:/Users/SANA/Downloads/COVID-Classifier-master')

File "G:\python\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 678, in runfile execfile(filename, namespace)

File "G:\python\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 106, in execfile exec(compile(f.read(), filename, 'exec'), namespace)

File "C:/Users/SANA/Downloads/COVID-Classifier-master/preprocess_images.py", line 4, in import skimage.io as io

File "G:\python\lib\site-packages\skimage\io__init__.py", line 11, in from ._io import *

File "G:\python\lib\site-packages\skimage\io_io.py", line 7, in from ..color import rgb2grey

File "G:\python\lib\site-packages\skimage\color__init__.py", line 1, in from .colorconv import (convert_colorspace,

File "G:\python\lib\site-packages\skimage\color\colorconv.py", line 60, in from ..util import dtype, dtype_limits

File "G:\python\lib\site-packages\skimage\util__init__.py", line 7, in from .arraycrop import crop

File "G:\python\lib\site-packages\skimage\util\arraycrop.py", line 8, in from numpy.lib.arraypad import _validate_lengths

ImportError: cannot import name '_validate_lengths'

abzargar commented 3 years ago

Thank you for your email. I will check it out and will let you know.

Sincerely,

Abolfazl Zargari

Ph.D. student and research assistant

Electrical and Computer Engineering Department

The University of California, Santa Cruz Email: abzargar@ucsc.edu

On Tue, Oct 27, 2020 at 1:50 PM Sana Munir Khan notifications@github.com wrote:

runfile('C:/Users/SANA/Downloads/COVID-Classifier-master/preprocess_images.py', wdir='C:/Users/SANA/Downloads/COVID-Classifier-master') Traceback (most recent call last):

File "", line 1, in runfile('C:/Users/SANA/Downloads/COVID-Classifier-master/preprocess_images.py', wdir='C:/Users/SANA/Downloads/COVID-Classifier-master')

File "G:\python\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 678, in runfile execfile(filename, namespace)

File "G:\python\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 106, in execfile exec(compile(f.read(), filename, 'exec'), namespace)

File "C:/Users/SANA/Downloads/COVID-Classifier-master/preprocess_images.py", line 4, in import skimage.io https://mailtrack.io/trace/link/04ba332fa8dda14ad2d06e1ba575c1c3d4fbe93e?url=http%3A%2F%2Fskimage.io&userId=2833009&signature=16cffc704095ff3d as io

File "G:\python\lib\site-packages\skimage\ioinit.py", line 11, in from ._io import *

File "G:\python\lib\site-packages\skimage\io_io.py", line 7, in from ..color import rgb2grey

File "G:\python\lib\site-packages\skimage\colorinit.py", line 1, in from .colorconv import (convert_colorspace,

File "G:\python\lib\site-packages\skimage\color\colorconv.py", line 60, in from ..util import dtype, dtype_limits

File "G:\python\lib\site-packages\skimage\utilinit.py", line 7, in from .arraycrop import crop

File "G:\python\lib\site-packages\skimage\util\arraycrop.py", line 8, in from numpy.lib.arraypad import _validate_lengths

ImportError: cannot import name '_validate_lengths'

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://mailtrack.io/trace/link/4d1ad6b7399793f373554efc06eb92a610b62daa?url=https%3A%2F%2Fgithub.com%2Fabzargar%2FCOVID-Classifier%2Fissues%2F1&userId=2833009&signature=5688d5f436bf1d38, or unsubscribe https://mailtrack.io/trace/link/4a3340b85d31a9ad23da52da3e14bbb0ec5be34b?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FANZFO6ZY72HL7JITWSFTIH3SM4W7RANCNFSM4TBMCBUQ&userId=2833009&signature=a435260addd470b7 .