Home › Forum › SofaPython3 › Getting Started › [SOLVED] SofaPython3 Windows 10
Tagged: plugin, SOFA_2012, SofaPython3, VS2019, Windows_10
- This topic has 11 replies, 3 voices, and was last updated 3 years, 5 months ago by Times.
-
AuthorPosts
-
5 April 2021 at 05:54 #19073TimesBlocked
Hello,
Can anyone confirm that they have installed SofaPython3 on windows 10 successfully? I have tried but keep receiving sig 22- SIGABRT error.
8 April 2021 at 22:05 #19088HugoKeymasterHey @akthetimes
Are you using the binary version of SOFA? the v20.12.02 release?
When are you getting this error exactly? when launching the runSofa exe?Best
Hugo
9 April 2021 at 05:07 #19094TimesBlockedHey @Hugo,
Thanks for the reply. No, not the binary version. I compiled sofa from source code. Sofa python2 plugin works correctly but the sofaPython3 fails. I get this error when I load the plugin from the plugin manager.Currently, I have decided to continue sofaPython2. Will I be at a great disadvantage if I choose not to upgrade to sofaPython3?
Edit: I forgot to add I’m using the latest version of sofa v20.12.02
9 April 2021 at 09:14 #19095HugoKeymasterHey @akthetimes
Alright thanks for the clarification.
What is the full error you are getting when loading the plugin from the plugin manager?Best,
Hugo
11 April 2021 at 15:23 #19131TimesBlockedHey @Hugo,
Sorry for the slow response. I had decided to move forward with the SofaPython2 plugin, I was wondering if I’d be at any major disadvantage. I think I read somewhere that the team won’t be supporting the SofaPython2 from the current release.Anyway, please find the error message below:
########## SIG 22 - SIGABRT: usually caused by an abort() or assert() ##########</ul> 44: sofa::helper::BackTrace::dump - 0x7ff934d3617043: sofa::helper::BackTrace::sig - 0x7ff934d362f042: raise - 0x7ff97ad7c8d041: abort - 0x7ff97ad7da8040: terminate - 0x7ff97ad7d1f039: terminate - 0x7ff97ad7d1f038: GetXMLElementAttribute - 0x7ff962db7cd037: UnhandledExceptionFilter - 0x7ff97a7f0f9036: memset - 0x7ff97cec3cc035: _C_specific_handler - 0x7ff97cead2e034: _chkstk - 0x7ff97cec1dd033: RtlRaiseException - 0x7ff97ce8a74032: RtlRaiseException - 0x7ff97ce8a74031: RaiseException - 0x7ff97a733ac030: CxxThrowException - 0x7ff9648463f029: sofapython3::PythonEnvironment::Init - 0x7ff943e7856028: initExternalModule - 0x7ff943e717c027: sofa::helper::system::PluginManager::loadPluginByPath - 0x7ff934dd53d026: sofa::gui::qt::SofaPluginManager::addLibrary - 0x7ff92c3a052025: QObject::qt_static_metacall - 0x7ff91679094024: QAbstractButton::clicked - 0x7ff92058ec0023: QAbstractButton::click - 0x7ff92058ea3022: QAbstractButton::mouseReleaseEvent - 0x7ff92058f81021: QWidget::event - 0x7ff9204e788020: QApplicationPrivate::notify_helper - 0x7ff9204c488019: QApplication::notify - 0x7ff9204c216018: QCoreApplication::notifyInternal2 - 0x7ff916772a1017: QApplicationPrivate::sendMouseEvent - 0x7ff9204c57d016: QSizePolicy::QSizePolicy - 0x7ff92050d6d015: QSizePolicy::QSizePolicy - 0x7ff92050d6d014: QApplicationPrivate::notify_helper - 0x7ff9204c488013: QApplication::notify - 0x7ff9204c216012: QCoreApplication::notifyInternal2 - 0x7ff916772a1011: QGuiApplicationPrivate::processMouseEvent - 0x7ff91974298010: QWindowSystemInterface::sendWindowSystemEvents - 0x7ff91972ec209: QEventDispatcherWin32::processEvents - 0x7ff9167bb9f08: qt_plugin_query_metadata - 0x7ff908b40e407: QEventLoop::exec - 0x7ff91676ed706: QCoreApplication::exec - 0x7ff9167719405: sofa::gui::qt::RealGUI::mainLoop - 0x7ff92c3819104: sofa::gui::GUIManager::MainLoop - 0x7ff95ad021403: sofa::gui::GUIManager::MainLoop - 0x7ff95ad021402: sofa::gui::GUIManager::MainLoop - 0x7ff95ad021401: BaseThreadInitThunk - 0x7ff97cc07c100: RtlUserThreadStart - 0x7ff97ce8d700[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)
Thanks π
12 April 2021 at 10:04 #19140HugoKeymasterHey @akthetimes
I read somewhere that the team wonβt be supporting the SofaPython2 from the current release
Yes this is correct.
Thank you for posting your error. I don’t see from this where does the problem come from. Could you please tell us:
– the version of the Python installed on your Windows
– do you confirm that you downloaded the binary version v20.12.02 (from the SOFA website : download page) ?Have you checked the required dependencies here1?
Best
Hugo
18 April 2021 at 09:28 #19204TimesBlockedHey @Hugo,
I finally resolved it. The problem was I wasn’t copying the built python3 folder to the bin directory. thanks for the help!Since I have your attention currently, I wanted to take the opportunity to ask about how I can achieve a kind of needle insertion in a tissue. I believe I could break the springs but I don’t know how to implement this. Could you help give an idea of how I could achieve this?
Thanks
20 April 2021 at 08:51 #19214HugoKeymasterHey @akthetimes
Shall we close this topic and open a new one dedicated on needle insertion (it is a topic of interest of other devs on the forum).
BestHugo
20 April 2021 at 09:14 #1921525 May 2021 at 09:27 #19539mcpaluBlockedHi @akTheTimes,
did you successful install sofapython3 on windows? I’m having some troubles. I always got the error:Fatal Python error: initfsencoding: unable to load the file system codec
ModuleNotFoundError: No module named ‘encodings’It seems like the python version sofa is trying to open is not in the variable’s system. I made the compilation and build twice to make sure the python interpreter path was the right one. I don’t understand what I’m doing wrong.
Any help would be appreciated!Thanks!
Maria Chiara25 May 2021 at 12:51 #19545mcpaluBlockedFYI: I found my mistake. I didn’t have the system variable PYTHONHOME set to the python dir (in my case C:\Users\me\Miniconda3). Even if this was in the “path” system variable, it wasn’t enough π
Bye,
Maria Chiara25 May 2021 at 18:24 #19572TimesBlockedHi @mcpalu,
Glad it’s resolved now -
AuthorPosts
- You must be logged in to reply to this topic.