-
Notifications
You must be signed in to change notification settings - Fork 236
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
Syntaxis error in widgets.py: #440
Comments
Hi again, I have installed all from scratch because I found that the widgets.py file I had in my pc was (for some strange reason) different from the widgets.py file in the master branch of the ipyvolume repo. Now I have a different error which may be due to a circular import (according to the error message):
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I am having troubles trying to use the ipyvolume library.
I have installed it using conda and defining a conda environment.
At first I tried to use it in VSCode but some problem with the widgets prevented ipyvolume to show the 3d interactive plot properly.
Anyway, I went to the safer jupyter lab way ran in a browser (in this case Chrome Version 115.0.5790.110):
This is my jupyter version (and sub-versions):
IPython : 8.14.0
ipykernel : 5.5.5
ipywidgets : 8.0.7
jupyter_client : 8.3.0
jupyter_core : 5.3.1
jupyter_server : 2.7.0
jupyterlab : 4.0.3
nbclient : 0.8.0
nbconvert : 7.7.3
nbformat : 5.9.1
notebook : 7.0.0
qtconsole : not installed
traitlets : 5.9.0
And this is my python version (also installed in the conda environment I called jupyterEnv):
python 3.9.2
Conda version:
conda 23.7.2
Here is the error that jupyter lab gives when trying to import ipyvolume library:
Traceback (most recent call last):
File ~/Desktop/CondaEnv/miniconda3/envs/jupyterEnv/lib/python3.9/site-packages/IPython/core/interactiveshell.py:3508 in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
Cell In[1], line 16
from ipyvolume import *
File ~/Desktop/CondaEnv/miniconda3/envs/jupyterEnv/lib/python3.9/site-packages/ipyvolume/init.py:8
from ipyvolume.widgets import * # noqa: F401, F403
File ~/Desktop/CondaEnv/miniconda3/envs/jupyterEnv/lib/python3.9/site-packages/ipyvolume/widgets.py:157
return pythreejs.ShaderMatshow_max = traitlets.CFloat(1).tag(sync=True)ew').tag(sync=True)
^
SyntaxError: invalid syntax
Finally, I want to say that some time ago I used this library also in Ubuntu, and it worked perfectly at that moment.
Something is off here :( In some of my attempts to fix this (trying in another environment to (un)-install other packages, use other pyhton version, etc) sometimes I got this error: AttributeError: module 'ipyvolume' has no attribute '_version'.
I would really appreciate any help with this issue!
Regards, Juan.
The text was updated successfully, but these errors were encountered: