Skip to content
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

Show inner exception for library loading error #203

Open
dahlia opened this issue Dec 10, 2014 · 0 comments
Open

Show inner exception for library loading error #203

dahlia opened this issue Dec 10, 2014 · 0 comments
Labels

Comments

@dahlia
Copy link
Collaborator

dahlia commented Dec 10, 2014

Quote an email from Andrew Whalan:

Hi Minhee,

I just had an issue where I mismatched the architectures of imagemagick on windows (64bit) and python (32bit).

I was running python 32bit for compatibility with other libraries and accidently installed the 64bit version of image magick. Because in api.load_library() the exceptions about being unable to load the DLL are just silently squashed before failing with a generic “cannot find library”.

I eventually ran things through a debugger and found the inner exception, but it took quite a while to figure out exactly what was happening.

It might be helpful if you also show the inner exception if it’s due to being unable to load the library for some reason other than it just can’t be found such as permissions or architecture mismatch which the import init reports as “you probably don’t have it installed”.

Hope this makes sense and is helpful!

-Andrew

@dahlia dahlia added the enhance label Dec 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant