Nick Coghlan ncogh...@gmail.com added the comment:
As Martin says, we aren't inclined to implement or maintain the equivalent of
depends.exe in order to provide a slightly better error message.
If anyone wants to reopen this issue, provide a patch. Otherwise devs are just
going to close it
anatoly techtonik techto...@gmail.com added the comment:
Martin, shouldn't there be at least majority to reach consensus on this matter,
or you're self-proclaimed BSDL II? =)
At least failed .pyd module name should be present in error message.
--
status: closed - open
Georg Brandl ge...@python.org added the comment:
No idea what a BSDL is, but a developer is definitely entitled to close a bug
without resorting to a majority decision (what is that, anyway? should we
hold monthly parliament over bugs?).
You're of course free to reopen with a different
New submission from anatoly techtonik techto...@gmail.com:
When an extension could not be loaded, because it requires some DLL that is
missing, Python shows the following error message:
ImportError: DLL load failed: The specified module could not be found.
It will help tremendously in
Changes by Brian Curtin cur...@acm.org:
--
type: resource usage - feature request
versions: +Python 3.3 -Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10854
___
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Is it even possible? Each time I tried, the only solutions involved an external
program like Dependency Walker.
--
nosy: +amaury.forgeotdarc
___
Python tracker rep...@bugs.python.org
Brian Curtin cur...@acm.org added the comment:
I'm pretty sure we can't do this, if I understand your request.
Say you have techtonik.pyd as your extension and it depends on foobar.dll. If
we try to load techtonik.pyd and this pyd can't find or successfully load
foobar.dll, Python doesn't
Brian Curtin cur...@acm.org added the comment:
Agree with Amaury. depends has always been my solution to this type of problem.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10854
___
anatoly techtonik techto...@gmail.com added the comment:
Can you cross reference the part of code where this error is catched?
Why Python can't get information about the reason .DLL is not loaded?
Is it at least possible to add a hook point at the exact time the import fails
to insert
Brian Curtin cur...@acm.org added the comment:
See _PyImport_GetDynLoadFunc in Python/dynload_win.c -- that's where this is
happening.
Why Python can't get information about the reason .DLL is not loaded?
Windows does not provide it in the case you are speaking of. If I call
LoadLibraryEx
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
The code is in Python/dynload_win.c
To load an extension module mymodule.pyd, Python calls
LoadLibrary('/path/to/mymodule.pyd'); when it returns NULL, the code calls
GetLastError() (which returns 126 in this case) then FormatMessage
anatoly techtonik techto...@gmail.com added the comment:
I see. But depends.exe dependency walker somehow finds the exact code that is
failing, so there should be a way to do extra investigation in case of error.
py2exe has a custom .dll loader that bypasses LoadLibrary(Ex) calls from that I
Changes by Brian Curtin cur...@acm.org:
--
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10854
___
___
Python-bugs-list
Martin v. Löwis mar...@v.loewis.de added the comment:
Closing this as won't fix. Python is not going to reimplement depends.exe.
--
nosy: +loewis
resolution: - wont fix
status: open - closed
___
Python tracker rep...@bugs.python.org
14 matches
Mail list logo