RGiesecke.DllExport.Metadata not found when trying to import DLL #2254
Unanswered
josemariagarcia95
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! I posted this situation I have as an issue because I thought it was, but I was told to move it here, so I'll keep the format.
The main idea is that I'm trying to load a class in a DLL file using Python. This class (and most of its methods) is static (which at this point I think is related to my problem), and when I load it, the static methods are not there (although I can see them if I import that DLL in Visual Studio in a .NET project). The script I'm using is supposed to work under Pythonnet 2.3.0, but I couldn't install it, so I'm trying to make it work with the current versions of Python and Pythonnet I'm using.
Environment
Details
I'm trying to import a DLL I was given by my company to use its functions in Python. I was also given a basic script to import said DLL and access its functions:
However, after inspecting QuickLZ with
dir, I discover that the imported object only contains "default" functions such asEquals,GetType, etc.Suspecting it might have something to do with the fact that said script was done for pythonnet 2.3.0, I tweaked it a bit using the documentarion:
Now the import fails, giving me an error that says that
RGiesecke.DllExport.Metadatawasn't found (see below).What commands did you run to trigger this issue? If you can provide a
If there was a crash, please include the traceback here.
I also run
get_runtime_info()and got this:Could it be related? Maybe it's not finding my .NET Framework files, although they are in their default Windows location???
Beta Was this translation helpful? Give feedback.
All reactions