- Notifications
You must be signed in to change notification settings - Fork748
DllNotFoundException on .net 6 with python 3.12#2340
-
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 5 comments 2 replies
-
For Python x64 use x64 profile app (Any CPU - not working) |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Is there a chance you're just not installing the package correctly? # from your .csproj directorydotnet add package pythonnet Or possibly Python itself? Sounds like Python wasn't added to your environment PATH variables. OurStock Indicators for Python QuickStart may help with more details on how to setup your environment, though our use case is a bit different. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Hey,@software6ptk , did you solve the problem? |
BetaWas this translation helpful?Give feedback.
All reactions
-
I'm having ecapt same issue. Weird thing is that on my dev computer, I got it working. Then I updated my app's Flight in MS store and tested with my laptop: getting the dllNotFound whatever I do. Tried several different versions and also checked that maybe the python38.dll (or 310.dll) has some dependency missing, but no... |
BetaWas this translation helpful?Give feedback.
All reactions
-
Actually, my issue was that one of the dependencies, msvc was not installed in target machine. I discovered when I ditched the pythonnet and starter running python just with process.start. So, it was actually one of the python scripts that failed to load the dll, but pythonnet completely "ate" the original error and made it look like the pythonnet.dll had some missing dependency. Pretty common case with c# and dependency dll load issues: the actual root cause gets lost in translation 😆 |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
-
I used something like that and worked to me and I create configuration manger of X64 to be combatable with with my vs and here where python live |
BetaWas this translation helpful?Give feedback.
All reactions
-
BetaWas this translation helpful?Give feedback.
All reactions
This discussion was converted from issue #2339 on March 12, 2024 11:25.