Hi Renaud,
Thank you for all your answers !
I tried with another interpretor but I got the same problem (for both versions).
I re-read
this conversation on the Google Group and tried a new approach.
Rather than runnning the code
readBdf.py from a Python IDE, I used this script in the command prompt :
setlocal
set PYTHONPATH=C:/Users/Raynaud/Desktop/FeResPost/FeResPost_win64_5.0.6b/OUTPUTS/PYTHON/PYTHON_311
set PYTHONINSTALLDIR=C:/Users/Raynaud/AppData/Local/Programs/Python/Python311
set REDISTRPATH=C:/Users/Raynaud/Desktop/FeResPost/FeResPost_win64_5.0.6b/OUTPUTS/REDISTR
set PATH=%PYTHONINSTALLDIR%;%REDISTRPATH%
python readBdf.py
endlocal And it worked ! With both versions (5.0.6b and 5.0.7).
I thought that moving the
FeResPos.pyd file from the downloaded directory to the Lib/site-packages directory was sufficient.
So now it is possible to use the library this way, but if I want to use a Python IDE, I have to run a first code that defines the environnement and then calls the
readBdf.py file (you can see it on the first screen). But, if I want to do it in the same .py file I get the same error again (you can see it on the second screen).
I still don't understand why this happens, and it's still a problem since you don't have access to the IDE's "documentation" or check syntax when you are coding.
If anyone finds a solution to this problem, please let me know !
Regards,
Clément