Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

"ModuleNotFoundError" after update DLL version#2558

Unanswered
YoshiyasuIzumi asked this question inQ&A
Discussion options

Environment

  • Pythonnet version: 3.0.5
  • Python version: 3.10.5
  • Operating System: Windows 11 Version10.0.22631 Build 22631
  • .NET Framework 4.8

Details

I succussed to import DLL v5 via pythonnet, but after update to DLL v6 I failed to import DLL with "ModuleNotFoundError". I have no idea where should I start so, any advice and help is appreciated.
Also please find attached zip to reproduce this issue. In my environment, "main_v5.py" output nothing but "main_v6.py" outputs "ModuleNotFoundError".

import_issue_for_dotnet48.zip

  • The DLL vender noted "For MLComponent Ver.6.0.0.0 and later, development must be done using .NET Framework 4.8. For versions prior to Ver.5.9.11.0, it is required to develop with .NET Framework 4.0 or higher. It does not support .NET (.NET Core)."
You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

How did you create the dll files? Can you share the source code? If you build them yourself, usedotnet publish and also add<Platforms>x64</Platforms> to your csproj file. That did the trick for me. Hope it helps

You must be logged in to vote
1 reply
@YoshiyasuIzumi
Comment options

Sorry for the late replay. This DLL is provided by 3rd party, so we couldn't try your solution, but thank you for sharing this information.
This is just FYI but after some investigation, I notice that test DLL build by myself on .NET Framework 4.8 works in my environment. So the temporal solution is simply creating C# wrapper DLL and calling it.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@YoshiyasuIzumi@TonyCongqianWang
Converted from issue

This discussion was converted from issue #2557 on March 11, 2025 09:10.


[8]ページ先頭

©2009-2025 Movatter.jp