-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OSError : [Errno 8] Bad EXE format for %1 #79
Comments
Can you configure the |
There is the log
|
Thanks. It could be a DLL that uses a different "calling convention". Try Or, most likely, it could be a 32 bit vs 64 bit issue. Last but not least, I'd suspect that there is some issue with |
Hi @s-m-e. import zugbruecke
dll_path = './test.dll'
isolib = zugbruecke.cdll.LoadLibrary(dll_path) OSError: ./test.dll: invalid ELF header Your other suggestion leads to the same error import zugbruecke
zugbruecke.session({"log_level": 10, "arch": 'win64'})
dll_path = './test.dll'
isolib = zugbruecke.windll.LoadLibrary(dll_path) (1648216507.31/bd1b8f2d) UNIX o: [session-client] STARTING (STAGE 1) ...
(1648216507.31/bd1b8f2d) UNIX o: [session-client] Configured Wine-Python version is 3.5.3 for win64.
(1648216507.31/bd1b8f2d) UNIX o: [session-client] Log socket port: 51263.
(1648216507.31/bd1b8f2d) UNIX o: [session-client] STARTED (STAGE 1).
OSError: [Errno 8] Bad EXE format for %1
(1648216514.82/bd1b8f2d) UNIX o: [session-client] TERMINATING ...
(1648216514.82/bd1b8f2d) UNIX o: [session-client] TERMINATED. System information
|
@jayhop Interesting. Would you be able to share a reproducible example, i.e. code and the DLL, with me - so I can have a closer look at it directly? |
Unfortunately, I can't due to copyright issues. I'll try to create and post another example later this week or next. |
@s-m-e Sorry for my late reply! I've added you to a private repo. I hope you can reproduce this bug. |
@jayhop Thanks! Will look into it. |
@jayhop Did a lot of cleanup, repaired CI etc and will release v0.1.0 today. I'll use this to bisect your issue. |
Thanks for the update 🙏. |
@jayhop Findings so far: |
@s-m-e that's suprising. Is it possible that the library |
hello,i have a DLL file needed load by zurbruecke in Ubuntu, but when i loading file use
zugbruecke.windll.LoadLibrary
, python will report[Errno 8] Bad EXE format for %1
to me. What should I do for this Error?The text was updated successfully, but these errors were encountered: