Huangzizhou / DiffIPC-data

Differentiable solver for time-dependent deformation problems with contact
https://cims.nyu.edu/~zh1476/research/diffipc.html
MIT License
25 stars 3 forks source link

a bug about import Python binding of PolyFEM: "polyfempy.cpython-39-x86_64-linux-gnu.so: undefined symbol: zpotrf" #2

Closed Xuuuuuuuuuuuuuu closed 2 months ago

Xuuuuuuuuuuuuuu commented 2 months ago

Dear author, Thanks for sharing your amazing work!

I have successfully installed polyfempy-0.7 image But when “import polyfempy as pf", I encountered a bug "polyfempy.cpython-39-x86_64-linux-gnu.so: undefined symbol: zpotrf" image

Huangzizhou commented 2 months ago

Hi,

Thanks for your report! zpotr seems to be part of lapack, you might need to install lapack first. A quick try is to install the lapack and blas first. Otherwise, could you try to compile the C++ code polyfem to see if they work? Upon successful compilation, you can run the unit tests by just

./build/tests/unit_tests
Xuuuuuuuuuuuuuu commented 2 months ago

Thank for your reply! I have installed the lapack and blas by using “conda install” image image and I have compiled the C++ code polyfem. I run the unit tests ,it seems work well. image and I also use it to run the json code,it seems no problem. image However,when “import polyfempy as pf", I still encounter the bug "polyfempy.cpython-39-x86_64-linux-gnu.so: undefined symbol: zpotrf"

Huangzizhou commented 2 months ago

Could you please try to compile and run unit test on the branch that I use for the python binding as well? And could you provide your computer system and version?

Xuuuuuuuuuuuuuu commented 2 months ago

Thank for your reply ! ! Yes,the above result(run unit test and run json code) is based your branch. This is my computer system: image and my python version is 3.8.19

Huangzizhou commented 2 months ago

Updated instructions in github repo and fixed the import issue.