GAA-UAM / scikit-fda

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

ImportError in Jupyter notebook env #631

Open smhatre34 opened 2 months ago

smhatre34 commented 2 months ago

Bug description summary

ImportError: cannot import name '_evaluate_grid' from 'skfda._utils' (C:\Users\abcd\anaconda3\lib\site-packages\skfda_utils__init__.py)

I have already manually uninstall and reinstall using pip but error exist.

Code to reproduce the bug

import skfda
from skfda.preprocessing.dim_reduction import FPCA

Expected result

Import package

Actual result

Unable to import

Traceback (if an exception is raised)

No response

Software versions

scikit-fda 0.9

Additional context

No response

vnmabus commented 2 months ago

May be related to #623. What is your Python version?

smhatre34 commented 2 months ago

3.11.9 | packaged by Anaconda, Inc. | (main, Apr 19 2024, 16:40:41) [MSC v.1916 64 bit (AMD64)]

I am still getting same error

vnmabus commented 2 months ago

Can you try the develop version?:

python -m pip install git+https://github.com/GAA-UAM/scikit-fda.git@develop
kulmak commented 2 months ago

Hey, I had a similar error: ImportError: cannot import name '_check_array_key' from 'skfda._utils'. Using the dev version of the package solved it. I'm also using Python 3.11.9