Title: Docker image won't run · Issue #6488 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Docker image won't run · Issue #6488 · IfcOpenShell/IfcOpenShell
X Title: Docker image won't run · Issue #6488 · IfcOpenShell/IfcOpenShell
Description: Error Description and Steps to Reproduce I'm trying to create a Docker image with IfcOpenShell and IfcConvert installed, but the official image won't run the command in the docs. It seems that this installation comes with Python 3.8 (def...
Open Graph Description: Error Description and Steps to Reproduce I'm trying to create a Docker image with IfcOpenShell and IfcConvert installed, but the official image won't run the command in the docs. It seems that this...
X Description: Error Description and Steps to Reproduce I'm trying to create a Docker image with IfcOpenShell and IfcConvert installed, but the official image won't run the command in the docs. It seems t...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/6488
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Docker image won't run","articleBody":"**Error Description and Steps to Reproduce**\nI'm trying to create a Docker image with IfcOpenShell and IfcConvert installed, but the official image won't run the command in the docs. It seems that this installation comes with Python 3.8 (default installation of Ubuntu 20.04) while the executables are compiled for a different Python version.\n\nI had to add the platform flag to make it runnable on my Macbook Pro M3, but I've also tried compiling the Dockerfile from the repository and had no luck with that either. I'm guessing that this doesn't affect the outcome (the problem being the absence of Python 3.10), but I'm no expert with Docker so I just wanted to highlight it.\n\n1. Run `docker run --platform=linux/amd64 -it aecgeeks/ifcopenshell python3 -c 'import ifcopenshell; print(ifcopenshell.version)'`\n\n**Attachments**\n```bash\ndocker run --platform=linux/amd64 -it aecgeeks/ifcopenshell python3 -c 'import ifcopenshell; print(ifcopenshell.version)'\nTraceback (most recent call last):\n File \"/usr/lib/python3/dist-packages/ifcopenshell/__init__.py\", line 81, in \u003cmodule>\n from . import ifcopenshell_wrapper\n File \"/usr/lib/python3/dist-packages/ifcopenshell/ifcopenshell_wrapper.py\", line 13, in \u003cmodule>\n from . import _ifcopenshell_wrapper\nImportError: libpython3.10.so.1.0: cannot open shared object file: No such file or directory\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"\u003cstring>\", line 1, in \u003cmodule>\n File \"/usr/lib/python3/dist-packages/ifcopenshell/__init__.py\", line 83, in \u003cmodule>\n raise ImportError(\"IfcOpenShell not built for '%s'\" % python_distribution)\nImportError: IfcOpenShell not built for 'linux/64bit/python3.8'\n```\n\nI have also added tried to create my own images as follows:\n\nThis results in the same error as described above:\n```docker\nFROM aecgeeks/ifcopenshell\n\n# Setup environment\nUSER root\nRUN apt update && apt install -y python3-pip\nRUN pip3 install --upgrade pip\nRUN pip3 install flask flask-cors\n\nCMD [\"python3\", \"--version\"]\n```\n\nI then tried to create a clean install and use pip install instead of relying on the image:\n\nThis one complains it can't install ifcopenshell\n```docker\nFROM ubuntu:22.04\n\n# Setup environment\nUSER root\nRUN apt update && apt install -y python3-pip\nRUN pip3 install --upgrade pip\nRUN pip3 install ifcopenshell flask flask-cors\n\nCMD [\"python3\", \"--version\"]\n```\n\nBut this one can't find the ifcopenshell package when I try to build it..\n\n## UPDATE:\nAfter also adding the platform flag while building the last command, it builds successfully and I can access ifcopenshell from Python.\n\nHowever, the official image still does not work for me.","author":{"url":"https://github.com/fvanbelleghem","@type":"Person","name":"fvanbelleghem"},"datePublished":"2025-04-02T14:26:54Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/6488"}
| 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:df4b2246-94f3-093a-e88b-c82b356b8206 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AE16:99811:79AD7:A765E:6B04AB0B |
| html-safe-nonce | 9be5775461f1bd7d9396eb27160e0a680d3cc82149dd10f2c852d04e7fd273e7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTE2Ojk5ODExOjc5QUQ3OkE3NjVFOjZCMDRBQjBCIiwidmlzaXRvcl9pZCI6IjgzMzE4MjAwMTI5MjcyMzI3NzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a57d37c95a6acffeff147621c4446499e397e3be37ff02bc9f3a5bf3b373f2c1 |
| hovercard-subject-tag | issue:2966566033 |
| 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/6488/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ba5c2ad75a323d7afba60860f59a4c2148518b3e006def7f1c4415a0c45c8513/IfcOpenShell/IfcOpenShell/issues/6488 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ba5c2ad75a323d7afba60860f59a4c2148518b3e006def7f1c4415a0c45c8513/IfcOpenShell/IfcOpenShell/issues/6488 |
| og:image:alt | Error Description and Steps to Reproduce I'm trying to create a Docker image with IfcOpenShell and IfcConvert installed, but the official image won't run the command in the docs. It seems that this... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | fvanbelleghem |
| hostname | github.com |
| expected-hostname | github.com |
| None | f1d110ea058a0915c1d8aa3fc2069fa15801e128f591e5762525abe77490ecb1 |
| 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 | ffa22a65e4c46d376940fe34b05e6a7e9c7fdb9b |
| 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