Home › Forum › SoftRobots › Getting Started › Error adding SofaPython3 and STlib plugin
Tagged: SOFA_2112, SofaPython3, win10
- This topic has 5 replies, 3 voices, and was last updated 2 years, 8 months ago by
CharlieD.
-
AuthorPosts
-
22 May 2021 at 19:30 #19533
antonio.8196
BlockedHi, I downloaded the latest version of the SOFA binaries (20.12.03) and I wanted to open the Soft Robots tutorials, digging into the forum I saw that I needed to add the plugins from Sofa itself (since SOFa could not open .pyscn files) and I added the STlib plugin and the Soft Robots plugin but when I want to add the SofaPython3 plugin i get this message
Plugin loading failed (/home/einklugerjaeger/SOFAv20.12.03/SOFA_v20.12.03_Linux/plugins/SofaPython3/lib/libSofaPython3.so): libpython3.7m.so.1.0: cannot open shared object file: No such file or directory
I decided to install it from here but i get a similar error when trying to add the SofaPython3 plugin
Plugin loading failed (/home/einklugerjaeger/MySofa/SOFA_v20.12.00_Linux/plugins/SofaPython3/lib/libSofaPython3.so): libpython3.7m.so.1.0: cannot open shared object file: No such file or directory
I get a warning too when loading SOFA
Warning: Setting a new default format with a different version or profile after the global shared context is created may cause issues with context sharing. The constructor with a QGLFormat is deprecated, use the regular contructor instead.
I have installed python 3.8, numpy and scipy as needed
einklugerjaeger@einklugerjaeger-VirtualBox:~$ python --version Python 3.8.5
I have also a python2 package but as i showed above my default python version is 3.8, any help would be great! I am using xubuntu 20.0
22 May 2021 at 19:31 #19534antonio.8196
BlockedI have already installed libopengl0
31 May 2021 at 23:30 #19618Hugo
KeymasterYou are using a SOFA binary which have been compiled using python3.7, you have the python3.8 installed on your machine.
You need to install the 3.7 version as stated here.
Best wishes
Hugo
5 June 2021 at 17:39 #19657antonio.8196
BlockedHi @Hugo, thanks for the response,
Finally I just downloaded the binaries using my windows10 os but when I try to add the SofaPython3 plugin i get this error
[INFO] [PluginManager] Loaded plugin: C:/Users/Sandoval/SOFA/v20.12.03/bin/STLIB.dll [INFO] [PluginManager] Loaded plugin: C:/Users/Sandoval/SOFA/v20.12.03/bin/SoftRobots.dll Warning: Setting a new default format with a different version or profile after the global shared context is created may cause issues with context sharing. The constructor with a QGLFormat is deprecated, use the regular contructor instead. [INFO] [SceneCheckerVisitor] Validating node "root" with checks: [SceneCheckDuplicatedName, SceneCheckMissingRequiredPlugin, SceneCheckUsingAlias] [INFO] [SceneCheckerVisitor] Finished validating node "root". [INFO] [SofaPython3] Initializing with python version 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] [INFO] [SofaPython3] Registering a scene loader for [.py, .py3, .pyscn, .py3scn] files. [INFO] [SofaPython3] Intializing python [INFO] [SofaPython3] No python3 dir found in C:/Users/Sandoval/SOFA/v20.12.03 ########## SIG 22 - SIGABRT: usually caused by an abort() or assert() ########## 47: sofa::helper::BackTrace::dump - 0x7ffb4e5b6f1046: sofa::helper::BackTrace::sig - 0x7ffb4e5b705c45: raise - 0x7ffbaa2516a044: abort - 0x7ffbaa25282043: terminate - 0x7ffbaa251f8042: terminate - 0x7ffbaa251f8041: UnhandledExceptionFilter - 0x7ffbaa62b6a040: memset - 0x7ffbacb73ec039: _C_specific_handler - 0x7ffbacb5c6e038: _chkstk - 0x7ffbacb7206037: RtlRaiseException - 0x7ffbacb2102036: RtlRaiseException - 0x7ffbacb2102035: RaiseException - 0x7ffbaa554b2034: CxxThrowException - 0x7ffb9a6647b033: sofapython3::PythonEnvironment::getStaticData - 0x7ffb3dc1ff4c32: sofapython3::PythonEnvironment::Init - 0x7ffb3dc1813831: initExternalModule - 0x7ffb3dc1165030: sofa::helper::system::PluginManager::loadPluginByPath - 0x7ffb4e63903429: sofa::gui::qt::SofaPluginManager::addLibrary - 0x7ffb48bcc8b028: QMetaObject::activate - 0x7ffb47a8b31027: QAbstractButton::clicked - 0x7ffb46fd97d026: QAbstractButton::click - 0x7ffb46fd960025: QAbstractButton::mouseReleaseEvent - 0x7ffb46fda4d024: QWidget::event - 0x7ffb46f2d7c023: QApplicationPrivate::notify_helper - 0x7ffb46f0832022: QApplication::notify - 0x7ffb46f0593021: QCoreApplication::notifyInternal2 - 0x7ffb47a6a8d020: QApplicationPrivate::sendMouseEvent - 0x7ffb46f097f019: QSizePolicy::QSizePolicy - 0x7ffb46f5429018: QSizePolicy::QSizePolicy - 0x7ffb46f5429017: QApplicationPrivate::notify_helper - 0x7ffb46f0832016: QApplication::notify - 0x7ffb46f0593015: QCoreApplication::notifyInternal2 - 0x7ffb47a6a8d014: QGuiApplicationPrivate::processMouseEvent - 0x7ffb47ee7f1013: QWindowSystemInterface::sendWindowSystemEvents - 0x7ffb47ed405012: QEventDispatcherWin32::processEvents - 0x7ffb47ab45e011: CallWindowProcW - 0x7ffbaac8e46010: DispatchMessageW - 0x7ffbaac8e0409: QEventDispatcherWin32::processEvents - 0x7ffb47ab45e08: qt_plugin_query_metadata - 0x7ffb3f3116e07: QEventLoop::exec - 0x7ffb47a665706: QCoreApplication::exec - 0x7ffb47a697305: sofa::gui::qt::RealGUI::mainLoop - 0x7ffb48ba490c4: sofa::gui::GUIManager::MainLoop - 0x7ffb962e184c3: sofa::gui::GUIManager::MainLoop - 0x7ffb962e184c2: sofa::gui::GUIManager::MainLoop - 0x7ffb962e184c1: BaseThreadInitThunk - 0x7ffbac1070200: RtlUserThreadStart - 0x7ffbacb22630[WARNING] [SofaSimulationTree] the library has not been cleaned up (sofa::simulation::tree::cleanup() has never been called, see sofa/helper/init.h) [WARNING] [SofaSimulationGraph] the library has not been cleaned up (sofa::simulation::graph::cleanup() has never been called, see sofa/helper/init.h) [WARNING] [SofaSimulationCommon] the library has not been cleaned up (sofa::simulation::common::cleanup() has never been called, see sofa/helper/init.h) [WARNING] [SofaSimulationCore] the library has not been cleaned up (sofa::simulation::core::cleanup() has never been called, see sofa/helper/init.h) [WARNING] [SofaCore] the library has not been cleaned up (sofa::core::cleanup() has never been called, see sofa/helper/init.h)
My python dir is already in my path so i do not understand what is wrong here
16 June 2021 at 22:43 #19738Hugo
KeymasterDear @antonio-8196
Have you set all path as explained here : https://sofapython3.readthedocs.io/en/latest/menu/SofaPlugin.html#within-a-python3-interpreter ?
Then run SOFA, load SofaPython, SoftRobots, and then STLIB ?
I want also to inform you that we are currently working hard on improving the installation of SOFA/SoftRobots/STLIB and providing better step-by-step documentation. This should be ready for the next release (end of June : v21.06). Sorry for the inconvenience.
Best wishes,
Hugo
-
AuthorPosts
- You must be logged in to reply to this topic.