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

Error when install meshio plugin for paraview,need help! #1434

Open
wang-hairui opened this issue Sep 15, 2023 · 2 comments
Open

Error when install meshio plugin for paraview,need help! #1434

wang-hairui opened this issue Sep 15, 2023 · 2 comments

Comments

@wang-hairui
Copy link

Hi, meshio plugin for paraview is really a recommended feature, but I have encountered some problems when installed this plugin and don't know how to solve them.

My Ubuntu version is 22.04. I first downloaded paraview version 5.9.0
image-20230915084051414
I knew I needed to configure the meshio package for the paraview python environment, so I created a new python3.8 environment in anconda and installed meshio via pip. Then I copied this package files from anconda to paraview. Through this way, I was able to successfully install meshio plugin.
But when I open .msh file, I met this error: AttributeError:module 'numpy'has no attribute 'bool'.
image-20230915084902179
So I reinstalled numpy=1.23 in anconda and copied it to the paraview directory. An other error occurred when opening .msh file. The error message is shown. Could you give me some help?
image-20230915085209331

@StopkaKris
Copy link

I'd like to follow up on this issue. Has there been any progress in addressing this? I know many individuals on the ParaView forums that are interested in getting this plugin working properly with ParaView:

https://discourse.paraview.org/t/is-it-possible-to-import-paraview-geometry-into-abaqus/253/3
https://discourse.paraview.org/t/paraview-meshio-plugin-py-not-designed-to-run-on-windows-or-contains-an-error/5740
https://discourse.paraview.org/t/cant-load-a-plugin-meshio/11440/3

Best regards,
Kris

Krzysztof Stopka

@reox
Copy link
Contributor

reox commented Jan 4, 2024

So I reinstalled numpy=1.23 in anconda

that's the problem. The numpy.bool type was deprecated in 1.20 - thus, the last version you can use is 1.20. In 1.23 the type is not present anymore, hence you get this error message.

I just had this issue here too, and the solution was to install numpy==1.20 into the user directory using anaconda 2020.7:

/opt/anaconda_2020.7/python38/bin/python -m pip install --user numpy==1.20

This should install it to ~/.local/lib/python3.8/site-packages, which is already read by paraview 5.9.

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

3 participants