René's URL Explorer Experiment


Title: DllNotFoundException:Could not load python311.dll · Issue #2502 · pythonnet/pythonnet · GitHub

Open Graph Title: DllNotFoundException:Could not load python311.dll · Issue #2502 · pythonnet/pythonnet

X Title: DllNotFoundException:Could not load python311.dll · Issue #2502 · pythonnet/pythonnet

Description: Environment Pythonnet version: 3.03 Python version: 3.11 Operating System: Windows .NET Runtime:net8.0 Details Describe what you were trying to get done. I am using pythonnet to write a C# project, but I encountered a problem with the Ch...

Open Graph Description: Environment Pythonnet version: 3.03 Python version: 3.11 Operating System: Windows .NET Runtime:net8.0 Details Describe what you were trying to get done. I am using pythonnet to write a C# project,...

X Description: Environment Pythonnet version: 3.03 Python version: 3.11 Operating System: Windows .NET Runtime:net8.0 Details Describe what you were trying to get done. I am using pythonnet to write a C# project,...

Opengraph URL: https://github.com/pythonnet/pythonnet/issues/2502

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"DllNotFoundException:Could not load python311.dll","articleBody":"### Environment\r\n\r\n-   Pythonnet version: 3.03\r\n-   Python version: 3.11\r\n-   Operating System: Windows\r\n-   .NET Runtime:net8.0\r\n\r\n### Details\r\n\r\n-   Describe what you were trying to get done.\r\n\r\n    I am using pythonnet to write a C# project, but I encountered a problem with the Chinese path.When \r\n    PythonEngine.Initialize(),Rethrow as DllNotFoundException: Could not load D:/Test中文/v2647_Debug/StreamingAssets/python-3.11.3- \r\n    embed-amd64/python311.dll.If it is a non-Chinese path, everything works fine.\r\n\r\n-   What commands did you run to trigger this issue? If you can provide a\r\n```python\r\n  var pythonHome= $\"{Application.streamingAssetsPath}/{PythonFolder}\";\r\n  var pythonPath = string.Join(\";\",\r\n      $\"{pythonHome}/Lib/site-packages\",\r\n      $\"{pythonHome}/{PythonZip}\",\r\n      $\"{pythonHome}\"\r\n  );\r\n  var scripts = $\"{pythonHome}/Scripts\";\r\n  var path = Environment.GetEnvironmentVariable(\"PATH\")?.TrimEnd(';');\r\n  path = string.IsNullOrEmpty(path) ? $\"{pythonHome};{scripts}\" : $\"{pythonHome};{scripts};{path}\";\r\n  Environment.SetEnvironmentVariable(\"PATH\", path, EnvironmentVariableTarget.Process);\r\n  Environment.SetEnvironmentVariable(\"DYLD_LIBRARY_PATH\", $\"{pythonHome}/Lib\", EnvironmentVariableTarget.Process);\r\n  Environment.SetEnvironmentVariable(\"PYTHONNET_PYDLL\", $\"{pythonHome}/{PythonDll}\", EnvironmentVariableTarget.Process);\r\n  PythonEngine.PythonHome = pythonHome;\r\n  PythonEngine.PythonPath = pythonPath;\r\n  Runtime.PythonDLL =  $\"{pythonHome}/{PythonDll}\";\r\n  PythonEngine.Initialize();\r\n```\r\n\r\n\r\n-   If there was a crash, please include the traceback here.\r\n\r\n```python\r\nWin32Exception: 找不到指定的模块。\r\nRethrow as DllNotFoundException: Could not load D:/USD_中文/USD_中文/UnityApp/FactoryStream_Data/StreamingAssets/python-3.11.3-embed-amd64/python311.dll.\r\n  at Python.Runtime.Platform.WindowsLoader.Load (System.String dllToLoad) [0x00037] in \u003ce6978fb1f69f4558807e0a3431702c70\u003e:0 \r\n  at Python.Runtime.Runtime+Delegates.GetUnmanagedDll (System.String libraryName) [0x00009] in \u003ce6978fb1f69f4558807e0a3431702c70\u003e:0 \r\n  at Python.Runtime.Runtime+Delegates..cctor () [0x0000a] in \u003ce6978fb1f69f4558807e0a3431702c70\u003e:0 \r\nRethrow as TypeInitializationException: The type initializer for 'Delegates' threw an exception.\r\n  at Python.Runtime.Runtime.PyGILState_Ensure () [0x00000] in \u003ce6978fb1f69f4558807e0a3431702c70\u003e:0 \r\n  at Python.Runtime.PythonEngine.AcquireLock () [0x00000] in \u003ce6978fb1f69f4558807e0a3431702c70\u003e:0 \r\n  at Python.Runtime.Py+GILState..ctor () [0x00006] in \u003ce6978fb1f69f4558807e0a3431702c70\u003e:0 \r\n  at Python.Runtime.Py.GIL () [0x00007] in \u003ce6978fb1f69f4558807e0a3431702c70\u003e:0 \r\n  at FSM.USD.UsdEngine.Init () [0x00000] in \u003c409251060049431d992f8d5358cc24fc\u003e:0 \r\n  at FSM.USD.UsdEngine..ctor () [0x00006] in \u003c409251060049431d992f8d5358cc24fc\u003e:0 \r\n  at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object[],System.Exception\u0026)\r\n  at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in \u003c321eb2db7c6d43ea8fc39b54eaca3452\u003e:0 \r\nRethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.\r\n  at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x0001a] in \u003c321eb2db7c6d43ea8fc39b54eaca3452\u003e:0 \r\n  at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00095] in \u003c321eb2db7c6d43ea8fc39b54eaca3452\u003e:0 \r\n  at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean wrapExceptions, System.Boolean skipCheckThis, System.Boolean fillCache) [0x00009] in \u003c321eb2db7c6d43ea8fc39b54eaca3452\u003e:0 \r\n  at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Boolean wrapExceptions, System.Threading.StackCrawlMark\u0026 stackMark) [0x00027] in \u003c321eb2db7c6d43ea8fc39b54eaca3452\u003e:0 \r\n  at System.Activator.CreateInstance[T] () [0x00015] in \u003c321eb2db7c6d43ea8fc39b54eaca3452\u003e:0 \r\n  at Singleton`1[T]..cctor () [0x00000] in \u003c409251060049431d992f8d5358cc24fc\u003e:0 \r\nRethrow as TypeInitializationException: The type initializer for 'Singleton`1' threw an exception.\r\n  at ProtocolMgrWPF.ImportModelFromCloudLibraryByWpf (SharedMemoryLib.IMsg msg) [0x00197] in \u003c409251060049431d992f8d5358cc24fc\u003e:0 \r\n  at ProtocolMgrWPF.ImportResourceByPathByWPF (SharedMemoryLib.IMsg message) [0x00052] in \u003c409251060049431d992f8d5358cc24fc\u003e:0 \r\n  at NetManager.MessageUpdate () [0x000ba] in \u003c409251060049431d992f8d5358cc24fc\u003e:0 \r\n  at NetManager.FixedUpdate () [0x00000] in \u003c409251060049431d992f8d5358cc24fc\u003e:0 \r\n```\r\nGreetings!","author":{"url":"https://github.com/roywang91","@type":"Person","name":"roywang91"},"datePublished":"2024-11-04T07:43:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/2502/pythonnet/issues/2502"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f6f1e2a2-6058-eb9a-2f42-f4732796d4f4
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD310:36ED6F:1AB4A94:235D4D1:69719F47
html-safe-nonce9d7725ff91e770fbab55c4c6f0360690b5e066fd74b1ff86654e8309183166b7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzEwOjM2RUQ2RjoxQUI0QTk0OjIzNUQ0RDE6Njk3MTlGNDciLCJ2aXNpdG9yX2lkIjoiNTYxOTkwMTk1OTExMjg1OTQ2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacc8a83fb624f8ec324c483eb54c5e8812b534e881f3855724db81584a5a4376da
hovercard-subject-tagissue:2632076539
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/pythonnet/pythonnet/2502/issue_layout
twitter:imagehttps://opengraph.githubassets.com/84a2f5a04796d76b673564586438d740aeb68fd02a7de9748a376e633421465d/pythonnet/pythonnet/issues/2502
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/84a2f5a04796d76b673564586438d740aeb68fd02a7de9748a376e633421465d/pythonnet/pythonnet/issues/2502
og:image:altEnvironment Pythonnet version: 3.03 Python version: 3.11 Operating System: Windows .NET Runtime:net8.0 Details Describe what you were trying to get done. I am using pythonnet to write a C# project,...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameroywang91
hostnamegithub.com
expected-hostnamegithub.com
Nonefdfdce9cd4f6ab85dca2b0d11264270829297c962dd5a79df449062d7822258f
turbo-cache-controlno-preview
go-importgithub.com/pythonnet/pythonnet git https://github.com/pythonnet/pythonnet.git
octolytics-dimension-user_id6050430
octolytics-dimension-user_loginpythonnet
octolytics-dimension-repository_id14748123
octolytics-dimension-repository_nwopythonnet/pythonnet
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id14748123
octolytics-dimension-repository_network_root_nwopythonnet/pythonnet
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
release51c736e60b302bd039c9d5164573d176ceb24bb2
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/pythonnet/pythonnet/issues/2502#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpythonnet%2Fpythonnet%2Fissues%2F2502
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://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpythonnet%2Fpythonnet%2Fissues%2F2502
Sign up https://patch-diff.githubusercontent.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=pythonnet%2Fpythonnet
Reloadhttps://patch-diff.githubusercontent.com/pythonnet/pythonnet/issues/2502
Reloadhttps://patch-diff.githubusercontent.com/pythonnet/pythonnet/issues/2502
Reloadhttps://patch-diff.githubusercontent.com/pythonnet/pythonnet/issues/2502
pythonnet https://patch-diff.githubusercontent.com/pythonnet
pythonnethttps://patch-diff.githubusercontent.com/pythonnet/pythonnet
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fpythonnet%2Fpythonnet
Fork 770 https://patch-diff.githubusercontent.com/login?return_to=%2Fpythonnet%2Fpythonnet
Star 5.4k https://patch-diff.githubusercontent.com/login?return_to=%2Fpythonnet%2Fpythonnet
Code https://patch-diff.githubusercontent.com/pythonnet/pythonnet
Issues 156 https://patch-diff.githubusercontent.com/pythonnet/pythonnet/issues
Pull requests 18 https://patch-diff.githubusercontent.com/pythonnet/pythonnet/pulls
Discussions https://patch-diff.githubusercontent.com/pythonnet/pythonnet/discussions
Actions https://patch-diff.githubusercontent.com/pythonnet/pythonnet/actions
Projects 0 https://patch-diff.githubusercontent.com/pythonnet/pythonnet/projects
Wiki https://patch-diff.githubusercontent.com/pythonnet/pythonnet/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/pythonnet/pythonnet/security
Please reload this pagehttps://patch-diff.githubusercontent.com/pythonnet/pythonnet/issues/2502
Insights https://patch-diff.githubusercontent.com/pythonnet/pythonnet/pulse
Code https://patch-diff.githubusercontent.com/pythonnet/pythonnet
Issues https://patch-diff.githubusercontent.com/pythonnet/pythonnet/issues
Pull requests https://patch-diff.githubusercontent.com/pythonnet/pythonnet/pulls
Discussions https://patch-diff.githubusercontent.com/pythonnet/pythonnet/discussions
Actions https://patch-diff.githubusercontent.com/pythonnet/pythonnet/actions
Projects https://patch-diff.githubusercontent.com/pythonnet/pythonnet/projects
Wiki https://patch-diff.githubusercontent.com/pythonnet/pythonnet/wiki
Security https://patch-diff.githubusercontent.com/pythonnet/pythonnet/security
Insights https://patch-diff.githubusercontent.com/pythonnet/pythonnet/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/pythonnet/pythonnet/issues/2502
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/pythonnet/pythonnet/issues/2502
DllNotFoundException:Could not load python311.dllhttps://patch-diff.githubusercontent.com/pythonnet/pythonnet/issues/2502#top
https://github.com/roywang91
https://github.com/roywang91
roywang91https://github.com/roywang91
on Nov 4, 2024https://github.com/pythonnet/pythonnet/issues/2502#issue-2632076539
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.