René's URL Explorer Experiment


Title: TypeError: expected CFunctionType instead of int · Issue #9 · naksyn/PythonMemoryModule · GitHub

Open Graph Title: TypeError: expected CFunctionType instead of int · Issue #9 · naksyn/PythonMemoryModule

X Title: TypeError: expected CFunctionType instead of int · Issue #9 · naksyn/PythonMemoryModule

Description: while trying to load onnxruntime_pybind11_state.pyd in memory, it gives me error: File "test.py", line XXX, in build_import_table funcref.contents = GetProcAddress(hmod, cast(importordinal, LPCSTR)) ^^^^^^^^^^^^^^^^ TypeError: expected C...

Open Graph Description: while trying to load onnxruntime_pybind11_state.pyd in memory, it gives me error: File "test.py", line XXX, in build_import_table funcref.contents = GetProcAddress(hmod, cast(importordinal, LPCSTR)...

X Description: while trying to load onnxruntime_pybind11_state.pyd in memory, it gives me error: File "test.py", line XXX, in build_import_table funcref.contents = GetProcAddress(hmod, cast(importordina...

Opengraph URL: https://github.com/naksyn/PythonMemoryModule/issues/9

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TypeError: expected CFunctionType instead of int","articleBody":"while trying to load onnxruntime_pybind11_state.pyd in memory, it gives me error:\r\n```\r\nFile \"test.py\", line XXX, in build_import_table\r\n    funcref.contents = GetProcAddress(hmod, cast(importordinal, LPCSTR))\r\n    ^^^^^^^^^^^^^^^^\r\nTypeError: expected CFunctionType instead of int\r\n# I just copy \u0026 paste the content of __init__.py to test.py\r\n```\r\n\r\nSimple test code:\r\n```\r\nif __name__ == '__main__':\r\n    import sys\r\n    import importlib.util\r\n    import importlib.metadata\r\n\r\n    content = open('d:\\\\Python312\\\\Lib\\\\site-packages\\\\onnxruntime\\\\capi\\\\onnxruntime_pybind11_state.pyd', 'rb').read()\r\n    dll = MemoryModule(data=content, debug=True)\r\n    print('test for fun !')\r\n    sleep(10)\r\n    exit()\r\n```\r\n\r\ninstall onnxruntime module: (python 3.12.7)\r\n```\r\npip install onnxruntime-directml==1.19.2\r\n```\r\n\r\nBy the way, if test with `onnxruntime==1.19.2`, works fine\r\nFor '`onnxruntime-gpu==1.19.2`, it will just exit without printing\r\n\r\nFYI: python 3.11 version of onnxruntime-directml will have the same error","author":{"url":"https://github.com/JiaPai12138","@type":"Person","name":"JiaPai12138"},"datePublished":"2024-10-21T01:22:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/9/PythonMemoryModule/issues/9"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d81a9611-d319-966a-bca8-062ca14ec1c3
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEBCA:235F04:32F805:4425D5:698F91C7
html-safe-nonce2319c5f3ccdafe6581d0b32926621c1d1f5189be318a3e0564f55066de76b160
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQkNBOjIzNUYwNDozMkY4MDU6NDQyNUQ1OjY5OEY5MUM3IiwidmlzaXRvcl9pZCI6IjQyNzE3NDgyMDIwNTc2NjcwMTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac671bc18cd9e3e93db5a1e278d2765f04c7a922b1fce070ff6f71d7da31d09651
hovercard-subject-tagissue:2601058131
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/naksyn/PythonMemoryModule/9/issue_layout
twitter:imagehttps://opengraph.githubassets.com/8a40428c68799994f619b6d6b0d9344cdadb7cfbdba82c44b65d65e48b49324e/naksyn/PythonMemoryModule/issues/9
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8a40428c68799994f619b6d6b0d9344cdadb7cfbdba82c44b65d65e48b49324e/naksyn/PythonMemoryModule/issues/9
og:image:altwhile trying to load onnxruntime_pybind11_state.pyd in memory, it gives me error: File "test.py", line XXX, in build_import_table funcref.contents = GetProcAddress(hmod, cast(importordinal, LPCSTR)...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameJiaPai12138
hostnamegithub.com
expected-hostnamegithub.com
None202633fd61f7eedb36bb7ccb403f2d581c4331c905abe8ed7a7469c697b51c27
turbo-cache-controlno-preview
go-importgithub.com/naksyn/PythonMemoryModule git https://github.com/naksyn/PythonMemoryModule.git
octolytics-dimension-user_id59816245
octolytics-dimension-user_loginnaksyn
octolytics-dimension-repository_id585501613
octolytics-dimension-repository_nwonaksyn/PythonMemoryModule
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id585501613
octolytics-dimension-repository_network_root_nwonaksyn/PythonMemoryModule
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
releaseaa35d2eca6295c64e24dceaa06fde213ad1aed69
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/naksyn/PythonMemoryModule/issues/9#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnaksyn%2FPythonMemoryModule%2Fissues%2F9
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnaksyn%2FPythonMemoryModule%2Fissues%2F9
Sign up https://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=naksyn%2FPythonMemoryModule
Reloadhttps://github.com/naksyn/PythonMemoryModule/issues/9
Reloadhttps://github.com/naksyn/PythonMemoryModule/issues/9
Reloadhttps://github.com/naksyn/PythonMemoryModule/issues/9
naksyn https://github.com/naksyn
PythonMemoryModulehttps://github.com/naksyn/PythonMemoryModule
Notifications https://github.com/login?return_to=%2Fnaksyn%2FPythonMemoryModule
Fork 51 https://github.com/login?return_to=%2Fnaksyn%2FPythonMemoryModule
Star 332 https://github.com/login?return_to=%2Fnaksyn%2FPythonMemoryModule
Code https://github.com/naksyn/PythonMemoryModule
Issues 3 https://github.com/naksyn/PythonMemoryModule/issues
Pull requests 1 https://github.com/naksyn/PythonMemoryModule/pulls
Actions https://github.com/naksyn/PythonMemoryModule/actions
Projects 0 https://github.com/naksyn/PythonMemoryModule/projects
Security 0 https://github.com/naksyn/PythonMemoryModule/security
Insights https://github.com/naksyn/PythonMemoryModule/pulse
Code https://github.com/naksyn/PythonMemoryModule
Issues https://github.com/naksyn/PythonMemoryModule/issues
Pull requests https://github.com/naksyn/PythonMemoryModule/pulls
Actions https://github.com/naksyn/PythonMemoryModule/actions
Projects https://github.com/naksyn/PythonMemoryModule/projects
Security https://github.com/naksyn/PythonMemoryModule/security
Insights https://github.com/naksyn/PythonMemoryModule/pulse
New issuehttps://github.com/login?return_to=https://github.com/naksyn/PythonMemoryModule/issues/9
New issuehttps://github.com/login?return_to=https://github.com/naksyn/PythonMemoryModule/issues/9
TypeError: expected CFunctionType instead of inthttps://github.com/naksyn/PythonMemoryModule/issues/9#top
https://github.com/JiaPai12138
https://github.com/JiaPai12138
JiaPai12138https://github.com/JiaPai12138
on Oct 21, 2024https://github.com/naksyn/PythonMemoryModule/issues/9#issue-2601058131
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

Viewport: width=device-width


URLs of crawlers that visited me.