-
Notifications
You must be signed in to change notification settings - Fork 49
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
ImportError: No module named 'decls' #32
Comments
Huh strange, decls is just part of pyvips: https://github.com/jcupitt/pyvips/blob/master/pyvips/decls.py I'll try to investigate. |
If you have libvips-dev on there, it should work in API mode. Perhaps you have a cached binary wheel for pyvips? You could try deleting that and doing |
Also, which python are you using? It's currently passing with 2.7, 3.5 and 3.6, but failing with 3.3 and 3.4 due to a strange dependency problem. |
I'm using Python 3.5 on both machines, within a virtualenv.
This time it seems to report being installed in API mode rather than ABI.
Could it be related to the virtualenv? or to the fact I used "--no-install-recommends" for the libraries ( |
Hello again, you've hit another bug, sorry: https://github.com/jcupitt/pyvips/issues/33 Could you try git master pyvips? That one should be fixed now. pyvips 2.1 has a big change to the way it installs :-( it seems to be causing trouble. |
Oop, I was reading too quickly, that's a different problem. I'll have another look at your |
By the way here are my libvips versions:
Doing the test on the latter (with libvips 8.4.5-1build1), using the most recent commit on master:
Now, it works! No more
|
Testing on my other platform: Ubuntu (server) 16.04.1 LTS, Python 3.5.2 --> libvips 8.2.2-1. Installing the same version
Now the test...
So the "decls" issue still seems to be happening under these conditions:
|
Some progress! Thank you for being so patient with this. Could you try master again? I made decls a relative import, perhaps it'll help. |
Oh dear, that was silly. Try again, it's working for me now. |
Good news! No more error on Ubuntu (server) 16.04.1 LTS + libvips 8.2.2-1 (without -dev) / ABI mode
I also re-checked the other platform just in case.
|
Great! I'll merge your PR too. Thank you again for reporting this. |
Hi
I get the following error when importing pyvips:
I tried on 2 machines with the same result:
I ran
sudo apt-get install libvips libvips-dev libvips-tools --no-install-recommends
Then in my virtualenv
pip install pyvips
pip show
tells me pyvips is Version: 2.1.1 in ABI modeIs there anything I missed?
The text was updated successfully, but these errors were encountered: