Hi,
I am trying to make a connection between Python (I use Spyder as IDE) and Plaxis.
I have tried to run the following code:
import syssys.path.append(r"C:\Program Files\Plaxis\PLAXIS 2D\python\Lib\site-packages")from plxscripting.easy import*
to import the plxscripting library, but I get the following error:
ImportError: DLL load failed while importing _Blowfish: The specified module could not be found
I have found modules named _Blowfish.pyd and Blowfish.py in the folder named Cipher. I tried to import other modules in plxscripting, and that worked out fine. For example:
import syssys.path.append(r"C:\Program Files\Plaxis\PLAXIS 2D\python\Lib\site-packages")from plxscripting.server import*
Has anyone encountered the same problem?
best regards,
Dina Hansen
Dear Dina,
Typically this error appears when a different version of Python is used in Spyder and PLAXIS.
For PLAXIS we use Python version 3.7.4, so please make sure that Spyder has the same Python version and the error will not appear anymore.
When using a different IDE, you can also point to the Plaxis Python distribution from this IDE to launch the correct Python distribution.
Look for the instructions of your IDE environment, or search online, like e.g. Anaconda with Spyder:
Answer Verified By: Dina Hansen
Thank you for your response!
You are right, the problem was that I used Python 3.8. I switched to Python 3.7 and the problem was solved.
best regards