Title: Import numpy error while opening .py file · Issue #460 · sofa-framework/SofaPython3 · GitHub
Open Graph Title: Import numpy error while opening .py file · Issue #460 · sofa-framework/SofaPython3
X Title: Import numpy error while opening .py file · Issue #460 · sofa-framework/SofaPython3
Description: Hello! I am using the SOFA_v24.06.00_MacOS binaries with python3.10 I am trying to get started using the SofaPython3 plugin but I am facing some errors. I run RunSofa and I get no problem; SofaPython3 loads correctly. As a simple test, w...
Open Graph Description: Hello! I am using the SOFA_v24.06.00_MacOS binaries with python3.10 I am trying to get started using the SofaPython3 plugin but I am facing some errors. I run RunSofa and I get no problem; SofaPyth...
X Description: Hello! I am using the SOFA_v24.06.00_MacOS binaries with python3.10 I am trying to get started using the SofaPython3 plugin but I am facing some errors. I run RunSofa and I get no problem; SofaPyth...
Opengraph URL: https://github.com/sofa-framework/SofaPython3/issues/460
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Import numpy error while opening .py file","articleBody":"Hello!\r\nI am using the SOFA_v24.06.00_MacOS binaries with python3.10\r\n\r\nI am trying to get started using the SofaPython3 plugin but I am facing some errors. I run RunSofa and I get no problem; SofaPython3 loads correctly.\r\n\r\nAs a simple test, when I load into runSofa a simple python script with only \"import numpy\" I get the following error:\r\n\r\n```\r\n[DEPRECATED] [SofaPython3::SceneLoader] Unable to completely load the scene from file '/Users/digitalsurgerylab/Downloads/test.py'. \r\nPython exception: \r\n ImportError: Error importing numpy: you should not try to import numpy from\r\n its source directory; please exit the numpy source tree, and relaunch\r\n your python interpreter from there.\r\n\r\nAt:\r\n /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/numpy/__init__.py(135): \u003cmodule\u003e\r\n \u003cfrozen importlib._bootstrap\u003e(241): _call_with_frames_removed\r\n \u003cfrozen importlib._bootstrap_external\u003e(883): exec_module\r\n \u003cfrozen importlib._bootstrap\u003e(703): _load_unlocked\r\n \u003cfrozen importlib._bootstrap\u003e(1006): _find_and_load_unlocked\r\n \u003cfrozen importlib._bootstrap\u003e(1027): _find_and_load\r\n /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/scipy/__init__.py(47): \u003cmodule\u003e\r\n \u003cfrozen importlib._bootstrap\u003e(241): _call_with_frames_removed\r\n \u003cfrozen importlib._bootstrap_external\u003e(883): exec_module\r\n \u003cfrozen importlib._bootstrap\u003e(703): _load_unlocked\r\n \u003cfrozen importlib._bootstrap\u003e(1006): _find_and_load_unlocked\r\n \u003cfrozen importlib._bootstrap\u003e(1027): _find_and_load\r\n /Users/digitalsurgerylab/Downloads/test.py(12): \u003cmodule\u003e\r\n \u003cfrozen importlib._bootstrap\u003e(241): _call_with_frames_removed\r\n \u003cfrozen importlib._bootstrap_external\u003e(883): exec_module\r\n \u003cstring\u003e(6): \u003cmodule\u003e\r\n```\r\nAny help fixing this would be greatly appreciated!\r\nCheers","author":{"url":"https://github.com/fgmelo14","@type":"Person","name":"fgmelo14"},"datePublished":"2024-10-01T16:43:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/460/SofaPython3/issues/460"}
| 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:ca5f94d1-7448-41b9-5e04-ac9363c35436 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8076:82EB1:37BAB0D:4A937C4:697AFA53 |
| html-safe-nonce | bd4e23f17182a7a2282bce0fae6d13aa1074cd40a18832e5f07d128dade1d27b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDc2OjgyRUIxOjM3QkFCMEQ6NEE5MzdDNDo2OTdBRkE1MyIsInZpc2l0b3JfaWQiOiI0NzUzMzA5NjE2MTQwMTIyNzA3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 269a522f497b20a9962d4f53f959e102e35e043d58e23f906dc0219c8e88f99b |
| hovercard-subject-tag | issue:2559737214 |
| 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/460/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bd75934205e67f9813255faebd960d18096d002f684a98e5cc606efd078ff824/sofa-framework/SofaPython3/issues/460 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bd75934205e67f9813255faebd960d18096d002f684a98e5cc606efd078ff824/sofa-framework/SofaPython3/issues/460 |
| og:image:alt | Hello! I am using the SOFA_v24.06.00_MacOS binaries with python3.10 I am trying to get started using the SofaPython3 plugin but I am facing some errors. I run RunSofa and I get no problem; SofaPyth... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | fgmelo14 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7ce8ed0a54c4730aeca4e6abacfc6490365fc42e25480b86883054df3f9181c8 |
| 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 | d7bfc78137af9a4828305e52ab993fce981d7085 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width