ViennaPS icon indicating copy to clipboard operation
ViennaPS copied to clipboard

when i run the example

Open Yanthirteen13 opened this issue 1 year ago • 4 comments

he@he-virtual-machine:~/ViennaPS/build/ViennaPS/examples/holeEtching$ python3 holeEtching.py config.txt Running 2D simulation. Traceback (most recent call last): File "/home/he/ViennaPS/build/ViennaPS/examples/holeEtching/holeEtching.py", line 12, in import viennaps2d as vps File "/home/he/.local/lib/python3.10/site-packages/viennaps2d/init.py", line 11, in from ._viennaps2d import * ImportError: libvtkIOXMLParser.so.1: cannot open shared object file: No such file or directory

can u help me?i dont know what's the problem,thanks a lot

Yanthirteen13 avatar Feb 27 '24 15:02 Yanthirteen13

It appears there might be a linking issue with your VTK build. Could you please clarify whether you are using your own custom-built VTK, or if you're relying on the VTK build through buildDependencies while setting up ViennaPS?

tobre1 avatar Feb 27 '24 15:02 tobre1

i am relying on the VTK build through buildDependencies while setting up ViennaPS.when i rebuild ,it shows"Built target buildDependencies"

Yanthirteen13 avatar Feb 27 '24 15:02 Yanthirteen13

I am not able to reproduce this problem. Could you please provide additional information on your build system and building steps.

I've successfully reproduced this issue with a fresh build and utilizing a custom VTK build. It appears that the problem stems from the VTK libraries not being correctly included in the runtime path.

Unfortunately, I don't have an immediate solution for this at the moment. However, it's worth noting that we're currently in the process of a major overhaul of the CMake setup, which we anticipate will likely address this problem.

In the meantime, if you're able to utilize a system-wide installation of VTK, such as through a package manager like sudo apt install vtk9 on a Linux-based system, you should be able to run the Python bindings within the current setup.

tobre1 avatar Feb 28 '24 19:02 tobre1

With the latest CMake overhaul this should now work.

Could you please update and test again?

Curve avatar Mar 23 '24 10:03 Curve

I’ll close this issue due to inactivity. If you still encounter the problem, feel free to reopen it.

tobre1 avatar Apr 10 '25 11:04 tobre1