René's URL Explorer Experiment


Title: identify build platform and python version from _ifcopenshell_wrapper.pyd/.so · Issue #4686 · IfcOpenShell/IfcOpenShell · GitHub

Open Graph Title: identify build platform and python version from _ifcopenshell_wrapper.pyd/.so · Issue #4686 · IfcOpenShell/IfcOpenShell

X Title: identify build platform and python version from _ifcopenshell_wrapper.pyd/.so · Issue #4686 · IfcOpenShell/IfcOpenShell

Description: Any ideas if it's possible to identify build's python version and platform from _ifcopenshell_wrapper.pyd on Windows or _ifcopenshell_wrapper.so on Mac/Linux)? The idea is to get more descriptive error messages instead of ImportError: If...

Open Graph Description: Any ideas if it's possible to identify build's python version and platform from _ifcopenshell_wrapper.pyd on Windows or _ifcopenshell_wrapper.so on Mac/Linux)? The idea is to get more descriptive e...

X Description: Any ideas if it's possible to identify build's python version and platform from _ifcopenshell_wrapper.pyd on Windows or _ifcopenshell_wrapper.so on Mac/Linux)? The idea is to get more descr...

Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/4686

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"identify build platform and python version from _ifcopenshell_wrapper.pyd/.so","articleBody":"Any ideas if it's possible to identify build's python version and platform from `_ifcopenshell_wrapper.pyd` on Windows or `_ifcopenshell_wrapper.so` on Mac/Linux)?\r\n\r\nThe idea is to get more descriptive error messages instead of `ImportError: IfcOpenShell not built for 'windows\\64bit\\python3.11'` to guide non-advanced BlenderBIM users who can e.g. download macos instead of macom1 builds or try to use wrong python version.\r\n\r\nThe error importing wrong python version module doesn't have that information:\r\n\r\n```python\r\nimport importlib.util\r\nimport sys\r\n\r\nspec = importlib.util.spec_from_file_location(\"_ifcopenshell_wrapper\", r\"py310\\_ifcopenshell_wrapper.pyd\")\r\nfoo = importlib.util.module_from_spec(spec)\r\nsys.modules[\"module.name\"] = foo\r\n# ImportError: DLL load failed while importing _ifcopenshell_wrapper: The specified module could not be found.\r\nspec.loader.exec_module(foo)\r\n```\r\n\r\nOr maybe just add this information to `ifcopenshell/__init__.py` (or save it to a separate file) during build?\r\n\r\nI was thinking that maybe we could just add it to `bl_info` for BlenderBIM during the build but it seems that it should be stored somewhere with ifcopenshell.\r\n\r\nhttps://github.com/IfcOpenShell/IfcOpenShell/blob/8662e20c58a824f1ba6d8a6d7928b4284e41766f/src/blenderbim/blenderbim/__init__.py#L34","author":{"url":"https://github.com/Andrej730","@type":"Person","name":"Andrej730"},"datePublished":"2024-05-17T13:11:35Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/4686"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:48f1ec2d-923a-51cf-53b1-f39e144f7491
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB164:E63B3:693F3:9136C:6B04AEA2
html-safe-nonced166435194af57950d252b4d3a64248a89549e259969166d8b977180c9ef666d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTY0OkU2M0IzOjY5M0YzOjkxMzZDOjZCMDRBRUEyIiwidmlzaXRvcl9pZCI6IjQ0ODMzODc2OTA4MjI0MTYyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacbb9a1299d6719db4e47358f0d23b27b57d9391e9dde01f3f83c8438e369467f7
hovercard-subject-tagissue:2302718949
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IfcOpenShell/IfcOpenShell/4686/issue_layout
twitter:imagehttps://opengraph.githubassets.com/02988bb67d3298e27c4e1bb65e13ee50ec006c1a9a864128ceb85ffb0c0d4160/IfcOpenShell/IfcOpenShell/issues/4686
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/02988bb67d3298e27c4e1bb65e13ee50ec006c1a9a864128ceb85ffb0c0d4160/IfcOpenShell/IfcOpenShell/issues/4686
og:image:altAny ideas if it's possible to identify build's python version and platform from _ifcopenshell_wrapper.pyd on Windows or _ifcopenshell_wrapper.so on Mac/Linux)? The idea is to get more descriptive e...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameAndrej730
hostnamegithub.com
expected-hostnamegithub.com
Nonef1d110ea058a0915c1d8aa3fc2069fa15801e128f591e5762525abe77490ecb1
turbo-cache-controlno-preview
go-importgithub.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git
octolytics-dimension-user_id13692563
octolytics-dimension-user_loginIfcOpenShell
octolytics-dimension-repository_id40473201
octolytics-dimension-repository_nwoIfcOpenShell/IfcOpenShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id40473201
octolytics-dimension-repository_network_root_nwoIfcOpenShell/IfcOpenShell
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseffa22a65e4c46d376940fe34b05e6a7e9c7fdb9b
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/IfcOpenShell/IfcOpenShell/issues/4686#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2F4686
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2F4686
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=IfcOpenShell%2FIfcOpenShell
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/4686
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/4686
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/4686
IfcOpenShellhttps://github.com/IfcOpenShell
IfcOpenShellhttps://github.com/IfcOpenShell/IfcOpenShell
Codehttps://github.com/IfcOpenShell/IfcOpenShell
Issues1.2k (1.2k)https://github.com/IfcOpenShell/IfcOpenShell/issues
Pull requests940 (940)https://github.com/IfcOpenShell/IfcOpenShell/pulls
Discussionshttps://github.com/IfcOpenShell/IfcOpenShell/discussions
Actionshttps://github.com/IfcOpenShell/IfcOpenShell/actions
Projectshttps://github.com/IfcOpenShell/IfcOpenShell/projects
Wikihttps://github.com/IfcOpenShell/IfcOpenShell/wiki
Security and qualityhttps://github.com/IfcOpenShell/IfcOpenShell/security
Insightshttps://github.com/IfcOpenShell/IfcOpenShell/insights
https://github.com/IfcOpenShell/IfcOpenShell
New issuehttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/4686
New issuehttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/4686
identify build platform and python version from _ifcopenshell_wrapper.pyd/.sohttps://github.com/IfcOpenShell/IfcOpenShell/issues/4686#top
Bonsaihttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22Bonsai%22
IfcOpenShell-Pythonhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22IfcOpenShell-Python%22
https://github.com/Andrej730
Andrej730https://github.com/Andrej730
on May 17, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/4686#issue-2302718949
IfcOpenShell/src/blenderbim/blenderbim/__init__.pyhttps://github.com/IfcOpenShell/IfcOpenShell/blob/8662e20c58a824f1ba6d8a6d7928b4284e41766f/src/blenderbim/blenderbim/__init__.py#L34
8662e20https://github.com/IfcOpenShell/IfcOpenShell/commit/8662e20c58a824f1ba6d8a6d7928b4284e41766f
Andrej730https://github.com/Andrej730
Bonsaihttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22Bonsai%22
IfcOpenShell-Pythonhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22IfcOpenShell-Python%22
on May 17, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/4686#event-12848234128
https://github.com/aothms
aothmshttps://github.com/aothms
on May 17, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/4686#issuecomment-2117693008
https://github.com/Moult
Moulthttps://github.com/Moult
on May 19, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/4686#issuecomment-2119244058
Moulthttps://github.com/Moult
completedhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
7bf8c0bhttps://github.com/IfcOpenShell/IfcOpenShell/commit/7bf8c0bbfb022ba4e38a456216a648dfd41be98b
on May 20, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/4686#event-12861627971
aothmshttps://github.com/aothms
on May 20, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/4686#event-12862702235
https://github.com/aothms
aothmshttps://github.com/aothms
on May 20, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/4686#issuecomment-2119908833
https://github.com/Moult
Moulthttps://github.com/Moult
on May 20, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/4686#issuecomment-2119939652
…https://github.com/IfcOpenShell/IfcOpenShell/issues/4686
#4686 (comment)https://github.com/IfcOpenShell/IfcOpenShell/issues/4686#issuecomment-2119908833
https://github.com/notifications/unsubscribe-auth/AAAVR3SPQDVBEG7JOSXV6GDZDGVXHAVCNFSM6AAAAABH4D5Z22VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJZHEYDQOBTGMhttps://github.com/notifications/unsubscribe-auth/AAAVR3SPQDVBEG7JOSXV6GDZDGVXHAVCNFSM6AAAAABH4D5Z22VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJZHEYDQOBTGM
https://github.com/Andrej730
Andrej730https://github.com/Andrej730
on May 20, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/4686#issuecomment-2119948041
https://github.com/aothms
aothmshttps://github.com/aothms
on May 20, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/4686#issuecomment-2120226703
https://github.com/Andrej730
Andrej730https://github.com/Andrej730
on May 20, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/4686#issuecomment-2120293241
https://github.com/wassimj/TopologicSverchokhttps://github.com/wassimj/TopologicSverchok
https://private-user-images.githubusercontent.com/9417531/332052720-38ef3c95-0554-4cfd-b8ee-bb7551e0b4a9.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTU0NjkyNjIsIm5iZiI6MTc5NTQ2ODk2MiwicGF0aCI6Ii85NDE3NTMxLzMzMjA1MjcyMC0zOGVmM2M5NS0wNTU0LTRjZmQtYjhlZS1iYjc1NTFlMGI0YTkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MTEyMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjExMjNUMjEyMjQyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ODUzZGNjNWQwZmFkOTZiNDVhMTA2M2FmZDhlYWM4YTAxYWI1M2IyZDQwMzg2YjIzYmZkMzI4MzdlMjVlNjI5ZSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.XLWpeQB_KjhO9mDYRFGMpcNMNM2JJkddGOG-dvUSInw
https://github.com/wassimj/TopologicSverchok/blob/d410ec22eb18e111b65d733682bbd524fcebebe8/__init__.py#L38-L48https://github.com/wassimj/TopologicSverchok/blob/d410ec22eb18e111b65d733682bbd524fcebebe8/__init__.py#L38-L48
https://github.com/brunopostle
brunopostlehttps://github.com/brunopostle
on May 20, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/4686#issuecomment-2120384602
https://github.com/Andrej730
Andrej730https://github.com/Andrej730
on May 20, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/4686#issuecomment-2120918275
https://github.com/python/cpython/blob/19c11f244ebef492a5b20cd85a3b2e213e85388d/Python/dynload_win.c#L12-L16https://github.com/python/cpython/blob/19c11f244ebef492a5b20cd85a3b2e213e85388d/Python/dynload_win.c#L12-L16
https://github.com/python/cpython/blob/19c11f244ebef492a5b20cd85a3b2e213e85388d/Include/internal/pycore_importdl.h#L119-L124https://github.com/python/cpython/blob/19c11f244ebef492a5b20cd85a3b2e213e85388d/Include/internal/pycore_importdl.h#L119-L124
https://github.com/python/cpython/blob/19c11f244ebef492a5b20cd85a3b2e213e85388d/Python/dynload_shlib.c#L37-L49https://github.com/python/cpython/blob/19c11f244ebef492a5b20cd85a3b2e213e85388d/Python/dynload_shlib.c#L37-L49
https://github.com/python/cpython/blob/19c11f244ebef492a5b20cd85a3b2e213e85388d/configure#L24496https://github.com/python/cpython/blob/19c11f244ebef492a5b20cd85a3b2e213e85388d/configure#L24496
https://github.com/aothms
aothmshttps://github.com/aothms
on May 20, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/4686#issuecomment-2121079581
@Andrej730https://github.com/Andrej730
https://github.com/aothms
aothmshttps://github.com/aothms
on May 22, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/4686#issuecomment-2124538269
aothmshttps://github.com/aothms
completedhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on May 22, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/4686#event-12892790833
https://github.com/Andrej730
Andrej730https://github.com/Andrej730
on May 22, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/4686#issuecomment-2124567484
https://github.com/Andrej730
Andrej730https://github.com/Andrej730
on Jul 4, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/4686#issuecomment-2208229948
@aothmshttps://github.com/aothms
https://github.com/aothms
aothmshttps://github.com/aothms
on Jul 4, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/4686#issuecomment-2208273829
https://github.com/IfcOpenShell/IfcOpenShell/pull/4637/files#diff-7579525f88cbc7dd3d2767a2aba286f9f789d0dc9dacac84e1df441c9c488f07R75https://github.com/IfcOpenShell/IfcOpenShell/pull/4637/files#diff-7579525f88cbc7dd3d2767a2aba286f9f789d0dc9dacac84e1df441c9c488f07R75
Andrej730https://github.com/Andrej730
on Jul 5, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/4686#event-13402171232
Suffixes for compiled .pyd/.so based on the platform #4686https://github.com/IfcOpenShell/IfcOpenShell/commit/ef39acfb055d57010a6729a9cef1255161799fae
#4686https://github.com/IfcOpenShell/IfcOpenShell/issues/4686
ef39acfhttps://github.com/IfcOpenShell/IfcOpenShell/commit/ef39acfb055d57010a6729a9cef1255161799fae
Andrej730https://github.com/Andrej730
on Apr 1, 2025https://github.com/IfcOpenShell/IfcOpenShell/issues/4686#event-17076443588
gitignore compiled ifcopenshell_wrapper files on mac/linux #4686https://github.com/IfcOpenShell/IfcOpenShell/commit/614b71e0c68d226ca066d6954ef937c5ccff0907
#4686https://github.com/IfcOpenShell/IfcOpenShell/issues/4686
614b71ehttps://github.com/IfcOpenShell/IfcOpenShell/commit/614b71e0c68d226ca066d6954ef937c5ccff0907
Sign up for freehttps://github.com/signup?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/4686
Sign in to commenthttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/4686
Bonsaihttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22Bonsai%22
IfcOpenShell-Pythonhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22IfcOpenShell-Python%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.