Hi all
I was trying to run a python script to define a P3D project - the P3D version is PLAXIS 3D CONNECT Edition V21 Update 1 - but I cannot successfully run it as indicated by the tutorial video https://communities.bentley.com/products/geotech-analysis/w/plaxis-soilvision-wiki/45880/remote-scripting-api-drivemining
One different thing is that I'm using Spyder instead of Idle editor, I'm not sure if it's the reason, and I've got warning like shown in the figure:
The code I used is: (exactly the same as the tutorial except the plaxis_path, and I do see the plxscripting folder in this path)
plaxis_path = r'C:\ProgramData\Bentley\Geotechnical\PLAXIS Python Internal Distribution V1 Update 1\python_internal\Lib\site-packages'import impimport mathfound_module = imp.find_module('plxscripting', [plaxis_path])plxscripting = imp.load_module('plxscripting', *found_module)from plxscripting.easy import *
And the error message shows:
File "C:\ProgramData\Bentley\Geotechnical\PLAXIS Python Internal Distribution V1 Update 1\python_internal\Lib\site-packages\plxscripting\connection.py", line 32, in <module> import encryption
ModuleNotFoundError: No module named 'encryption'
I checked the files within the plxscripting folder, and there is no module called 'encryption' (unlike a similar question in the forum that he can see the 'encryption' but cannot find it). Should I download this module from somewhere? Or is it the problem of the plaxis_path?
Hope my description is clear, thanks