question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ImportError: No module named vipsCC.VError

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
LeonanCarvalhocommented, Feb 10, 2017

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

0reactions
joharohlcommented, Feb 10, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found