Title: Packaging Problem · Issue #3808 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Packaging Problem · Issue #3808 · IfcOpenShell/IfcOpenShell
X Title: Packaging Problem · Issue #3808 · IfcOpenShell/IfcOpenShell
Description: I need to package the ifcopenshell python library with pyinstaller. Packaging works so far. Whe I try to run the .exe File i get the following error: Traceback (most recent call last): File "som_gui\__main__.py", line 7, in
Open Graph Description: I need to package the ifcopenshell python library with pyinstaller. Packaging works so far. Whe I try to run the .exe File i get the following error: Traceback (most recent call last): File "som_gu...
X Description: I need to package the ifcopenshell python library with pyinstaller. Packaging works so far. Whe I try to run the .exe File i get the following error: Traceback (most recent call last): File "s...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/3808
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Packaging Problem","articleBody":"I need to package the ifcopenshell python library with pyinstaller.\r\nPackaging works so far.\r\nWhe I try to run the .exe File i get the following error:\r\n```\r\nTraceback (most recent call last):\r\n File \"som_gui\\__main__.py\", line 7, in \u003cmodule>\r\n File \"\u003cfrozen importlib._bootstrap>\", line 1178, in _find_and_load\r\n File \"\u003cfrozen importlib._bootstrap>\", line 1149, in _find_and_load_unlocked\r\n File \"\u003cfrozen importlib._bootstrap>\", line 690, in _load_unlocked\r\n File \"PyInstaller\\loader\\pyimod02_importers.py\", line 391, in exec_module\r\n File \"ifcopenshell\\express\\__init__.py\", line 29, in \u003cmodule>\r\nFileNotFoundError: [Errno 2] No such file or directory: 'path\\\\to\\\\.exe\\\\_internal\\\\ifcopenshell\\\\express\\\\express_parser.py'\r\n```\r\n\r\nif i understand correctly, these lines in [\\__init__.py](https://github.com/IfcOpenShell/IfcOpenShell/blob/v0.7.0/src/ifcopenshell-python/ifcopenshell/express/__init__.py) are the problem because pyinstaller won't catch the absolute import.:\r\n\r\n```python\r\nd = os.path.abspath(os.path.dirname(__file__))\r\nsys.path.append(d)\r\n```","author":{"url":"https://github.com/c-mellueh","@type":"Person","name":"c-mellueh"},"datePublished":"2023-09-26T08:11:24Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/3808"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:0cc733f7-7f2d-bd22-9258-e78426389981 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BCCA:2D2BB7:513048:6BD4D4:6B04BFFC |
| html-safe-nonce | 934bb1e3941aa4c99866cf8b6fc88500197864bc054166f6435555242e6cc78d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQ0NBOjJEMkJCNzo1MTMwNDg6NkJENEQ0OjZCMDRCRkZDIiwidmlzaXRvcl9pZCI6IjM4MDIyODgyNTc3ODY3NTcxMTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1630235dfc7186b0d2d4ec8c1573f2a6647d0a684b7a8a467b93b11bc127979f |
| hovercard-subject-tag | issue:1912950268 |
| 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/IfcOpenShell/IfcOpenShell/3808/issue_layout |
| twitter:image | https://opengraph.githubassets.com/077effdefd971750bd0b0db159bdd178a7c6a5069ecb8ef6b0ea9eaeabe6213a/IfcOpenShell/IfcOpenShell/issues/3808 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/077effdefd971750bd0b0db159bdd178a7c6a5069ecb8ef6b0ea9eaeabe6213a/IfcOpenShell/IfcOpenShell/issues/3808 |
| og:image:alt | I need to package the ifcopenshell python library with pyinstaller. Packaging works so far. Whe I try to run the .exe File i get the following error: Traceback (most recent call last): File "som_gu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | c-mellueh |
| hostname | github.com |
| expected-hostname | github.com |
| None | 85dd75377eb77313206b8fc108bcee6a3a029286d94bf32bf9b4426e4d92e0c4 |
| turbo-cache-control | no-preview |
| go-import | github.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git |
| octolytics-dimension-user_id | 13692563 |
| octolytics-dimension-user_login | IfcOpenShell |
| octolytics-dimension-repository_id | 40473201 |
| octolytics-dimension-repository_nwo | IfcOpenShell/IfcOpenShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 40473201 |
| octolytics-dimension-repository_network_root_nwo | IfcOpenShell/IfcOpenShell |
| 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 | 0d64fa748a2bab9a5b587a967ac4da1cfa8da6dd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width