Home › Forum › SOFA › Getting Started › PYSCN files not opening despite having python 3.8
Tagged: SOFA_2106, VS2019, Windows_10
- This topic has 7 replies, 2 voices, and was last updated 3 years, 1 month ago by Hugo.
-
AuthorPosts
-
13 October 2021 at 10:30 #20601zainabBlocked
Dear all,
I have downloaded sofa sofa v21.06 using the binary version. Upon trying to load a scene from the SoftRobot Tutorials, no PYSCN are opened with an error thrown: extension (pyscn) not handled.
I can see SofaPython3 in the plugin folder and I have python 3.6, 3.7, and 3.8. Upon trying to add the plugin in sofa’s GUI by: EDIT > Plugin Manager > ADD and selecting SofaPython3.dll I am getting the following error:
C:\Users\Zainab\Downloads\SOFA_v21.06.01_Win64\SOFA_v21.06.01_Win64\bin\SofaPython3.dll: The specified module could not be found.
Any thoughts?
Thanks in advance.14 October 2021 at 09:53 #20608HugoKeymasterThanks for your question.
Is this the full error log?
Could you try running this:echo PATH = %PATH% echo SOFA_ROOT = %SOFA_ROOT% echo PYTHONPATH = %PYTHONPATH% echo python -V python -V echo python3 -V python3 -V
Note also that binaries of SOFA (for the v21.06) are compiled with python3.7. You therefore need to have python3 pointing towards python3.7 only. I know that on Windows, it can be error prone to have many python versions installed.
Best wishes,
Hugo
14 October 2021 at 10:41 #20609zainabBlockedHi Hugo,
thanks for your reply. Here’s what am getting upon running these 3 commands:
python -V
Python 3.8.6rc1python3 -V
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.So I uninstalled all python versions and kept only version 3.7.9
I made sure that I ticked the box ‘add python to path’ so now python -V gives: 3.7.9, but python3 -V gives same previous result (not found)14 October 2021 at 20:32 #20616HugoKeymasterCould you also share the value of
PATH
,SOFA_ROOT
andPYTHONPATH
environment variable please ?Hugo
15 October 2021 at 09:25 #20623zainabBlockedHere they are:
C:\Users\Zainab>echo PATH = %PATH%
PATH = C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Users\Zainab\Git\cmd;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Users\Zainab\AppData\Local\Programs\Python\Launcher\;C:\Users\Zainab\AppData\Local\Programs\Python\Python37\Scripts\;C:\Users\Zainab\AppData\Local\Programs\Python\Python37\;C:\Users\Zainab\AppData\Local\Microsoft\WindowsApps;C:\Users\Zainab\SOFA\v20.12.00\bin;C:\Users\Zainab\Downloads\cmake-3.18.6-win64-x64\cmake-3.18.6-win64-x64\bin;C:\Users\Zainab\Downloads\eigen-3.3.9\eigen-3.3.9;C:\Users\Zainab\AppData\Local\QtProject\QtCreator;C:\local\boost_1_75_2\lib64-msvc-14.2;C:\local\boost_1_75_2;C:\Qt\Qt5.12.10\5.12.10\msvc2017_64\bin;C:\Qt\Qt5.12.10\5.12.10\msvc2017_64\lib;
echo SOFA_ROOT = %SOFA_ROOT%
SOFA_ROOT = %SOFA_ROOT%echo PYTHONPATH = %PYTHONPATH%
PYTHONPATH = %PYTHONPATH%17 October 2021 at 21:42 #20633HugoKeymasterIt confirms that both
SOFA_ROOT
andPYTHONPATH
are not defined.
Could you define them as detailed here for Windows: https://sofapython3.readthedocs.io/en/latest/menu/SofaPlugin.html#within-a-python3-interpreter (click on the Windows button)And then, check again these paths as you did above:
echo SOFA_ROOT = %SOFA_ROOT% echo PYTHONPATH = %PYTHONPATH%
Best
Hugo
18 October 2021 at 16:59 #20649zainabBlockedHi Hugo,
Thanks for your help. I think the python problem is partially solved however, when I try to launch the following:
1- CableGripper tutorial in SoftRobots plugin I get the following error:
ModuleNotFoundError: No module named ‘stlib’
Although I have stlib in the plugin files (and i added in the plugin manager of sofa’s GUI)
2- Opening PneunetGripper
Plugin not found: “SofaPython”
3- And also I got an error related to SoftRobot.Inverse
is it the same plugin for version 2019?19 October 2021 at 12:05 #20661HugoKeymasterThe STLIB plugin is not under our management. The migration towards python3 (NOTE: you should rather use
import stlib3
) is currently being done. Therefore, you might have noticed uncomplete cover of the STLIB features (some scenes are still only python2 compatible).Do not hesitate to report them here: https://github.com/SofaDefrost/STLIB/issues. It will help developers to upgrade the plugin.
Best,
Hugo
-
AuthorPosts
- You must be logged in to reply to this topic.