Closed hunter1992 closed 3 years ago
OK, the problem was solved. (Under Windows10) The python packge "exudyn" needs a file named "exudynCPP.cp38-win_amd64.pyd" which is complied by Visual Studio.
The steps I did:
I prefer that exudyn can be successfully deployed on Linux, because it is more convenient and direct to use python and C++ on Linux. But when I try to compile the exudynCPP.xyz.so file under Linux (Manjaro), I always encounter a segment error when I run the pytest.py file. I hope that friends who know about this can solve this problem.
That's all.
Hi hunter1992! Thanks for your post and congratulations that it worked finally on Windows. It seems that you did not correctly install the windows wheel (using pip). There are several options for installation on Windows as well as Linux given in theDoc.pdf, Sections 1.2.2, 1.2.3 (install), 1.2.5 (build under Windows), 1.2.7 (build under Linux). The errors you got look like if you have not installed but just copied the files into local directories. After the step 2 described in your previous post, "python setup.py install", exudyn should be already installed and you should be able to run exudyn in Python directly. The library has been reportedly tried by dozens of users, without problems. The only known issue is with CPUs that are not capable of AVX-2. Regarding the Linux problems, please try to use the steps described in Section 1.2.7. Also check docs/howTo files, especially "ubuntuPythonSetup.txt", which may contain valuable information. I only test with Ubuntu18.04 and 20.04, but have no experience with Manjaro. If you can provide me more information on the segmentation fault, I could help you.
Corrected a couple of issues with Linux compilation (which may have the reason for the above mentioned problems), therefore this issue should be resolved. Compilation tests were successful with Python 3.6 and 3.8 on Ubuntu.
UPDATE: there were still some issues with GLFW in the recent versions. Version 1.0.276 now tested with UBUNTU20.04, running smoothly for several examples, including graphics interface (but needs numpy, matplotlib, tkinter, etc. installed).
Hello jgerstmayr: I got an import error before using the EXUDYN.
After installing EXUDYN using the method in section 1.2.2 of theDoc, ModuleNotFoundError occurs: No module named 'exudynCPP' .
My environment:
Then, I tried to run the pytest.py file under the path: EXUDYN-master\main\pythonDev
I suspected that I did not install the whl file correctly, so I installed it again, but it turned out that there was nothing wrong with the installation of the whl file:
I was confused. How should it be solved?