ImportError: No module named vipsCC.VError
See original GitHub issueI got this erro when install it using pip. on CentOS7
Traceback (most recent call last):
File "/usr/bin/gdal2mbtiles", line 11, in <module>
sys.exit(main())
File "/usr/lib/python2.7/site-packages/gdal2mbtiles/main.py", line 242, in main
args = parse_args(args=args)
File "/usr/lib/python2.7/site-packages/gdal2mbtiles/main.py", line 209, in parse_args
args.coloring = coloring_arg(args.coloring)
File "/usr/lib/python2.7/site-packages/gdal2mbtiles/main.py", line 65, in coloring_arg
from gdal2mbtiles import vips
File "/usr/lib/python2.7/site-packages/gdal2mbtiles/vips.py", line 36, in <module>
from vipsCC.VError import VError
ImportError: No module named vipsCC.VError
Issue Analytics
- State:
- Created 7 years ago
- Comments:5
Top Results From Across the Web
Python error "ImportError: No module named" - Stack Overflow
The problem in my case was that there was the permission to newly installed modules were not 755 . That was because umask...
Read more >gdal - Import error: no module named _gdal_array
but I am getting an import error for gdal_array. ImportError Traceback (most recent call last) <ipython-input-7-6a16047a395b> in <module>() ...
Read more >How to fix “ImportError: No module named …” error in Python?
1. Find the python installation location using the command where python in the command prompt. 2. Navigate to the Scripts folder under the...
Read more >Fix ModuleNotFoundError (No Module Named CV2) Python ...
python #error #fix #fixed #howto Hey guys in this tutorial let's try to fix ModuleNotFoundError No module named CV2 error in cases where...
Read more >Fix ModuleNotFoundError No Module Named MatPlotLib ...
python #error #fix #fixed #howto Hey guys in this tutorial let's try to fix ModuleNotFoundError No module named matplotlib error in cases ...
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
I already had all the other requirements installed, however I did not mind the vps.
To install it on CentOS (fedora, red hat etc) you should use remi repository:
Download the latest remi-release rpm from http://rpms.famillecollet.com/enterprise/7/remi/x86_64/ Install remi-release rpm: rpm -Uvh remi-release*rpm Install vips-python rpm package: yum --enablerepo=remi install vips-python
I was able to reproduce your problem.
It’s most likely due to that when installing gdal on Centos 7, you get a newer version than most other distributions. Something is not working properly because of that (as far as we can tell). Someone will have a look at it, but I can’t promise when.
In the meantime, you should be able to work around it by warping the input file to whatever projection you want (for webbased maps it’s usually EPSG:3857) and telling
gdal2mbtiles
to use the specific projection, thus skipping the warp step like so:gdal2mbtiles --spatial-reference 3857 <input> <output>
.Also, if you have access to a system running a debian based system, it should work out of the box.
Hope this helps and thanks for your interest in gdal2mbtiles.