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

Error is reported when "from py4vasp import Calculation" in jupyter #72

Closed
xinliang-huang opened this issue Jan 7, 2023 · 3 comments
Closed
Labels

Comments

@xinliang-huang
Copy link

Hello,

I install py4vasp, and then run the command "python - c" import py4vasp; print (py4vasp. version) ". It indicates that the installation is successful, but an error is reported when running in jupyter. I don't know why.

After running "from py4vasp import calculation", an error is reported as follows:

Output exceeds the size limit. Open the full output data in a text editor

AttributeError Traceback (most recent call last)
Cell In[15], line 1
----> 1 from py4vasp import Calculation

File /work/huangxl/codes/anaconda3/lib/python3.8/site-packages/py4vasp/init.py:3
1 # Copyright © VASP Software GmbH,
2 # Licensed under the Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
----> 3 from .calculation import Calculation
4 from py4vasp._third_party.interactive import set_error_handling
6 version = "0.4.0"

File /work/huangxl/codes/anaconda3/lib/python3.8/site-packages/py4vasp/calculation.py:16
3 """Provide the tools to manage VASP calculations.
4
5 This is the main user interface if you want to simply investigate the results of VASP
(...)
13 >>> calc.structure.print() # to print the structure in a POSCAR format
14 """
15 import inspect
---> 16 import py4vasp.data
17 import py4vasp.exceptions as exception
18 import py4vasp.control

File /work/huangxl/codes/anaconda3/lib/python3.8/site-packages/py4vasp/data/init.py:33
...
52 if self._ready:
53 return
---> 54 super().ipython_display(**kwargs)

AttributeError: 'super' object has no attribute 'ipython_display'

@martin-schlipf
Copy link
Collaborator

Thank you for reporting this. The issue is caused by a recent upgrade to ipywidgets that broke the nglview package. To fix this you can

pip uninstall ipywidgets
pip install ipywidgets==7.7

Copy link

github-actions bot commented Nov 6, 2023

We consider issues as stale if there has been no activity in them for 10 months.

@github-actions github-actions bot added the stale label Nov 6, 2023
Copy link

This issue was closed after 1 year of inactivity.

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

No branches or pull requests

2 participants