| Application | PLAXIS 2D PLAXIS 3D |
| Version | PLAXIS 2D CONNECT Edition 20 and later PLAXIS 2D 2023 and later PLAXIS 3D CONNECT Edition 20 and later PLAXIS 3D 2023 and later |
| Date created | 17 September 2024 |
| Date modified | 25 September 2024 |
| Original author | Stefanos Papavasileiou - Technical Support Group |
| Keywords | PLAXIS, Python, script, API, error, bug report |
In this article you will understand how to identify a potential error when running a Python tool with PLAXIS and request assistance from your IT team.
The PLAXIS software provides an HTTP-based API (REST HTTP API), for which a special Python wrapper was developed for an easy-to-use scripting API. Both PLAXIS Input and PLAXIS Output support this usage of a Remote Scripting server.
With the installation of PLAXIS, a full Python distribution is provided along with many useful modules that assist in building various automations empowering your geotechnical projects.
In some cases, you are provided with a PLAXIS installation via an internal software distribution center, which may have included only the basic components of the installer (e.g., PLAXIS software), thus skipping the necessary Python distribution and relevant registry key configurations.
All Python tools in PLAXIS require access to the PLAXIS Python distribution provided with the installation.
When you try to run/open any Python tool, such as the Interpreter (under Expert > Python menu), the Calculation Manager (under Expert menu), the PLAXIS 2D to 3D Converter (under Expert menu) or the Import GeoStudio 2D (under File menu), you may encounter an error, and the following pop-up window appears.
Via the pop-up window, you can select "save bug report" (as text file) or "show bug report", which will give you some insight into the exact error you experience.
To identify the error code, when viewing the bug report look for the "exception message". This is mentioned in the 24th line of the bug report file.
Typically, this error message (among others) refers to the following:
Python tool failed to run! "NO PYTHON FOUND"
In this situation, you can confirm that the PLAXIS Python distribution has not been installed and/or configured properly on your PC.
The PLAXIS installer offers a Repair mode, which can potentially help fix any issues with the installation, including the "NO PYTHON FOUND" error.
You can find the links to our latest versions on the page PLAXIS Software downloads.
Otherwise, go to https://softwaredownloads.bentley.com/en/ and search for PLAXIS 2D or PLAXIS 3D products. Make sure to select the correct major version that you currently have installed on your PC.
Once you have the correct PLAXIS installer, run it and select the Repair option.
Another solution to the "NO PYTHON FOUND" error is to perform a complete re-installation of the PLAXIS application.
First, uninstall the PLAXIS installation on your PC via the Add or remove programs option in the Windows Start menu and use the official installers from our Bentley Software Downloads pages to install it again.
If you still have problems using any Python tool, check the article on How to receive Technical Support.