ImportError: No module named 'decls'
See original GitHub issueHi
I get the following error when importing pyvips:
$ python testvips.py
DEBUG:pyvips:Binary module load failed: No module named '_libvips'
DEBUG:pyvips:Falling back to ABI mode
DEBUG:pyvips:Loaded lib <cffi.api._make_ffi_library.<locals>.FFILibrary object at 0x7fd20b984278>
DEBUG:pyvips:Loaded lib <cffi.api._make_ffi_library.<locals>.FFILibrary object at 0x7fd20b9e1eb8>
DEBUG:pyvips:Inited libvips
DEBUG:pyvips:
Traceback (most recent call last):
File "testvips.py", line 4, in <module>
import pyvips
File "/REDACTED/.venv/lib/python3.5/site-packages/pyvips/__init__.py", line 75, in <module>
import decls
ImportError: No module named 'decls'
I tried on 2 machines with the same result:
- Ubuntu 16.04.1 LTS, Python 3.5.2
- Ubuntu 17.04, Python 3.5.3
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 mode
Is there anything I missed?
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (12 by maintainers)
Top Results From Across the Web
OSError: Cannot find pyvips library (DLLs) - Stack Overflow
Does not seem to work anymore after forced company windows10 21H2 update. get: ModuleNotFoundError: No module named 'pyvips'.
Read more >ImportError: No module named cflib.crtp - Bitcraze Forums
Hello, I am trying to use the command: python position_commander_demo.py. When I run it, it gives me this error:
Read more >ImportError: No module named PCANBasic,on python
Code: Select all from PCANBasic import *. in my python program, it shows an import error. Is this related to some directory issue?...
Read more >Pip is not working: ImportError: No module named 'pip._internal'
After upgrading pip (or pip3 , in this case) if the following occurs: $ ~ pip3 -V Traceback (most recent call last): FileΒ ......
Read more >2021 How to Fix "No Module Named..." Error in Python
2021 How to Fix ImportError " No Module Named pkg_name" in Python! First, download the package using a terminal outside of python.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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. Ubuntu desktop 17.04, Python 3.5.3, libvips 8.4.5-1build1 (installed libvips, libvips-dev, libvips-tools)
Great! Iβll merge your PR too. Thank you again for reporting this.