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
pv.plotter.export_html Hangs when '-i' option is given to argparse in user script #5934
Labels
bug
Uh-oh! Something isn't working as expected.
Comments
On Linux, it runs fine and outputs the file. It may be a Windows-specific issue. --------------------------------------------------------------------------------
Date: Wed Apr 17 07:48:59 2024 JST
OS : Linux
CPU(s) : 20
Machine : x86_64
Architecture : 64bit
Environment : Python
GPU Vendor : Intel
GPU Renderer : Mesa Intel(R) Graphics (ADL GT2)
GPU Version : 4.6 (Core Profile) Mesa 23.2.1-1ubuntu3.1
MathText Support : True
Python 3.11.6 (main, Oct 8 2023, 05:06:43) [GCC 13.2.0]
pyvista : 0.43.5
vtk : 9.3.0
numpy : 1.26.4
matplotlib : 3.8.4
scooby : 0.9.2
pooch : 1.8.1
pillow : 10.3.0
imageio : 2.34.0
pyvistaqt : Version unknown
IPython : 8.23.0
colorcet : 3.1.0
cmocean : 4.0.3
ipywidgets : 8.1.2
meshio : 5.3.5
trame : 3.6.0
trame_client : 3.0.1
trame_server : 3.0.0
trame_vtk : 2.8.5
trame_vuetify : 2.4.3
jupyter_server_proxy : 4.1.2
nest_asyncio : 1.6.0
-------------------------------------------------------------------------------- |
|
Oh, it's true. I downgraded |
@natsuwater Can we close this? |
Yes, indeed. I've confirmed that with updated wslink, export_html works fine just as expected. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug, what's wrong, and what you expected.
I am encountering an issue with the
pv.plotter.export_html
function in my script. The script usesargparse
to handle command-line options. When I pass the-i
option, the code hangs with traceback displayed.Expected Result: The script should generate a vtk.js-powered 3D view in test.html.
Note when I use the long option name
--input
, the code runs as expected and generates the HTML file.Also, as far as I’ve tested, it seems that the
-i
option is causing the issue. When I use a different option name (e.g., parser.add_argument("-j", "--j_input")), the script runs without any problems.Steps to reproduce the bug.
Set up a virtual environment and install pyvista on Windows 11 using the following command:
pip install pyvista[all,trame]
Run the following script:
python ./pv_h.py -i test.html
Resulting message:
On the other hand,
python ./pv_h.py --input test.html
generatestest.html
.System Information
Screenshots
No response
The text was updated successfully, but these errors were encountered: