Anaconda suggesting file path that does not exist

63 Views Asked by At

I am importing package A which is dependent on package B and getting an import error for something within package B. Despite lots of trying, I can't get the dependencies to match, so I want to just edit package B to fix the problem. The issue is that my current anaconda environment is tracing the error to a file path does not exist.

In particular, it thinks the error is in: /opt/anaconda3/lib/python3.8/site-packages/scipy/_lib/_util.py

However, the actual path that exists is /Users/USER/opt/anaconda3/lib/python3.9/site-packages/scipy/_lib/_util.py

I really have no idea what is going on because there is no such file path so where could it be looking? Furthermore, I changed the file in the python3.9 folder which had no effect. Any help would be great.

P.S. the underlying error here I was trying to fix is when trying to import featuretools I receive the following error: ImportError: cannot import name 'float_factorial' from 'scipy._lib._util' If anyone wants to tackle this too that'd be amazing ;)

Updated with full error traceback for the original import error: enter image description here

0

There are 0 best solutions below