Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pandas error: cannot import name 'Panel4D' #54

Closed
dilawar opened this issue Jun 22, 2018 · 6 comments
Closed

pandas error: cannot import name 'Panel4D' #54

dilawar opened this issue Jun 22, 2018 · 6 comments

Comments

@dilawar
Copy link
Contributor

dilawar commented Jun 22, 2018

Traceback (most recent call last):
  File "exp_with_pypet.py", line 18, in <module>
    from pypet import Environment, Trajectory
  File "/home1/dilawars/.local/lib/python3.6/site-packages/pypet/__init__.py", line 13, in <module>
    from pypet.environment import Environment, MultiprocContext
  File "/home1/dilawars/.local/lib/python3.6/site-packages/pypet/environment.py", line 69, in <module>
    from pypet.trajectory import Trajectory
  File "/home1/dilawars/.local/lib/python3.6/site-packages/pypet/trajectory.py", line 25, in <module>
    from pypet.parameter import BaseParameter, Parameter, Result
  File "/home1/dilawars/.local/lib/python3.6/site-packages/pypet/parameter.py", line 70, in <module>
    from pandas import DataFrame, Series, Panel, Panel4D
ImportError: cannot import name 'Panel4D'

my pandas is version (0.23.1). Do I need to install some other package which is not in dependencies to fix it? Or pandas has deprecated Panel4D so I need to go back to old version?

@dilawar
Copy link
Contributor Author

dilawar commented Jun 22, 2018

Seems like Panel4D has been deprecated pandas-dev/pandas#13776

dilawar pushed a commit to dilawar/pypet that referenced this issue Jun 22, 2018
@SmokinCaterpillar
Copy link
Owner

Yes, seems like it, so as short term solution you could use an older pandas version. The fix in pypet should be easy, I'm going to look into this.

@dilawar
Copy link
Contributor Author

dilawar commented Jun 24, 2018 via email

@SmokinCaterpillar
Copy link
Owner

Ah cool, sure send the PR, thank you!

@dilawar dilawar mentioned this issue Jun 24, 2018
@SmokinCaterpillar
Copy link
Owner

Thanks, will be merged into master and uploaded to PyPi within the next few days!

@SmokinCaterpillar
Copy link
Owner

Merged into master, will be deployed to PyPi once CI pipeline passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants