Using visual studio 2019 and added a new python environment with the path "C:\ProgramData\Bentley\Geotechnical\PLAXIS Python Distribution\01.00\python". The plxscripting folder exists within the Lib folder but does not appear on the list of imported packages meaning code is unable to run. Is there something I am missing?
Dear Iman,
I am not sure what the configuration for the Python interpreter is in your Visual Studio 2019. I am aware that in various IDEs you can configure that so that the Python distribution from PLAXIS is used so there should be no issue with the plxscripting or other required modules by PLAXIS.
I have found online instructions for the following but something similar should be possible for Visual Studio, too:
Another option is to use the added feature in PLAXIS which allows you to configure PLAXIS to use a custom Python distribution. As you can see in the screenshot below there is an option to install the necessary modules:
This option is available under Expert > Python menu. If you do not see this option, try upgrading to our latest version PLAXIS CONNECT Edition V20.04 for this new feature.
Note that using your custom Python distribution might cause conflicts with the components we provide for PLAXIS. Currently, PLAXIS CONNECT Edition V20.04 uses Python 3.7.4, so if your custom Python version is different some modules might give errors.
We recommend using our Python distribution or at least the same Python version with the installed components.
You can always reach us by submitting a service request: https://apps.bentley.com/srmanager/ProductSupport
Answer Verified By: Iman Warsame
Hi Stefanos, I installed Python using custom Python distribution modules but it was impossible to install plxscripting package. Then Tried with PLAXIS-Python Distribution, "Could not find a version that satisfies the requirement plxscripting" error occurred. Could you help me solve this problem. I am using python 3.7.4 version as recommended by Plaxis.
Error in install Python modules using a custom Python distribution
Error in Install Python modules in the PLAXIS-Python Distribution
Hello Nam,
It seems that you may have started PLAXIS as a local user without permission to make changes.
We explain this procedure here:https://communities.bentley.com/products/geotech-analysis/w/plaxis-soilvision-wiki/51822/how-to-install-additional-python-modules-in-plaxis
- Start the PLAXIS Input as administrator from Windows Start menu.This is important in order to have proper rights to proceed with installing/updating any Python modules in the local Python directory.
Hello Stefanos, In fact, I have already run Plaxis as administrator and followed the procedure in the link you posted but this error still arises.
Dear Nam,
The plxscripting and encryption are modules we have implemented/processed and tailored for the PLAXIS application. Especially the plxscripting cannot be found in the pip as it is simply not there.
What about manually copying the folders from the Python distribution PLAXIS delivers to the location you are trying to copy them to?
Note that encryption.py is a file and plxscripting is a folder.