I just learned today (October 4th, 2024) that the Keyword Edit feature of 3DEXPERIENCE 2024x now uses the Python 3.10 interpreter included with 3DEXPERIENCE instead of the Python 3.7 interpreter. I am not sure the first version of 3DEXPERIENCE where this occurs, but this change is definitely in 2024x HotFix 5.21, with a build day of 10-01-2024.1953, and an Internal build level of 6.426.6.24. The public cloud version of 3DEXPERIENCE is now on this release, but if your company has an on-premise installation you probably have not migrated to this version yet.
If you were relying on install_to_3DEXPERIENCE.bat to install inpRW to your 3DEXPERIENCE installation, this will no longer install inpRW to the proper location. That script will install inpRW to the Python 3.7 interpreter which was formerly used by Keyword Edit. Thus, I need to modify install_to_3DEXPERIENCE.bat to account for the change of interpreter by Keyword Edit. I will release an updated version of inpRW which corrects this and a few other bugs as soon as possible.
There is one other small problem with the switch to Python 3.10. The Python 3.10 interpreter used by 3DEXPERIENCE Keyword Edit does not include pip by default. Thus, pip needs to be installed before it can be used to install inpRW. You can install pip and upgrade it to the latest version using the following commands:
python -m ensurepip --default-pip python -m pip install --upgrade pip
Please note that "python" in the preceding commands needs to refer to the Python executable used by Keyword Edit. This executable is located in this path relative to your 3DEXPERIENCE installation directory:
3DEXPERIENCE_INSTALL_DIR\\win_b64\\tools\\SMApy\\python3.10
This should be the default location for the public cloud client:
C:\\Program Files\\Dassault Systemes\\B426_Cloud\\win_b64\\tools\\SMApy\\python3.10
Once pip has been installed, you can simply modify install_to_3DEXPERIENCE.bat to replace the reference to python3.7 with python3.10. For example,
for /f "delims=" %%j in ('WHERE "%folder%\\win_b64\\tools\\SMApy\\python3.7\\:python.exe" /F') do set "python3_3dx=%%j"should become
for /f "delims=" %%j in ('WHERE "%folder%\\win_b64\\tools\\SMApy\\python3.10\\"python.exe" /F') do set "python3_3dx=%%j"Finally, I distribute two zip files of inpRW. 1a includes just inpRW, while 1b also includes numpy 1.21.5 and scipy 1.7.3. Those version of numpy and scipy are not compatible with Python 3.10. The Python 3.10 interpreter used by 3DEXPERIENCE Keyword Edit should include compatible versions of numpy and scipy out of the box, so you don't need to worry about installing those dependencies.
