Title: Sofa.Gui crashes when importing into a runSofa executable (embed interpreted) · Issue #102 · sofa-framework/SofaPython3 · GitHub
Open Graph Title: Sofa.Gui crashes when importing into a runSofa executable (embed interpreted) · Issue #102 · sofa-framework/SofaPython3
X Title: Sofa.Gui crashes when importing into a runSofa executable (embed interpreted) · Issue #102 · sofa-framework/SofaPython3
Description: For some reason, this only happen when using a packaged version of SOFA (i.e. not build install by ourself). To reproduce: Download the latest SOFA v20.12 package Create this simple scene file and do not put it inside the directory from ...
Open Graph Description: For some reason, this only happen when using a packaged version of SOFA (i.e. not build install by ourself). To reproduce: Download the latest SOFA v20.12 package Create this simple scene file and ...
X Description: For some reason, this only happen when using a packaged version of SOFA (i.e. not build install by ourself). To reproduce: Download the latest SOFA v20.12 package Create this simple scene file and ...
Opengraph URL: https://github.com/sofa-framework/SofaPython3/issues/102
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Sofa.Gui crashes when importing into a runSofa executable (embed interpreted)","articleBody":"For some reason, this only happen when using a packaged version of SOFA (i.e. not `build install` by ourself).\r\n\r\nTo reproduce:\r\n1. Download the latest SOFA v20.12 package\r\n2. Create this simple scene file _and do not put it inside the directory from which runSofa will run, but use instead a different folder_:\r\n**test/test.py**\r\n```python\r\n# test/test.py\r\nimport Sofa.Gui\r\ndef createScene(root):\r\n pass\r\n```\r\n3. Run it using runSofa, for example: `runSofa -l libSofaPython3.so test/test.py`\r\n4. This happens:\r\n```\r\n[ERROR] [SofaPython3::SceneLoader] ModuleNotFoundError: No module named 'Sofa.Gui'\r\n\r\nAt:\r\n test.py(1): \u003cmodule\u003e\r\n \u003cfrozen importlib._bootstrap\u003e(219): _call_with_frames_removed\r\n \u003cfrozen importlib._bootstrap_external\u003e(728): exec_module\r\n \u003cfrozen importlib._bootstrap\u003e(677): _load_unlocked\r\n \u003cfrozen importlib._bootstrap\u003e(696): _load\r\n /usr/lib/python3.7/imp.py(171): load_source\r\n /usr/lib/python3.7/imp.py(234): load_module\r\n \u003cstring\u003e(3): \u003cmodule\u003e\r\n```\r\n\r\n\r\nMoreover, everything is fine (i.e. the bug isn't present) if runSofa is ran from the same directory as the scene file. For example, running `runSofa -l libSofaPython3.so test.py` instead of `runSofa -l libSofaPython3.so test/test.py`","author":{"url":"https://github.com/jnbrunet","@type":"Person","name":"jnbrunet"},"datePublished":"2021-01-22T15:20:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/102/SofaPython3/issues/102"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:21f32b4f-f43c-efd1-5480-12929761c037 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CEE0:37C9EA:512042:680FF5:697EED02 |
| html-safe-nonce | cfd1635bc26e9dfece32ef6a97d3947fe2948fd16d239012dcb7150399792872 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRUUwOjM3QzlFQTo1MTIwNDI6NjgwRkY1OjY5N0VFRDAyIiwidmlzaXRvcl9pZCI6IjgxMDg4Mzk0MTEyNzEwMDMzOTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 529718e795ef78decdbd176bae9b477da3acd86d65312808401d53b18b097c34 |
| hovercard-subject-tag | issue:792089034 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/sofa-framework/SofaPython3/102/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8c07a2fb634a980bb69ff44fb7f3b097d56dc3dc27ee62e6567a95bde153e762/sofa-framework/SofaPython3/issues/102 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8c07a2fb634a980bb69ff44fb7f3b097d56dc3dc27ee62e6567a95bde153e762/sofa-framework/SofaPython3/issues/102 |
| og:image:alt | For some reason, this only happen when using a packaged version of SOFA (i.e. not build install by ourself). To reproduce: Download the latest SOFA v20.12 package Create this simple scene file and ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jnbrunet |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/sofa-framework/SofaPython3 git https://github.com/sofa-framework/SofaPython3.git |
| octolytics-dimension-user_id | 11028508 |
| octolytics-dimension-user_login | sofa-framework |
| octolytics-dimension-repository_id | 260159147 |
| octolytics-dimension-repository_nwo | sofa-framework/SofaPython3 |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 260159147 |
| octolytics-dimension-repository_network_root_nwo | sofa-framework/SofaPython3 |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width