-
Notifications
You must be signed in to change notification settings - Fork 6
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
Any idea how I can get a functioning 'mapnik' for Ubuntu 17.10? #99
Comments
Check if Python is looking into the place where Mapnik is installed: >>> import sys
>>> sys.path
['', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-arm-linux-gnueabihf', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages']
>>> If not, try to set |
I discovered that the python-mapnik that I thought I'd built was an ancient relic that happened still to be in /usr/local. Starting from scratch:
The result is that I get a large number of errors like:
So... I stumble upon mapnik/python-mapnik#103
Now it builds and tests with only five failing tests. So, still in the virtualenv, I go back to where I build the tiles and try to launch again. It gets farther - now, inside Mapnik, I get an error like:
(Mind you, this is a The header of
and within that file there is
mapnik/mapnik#3630 suggests that this is an issue with the underlying |
As you found, the problem with XML entities is caused by using But The Mason thing is used primarily for development of Mapnik, to provide particular versions of dependencies, because especially visual tests are very sensitive to versions of dependencies. |
@talaj Since the Mason build was the first thing mentioned in Readme.md, https://github.com/mapnik/python-mapnik, it was the first thing I tried. I'm not trying to set up a development environment for developing Mapnik, I'm simply trying to get a working build. I did, in any case, manage to make a build that worked for me (except for a problem that I haven't yet tracked down that has identical symptoms to mapproxy/mapproxy#290 and appears to relate to a RasterSymbolizer trying to render a GDAL image at very low zoom levels). I can now live with the configuration I have. I'll open an issue for the RasterSymbolizer problem if I can manage to make it fail without needing to use the massive images (NLCD and NED-derived hillshading) that I see it failing on. In the meantime, simply disabling the raster images at the low zoom levels doesn't adversely affect the usability of my map. I observe that Apparently, the distributors of Xubuntu felt differently about |
Concerning the RasterSymbolizer problem, I saw a similar issue recently. Is the raster in the same projection as the map or are they different? |
I'm at wits' end here.
I recently upgraded to Ubuntu 17.10, and that seems to have no working mapnik. That is already reported here: https://bugs.launchpad.net/ubuntu/+source/python-mapnik/+bug/1734142
I tried the instructions (under Ubuntu 16.04) at https://github.com/mapnik/mapnik/wiki/UbuntuInstallation . The package appears to build, the tests appear to run (except that the PostgreSQL tests need a database that I don't have), and 'sudo make install' appears to work. But neither 'python' (the system-installed python, which is python3), nor explicitly choosing 'python2' or 'python3' on the command line can find the 'mapnik' package after installation.
Having seen that there are current issues for python3/scons3, I tried starting over from a fresh clone with an explicit PYTHON=/usr/bin/python2 throughout (including the
make
command), and once again, it appears to build, it appears to install, and the package is unavailable to me at run time.What am I missing? Is there a different distribution channel that I should be trying? Or do I need to modify my python setup from the stock Ubuntu in order to find the material that the Mapnik installer has placed in /usr/local?
The text was updated successfully, but these errors were encountered: