Hello Community,
I had a new computer and I’d like to install FEniCSx. I’m used to docker so I’ve used the docker image dolfinx/dolfinx:stable.
In term of FEniCSx, everything works. But based on a tutotrial code such as the Poisson equation implementation here, pyvista is not natively installed in the docker container.
Using pip install pyvista
leads me to the following error:
[…]
Obtaining dependency information for pyvista from https://files.pythonhosted.org/packages/4f/ac/ae04079344705fd7720032b8f945bc25d410cee090fcd01106a2ac1098db/pyvista-0.25.2-py3-none-any.whl.metadata
Using cached pyvista-0.25.2-py3-none-any.whl.metadata (11 kB)
Using cached pyvista-0.25.1.tar.gz (1.2 MB)
Preparing metadata (setup.py) … error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
error in pyvista setup command: ‘python_requires’ must be a string containing valid version specifiers; Invalid specifier: ‘>=3.5.*’
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
I’ve firstly asked to question on the pyvista github QA. And we have figured out 2 things, the first one is that it has nothing to do with pyvista because ‘pip install pyvista’ works on my machine. The second one is that it can be an issue with vtk.
Indeed, running `pip install vtk´ returns this error:
ERROR: Could not find a version that satisfies the requirement vtk (from versions: none)
ERROR: No matching distribution found for vtk
I’ve tried many things to install pyvista by specifing a version and so on, but it always leads me to the error at the end.
Thank you for help,
Pierre
P.S.: It is the same issue with the docker for JupyterLab