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
Which module could not be found? #80447
Comments
I have a module that contains an import statement that imports a large number of items. This import was failing with the following error message: ImportError: DLL load failed: The specified module could not be found. The message would be so much more helpful if it named the offending DLL and module. |
I agree. Unfortunately, the operating system does not provide this information. The best I can offer is to run Process Monitor 1 and watch its logs. It should show the paths it attempts to access. |
Hello Steve, I'm buying only 50 percent of this. The Python interpreter must know what Phillip On Tue, Mar 12, 2019 at 8:42 AM Steve Dower <report@bugs.python.org> wrote:
|
You mean like this: >>> import _ssl
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: DLL load failed: The specified module could not be found. Should include "_ssl" somewhere in the message? That's easy enough, but it's never been what anyone else has meant when they've asked for this, so I assumed you wanted the more helpful message (where it tells you exactly which DLL is missing - libcrypto-1_1-x64.dll in this case - and *that's* the one we can't do). |
'Should include "_ssl" somewhere in the message?' Exactly so. If a given On Wed, Mar 13, 2019 at 12:28 PM Steve Dower <report@bugs.python.org> wrote: >
> Steve Dower <steve.dower@python.org> added the comment:
>
> You mean like this:
>
> >>> import _ssl
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> ImportError: DLL load failed: The specified module could not be found.
>
> Should include "_ssl" somewhere in the message? That's easy enough, but
> it's never been what anyone else has meant when they've asked for this, so
> I assumed you wanted the more helpful message (where it tells you exactly
> which DLL is missing - libcrypto-1_1-x64.dll in this case - and *that's*
> the one we can't do).
>
>
|
Okay, in that case we're just adding I've marked this as "easy (C)" as it seems like a good first contribution for someone. |
Phillip, when responding by email, please removed the quoted email (except possible for a line or 2) as it becomes noise when your email is placed on the web page. You can see the effect on https://bugs.python.org/issue36266 |
I just submitted a PR for this issue. |
can a reviewer please take a look to my PR? |
Thanks for the contribution! |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: