Hello, I have a question to connect plaxis from a code in python.
Initially I got this error:"ModuleNotFoundError: No module named 'plxscripting' "
And I managed to fix it by placing the following code:
" File "C:\ProgramData\Bentley\Geotechnical\PLAXIS Python Distribution V1 Update 1\python\Lib\site-packages\plxscripting\easy.py", line 26, in <module> from .server import new_server as n_serv File "C:\ProgramData\Bentley\Geotechnical\PLAXIS Python Distribution V1 Update 1\python\Lib\site-packages\plxscripting\server.py", line 39, in <module> from .connection import HTTPConnection File "C:\ProgramData\Bentley\Geotechnical\PLAXIS Python Distribution V1 Update 1\python\Lib\site-packages\plxscripting\connection.py", line 32, in <module> import encryption ModuleNotFoundError: No module named 'encryption' "
You know some lines with which I can get the 'encryption' module
Dear Andres,
First of all, I have noticed that you are using the old boilerplate. Please check here for the new one:https://communities.bentley.com/products/geotech-analysis/w/plaxis-soilvision-wiki/46005/using-plaxis-remote-scripting-with-the-python-wrapper
Apart from that the fact that Python complains that there is no plxscripting and encryption modules, indicates to me that you are probably using a custom Python version you installed yourself instead of the one that PLAXIS provides.
In that case, you need to copy the necessary modules to your custom Python distribution. That is explained here: https://communities.bentley.com/products/geotech-analysis/w/plaxis-soilvision-wiki/51822/how-to-install-additional-python-modules-in-plaxis