There is no plxscripting module !!

Hello,

I need to use the plaxis script to get the result but I have this error (No module plxscripting) in the script! I did below steps:

1- Activated remote scripting server

2- Started SciTE editor

3- Included boilerplate below:

from plxscripting. easy import *
s_i, g_i = new_server('localhost', 10000, password='password')

4- Saved as *.py

5- Hit F5

and then this error appeared:

 from plxscripting. easy import *
ModuleNotFoundError: No module named 'plxscripting'

6-To get rid of that I pressed on windows+R bottom (cmd) and I installed Python packages cd C:\ProgramData\Bentley\Geotechnical\PLAXIS Python Distribution V1\python\Lib\site-packages

7- In the command prompt I installed Python modules using the below command

Python -m pip install pandas

Python -m pip install easy

Python -m pip install plxscripting

8- Again I hit F5  to run the scripts and I found this error again:

 from plxscripting. easy import *
ModuleNotFoundError: No module named 'plxscripting'

So, Could anyone help e to solve this problem?

Many thanks for your help

Parents
  • Dear Sanaz,

    You seem to be missing the registries to the PLAXIS Python distribution we provide with the installation.

    From your description, you are probably using the PLAXIS CONNECT Edition V21, so the default distribution should be located at:
    C:\ProgramData\Bentley\Geotechnical\PLAXIS Python Distribution V1 Update 1

    Even if the Python folder is present, if PLAXIS cannot recognize this as the Python distribution to use, it will report that it is missing things.

    One quick way to check this is to go to Input program under Expert > Python > Configure Python interpreter... and see if the Default is selected and within the parentheses, the following is written (as shown below): PLAXIS Python Distribution V1 (or V1 Update 1).

    In any case, since this seems to be a rather specific to your PC issue, please open a new Case and we can follow up with you: https://bentleysystems.service-now.com/csp

  • Dear Stefanos,

    Many thanks for your help. I realized that I need to install "easy" as a library from Python distribution. In the command prompt, I wrote the following command:

    "pip install easy"

    and then in Python I wrote:

    "import easy"

    After that, I hit F5 and the error disappeared.

    Cheers

Reply Children
No Data