GAA-UAM / scikit-fda

Functional Data Analysis Python package
https://fda.readthedocs.io
BSD 3-Clause "New" or "Revised" License
287 stars 51 forks source link

problem with scikit-fda #482

Closed arezooorooji closed 1 year ago

arezooorooji commented 1 year ago

Describe the bug Hi there, I hope you are doing well. I was trying to import skfda. but, I encountered a problem which is as follows:

_FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\Arezoo\AppData\Local\Programs\Python\Python310\lib\site-packages\dcor\pycache\_fast_dcov_mergesort._generate_distance_covariance_sqr_mergesort_generic_impl.locals._distance_covariance_sqr_mergesort_genericimpl-212.py310.1.nbc.tmp.21925382eb1f4350'

I appreciate it if you could guide me to fix it.

To Reproduce

import skfda
...

Expected behavior I wanna use the scikit-fda package.

Version information

Additional context Add any other context about the problem here.

vnmabus commented 1 year ago

I think this problem is because Numba uses very long names for its cache files, but Windows has a small length limit for the whole path. When the cache files are generated inside a folder too deep in the hierarchy, the path is longer than the limit.

Please try defining a different, more shallow, folder for Numba cache files using an environment variable, as explained in https://github.com/vnmabus/dcor/issues/31#issuecomment-943233307.

vnmabus commented 1 year ago

As you requested me further help, I will post this here in case it helps others too:

Description of the error:

Solution:

Alternative solution:

I hope this is detailed enough for you to solve this problem and be able to work with scikit-fda. If that is not the case, don't hesitate to ask again for more help.