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

paraview_hello_world.ipynb doesn't work on Colab #1467

Open
AgnieszkaZaba opened this issue Dec 14, 2024 · 6 comments
Open

paraview_hello_world.ipynb doesn't work on Colab #1467

AgnieszkaZaba opened this issue Dec 14, 2024 · 6 comments

Comments

@AgnieszkaZaba
Copy link
Collaborator

I tried to run this notebook on Colab, on MacOs 14 and Ubuntu. I can't make it work.
First error that I get is
FileNotFoundError: [Errno 2] No such file or directory: 'pvpython'

On Ubuntu I managed to pass this error to another one
CalledProcessError: Command '['ffmpeg', '-f', 'rawvideo', '-vcodec', 'rawvideo', '-s', '1120x1488', '-pix_fmt', 'rgba', '-framerate', '10.0', '-loglevel', 'error', '-i', 'pipe:', '-vcodec', 'h264', '-pix_fmt', 'yuv420p', '-y', '/tmp/tmpodqfrsid/temp.m4v']' returned non-zero exit status 234.

It's connected to missing data_range parameter in update function (in a line plots[i].update(ncdf.variables[product][frame_num], step=step) )

After setting it to None there is a different error
`---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
Cell In[22], line 1
----> 1 np.full_like(ncdf.variables['surf_precip'][:], np.nan)

KeyError: 'surf_precip'`

Please help me :)
Maybe tutorial on HOWTO actually set paraview?

@slayoo
Copy link
Member

slayoo commented Dec 15, 2024

!pip install python3-paraview will, in principle, work on Colab and result in availability of the pvpython command.

@AgnieszkaZaba
Copy link
Collaborator Author

AgnieszkaZaba commented Dec 15, 2024 via email

@slayoo
Copy link
Member

slayoo commented Dec 15, 2024

Please help me :) Maybe tutorial on HOWTO actually set paraview?

We'd probably be better off directing users to existing tutorials on Paraview, e.g. https://docs.paraview.org/en/latest/Tutorials/SelfDirectedTutorial/

@AgnieszkaZaba
Copy link
Collaborator Author

!pip install python3-paraview getting me an error:

ERROR: Could not find a version that satisfies the requirement python3-paraview (from versions: none)
ERROR: No matching distribution found for python3-paraview

@slayoo
Copy link
Member

slayoo commented Dec 15, 2024

sorry! apt-get install python3-paraview

@slayoo
Copy link
Member

slayoo commented Dec 15, 2024

image

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