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

tutorials: issue with running on Colab and mybinder #1230

Closed
slayoo opened this issue Jan 13, 2024 · 2 comments
Closed

tutorials: issue with running on Colab and mybinder #1230

slayoo opened this issue Jan 13, 2024 · 2 comments
Assignees

Comments

@slayoo
Copy link
Member

slayoo commented Jan 13, 2024

CC: @claresinger @bhiogade

Trying to run the new tutorials on Colab, I get:

---------------------------------------------------------------------------

ModuleNotFoundError                       Traceback (most recent call last)

[<ipython-input-2-de0b8468a668>](https://localhost:8080/#) in <cell line: 17>()
     15 
     16 # import tools for running and plotting this tutorial
---> 17 from PySDM_examples.Pyrcel.tutorial_settings import Settings
     18 from PySDM_examples.Pyrcel.tutorial_simulation import Simulation
     19 from PySDM_examples.Pyrcel.profile_plotter import ProfilePlotter

ModuleNotFoundError: No module named 'PySDM_examples.Pyrcel.tutorial_settings'

while on mybinder:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
Cell In[2], line 2
      1 # import functions for creating interactive widget
----> 2 from PySDM_examples.utils import widgets
      3 import numpy as np
      4 from numpy import errstate

File /srv/conda/envs/notebook/lib/python3.10/site-packages/PySDM_examples/utils/__init__.py:7
      5 from .dummy_controller import DummyController
      6 from .progbar_controller import ProgBarController
----> 7 from .read_vtk_1d import readVTK_1d

File /srv/conda/envs/notebook/lib/python3.10/site-packages/PySDM_examples/utils/read_vtk_1d.py:6
      3 import numpy as np
      5 if platform.architecture()[0] != "32bit":
----> 6     import vtk
      8     # pylint: disable = import-error, no-name-in-module
      9     from vtk.util import numpy_support as VN

File /srv/conda/envs/notebook/lib/python3.10/site-packages/vtk.py:5
      3 # this module has the same contents as vtkmodules.all
      4 from vtkmodules.vtkCommonCore import *
----> 5 from vtkmodules.vtkWebCore import *
      6 from vtkmodules.vtkCommonMath import *
      7 from vtkmodules.vtkCommonTransforms import *

ImportError: libGL.so.1: cannot open shared object file: No such file or directory
@claresinger claresinger self-assigned this Jan 18, 2024
@slayoo
Copy link
Member Author

slayoo commented Jan 22, 2024

Colab issue is addressed here: #1244

slayoo added a commit that referenced this issue Jan 22, 2024
@slayoo
Copy link
Member Author

slayoo commented Jan 22, 2024

The mybinder issue seems to be similar to this one: Fireline-Science/tello_sim#10
Trying a workaround here: #1245

@slayoo slayoo closed this as completed in c99463b Jan 22, 2024
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