vedo icon indicating copy to clipboard operation
vedo copied to clipboard

There was a problem running file 'examples/notebooks/manipulate_camera.ipynb'

Open Eschatology0929 opened this issue 2 years ago • 2 comments
trafficstars

Dear @marcomusy, When I run 'manipulate_camera.ipynb' on vscode, the following error occurred:

ModuleNotFoundError                       Traceback (most recent call last)
e:\Python\Anaconda\lib\site-packages\vedo-2023.4.3-py3.8.egg\vedo\backends.py in start_k3d(actors2show)
    111     try:
--> 112         import k3d
    113         if str(k3d.__version__) != "2.7.4":

ModuleNotFoundError: No module named 'k3d'

During handling of the above exception, another exception occurred:

TypeError                                 Traceback (most recent call last)
<ipython-input-26-b04ed7fdddd6> in <module>
      3 bu=vedo.Mesh(vedo.dataurl+'bunny.obj')
      4 
----> 5 bu.show()

e:\Python\Anaconda\lib\site-packages\vedo-2023.4.3-py3.8.egg\vedo\base.py in show(self, **options)
    791         Returns the ``Plotter`` class instance.
    792         """
--> 793         return vedo.plotter.show(self, **options)
    794 
    795 

e:\Python\Anaconda\lib\site-packages\vedo-2023.4.3-py3.8.egg\vedo\plotter.py in show(at, shape, N, pos, size, screensize, title, bg, bg2, axes, interactive, offscreen, sharecam, resetcam, zoom, viewup, azimuth, elevation, roll, camera, mode, q, new, backend, *actors)
...
--> 115     except ModuleNotFoundError("Cannot find k3d, install with:  pip install k3d==2.7.4"):
    116         return None
    117 

TypeError: catching classes that do not inherit from BaseException is not allowed

What should I do? Any ideas that could help me fix this would be appreciated! Thanks in advance!

Eschatology0929 avatar Feb 27 '23 03:02 Eschatology0929

As the error message says you just need to install k3d

pip install k3d==2.7.4

marcomusy avatar Feb 27 '23 09:02 marcomusy

I really appreciate your help!

Eschatology0929 avatar Mar 01 '23 05:03 Eschatology0929