[MapProxy] Install problem
Jean-Claude Repetto
jrepetto at free.fr
Wed Nov 19 09:05:12 PST 2014
Hi,
I am trying to install MapProxy on a server running Gentoo Linux.
I am getting a lot of errors. Not sure if the problem is related to pip
or to MapProxy.
Here is the installation log :
# pip install mapproxy
Downloading/unpacking mapproxy
Downloading MapProxy-1.7.1.tar.gz (1.3MB): 1.3MB downloaded
Running setup.py egg_info for package mapproxy
Requirement already satisfied (use --upgrade to upgrade):
PyYAML>=3.0,<3.99 in /usr/lib64/python3.3/site-packages (from mapproxy)
Requirement already satisfied (use --upgrade to upgrade): Pillow!=2.4.0
in /usr/lib64/python3.3/site-packages (from mapproxy)
Installing collected packages: mapproxy
Running setup.py install for mapproxy
Skipping installation of
/usr/lib64/python3.3/site-packages/mapproxy/__init__.py (namespace package)
File "/usr/lib64/python3.3/site-packages/mapproxy/grid.py", line 441
def flip_tile_coord(self, (x, y, z)):
^
SyntaxError: invalid syntax
File "/usr/lib64/python3.3/site-packages/mapproxy/layer.py", line 441
except GridError, ex:
^
SyntaxError: invalid syntax
File "/usr/lib64/python3.3/site-packages/mapproxy/wsgiapp.py",
line 106
except ConfigurationError, e:
^
SyntaxError: invalid syntax
File "/usr/lib64/python3.3/site-packages/mapproxy/version.py",
line 30
print __version__
^
SyntaxError: invalid syntax
File "/usr/lib64/python3.3/site-packages/mapproxy/srs.py", line 417
func = lambda (x, y): (dst_bbox[0] + (x - src_bbox[0]) *
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/test/helper.py", line 151
print dtd.error_log.filter_from_errors()
^
SyntaxError: invalid syntax
File "/usr/lib64/python3.3/site-packages/mapproxy/test/image.py",
line 106
print 'creating temp image %s (%r)' % (out_file, size)
^
SyntaxError: invalid syntax
File "/usr/lib64/python3.3/site-packages/mapproxy/test/http.py",
line 213
raise type, value, traceback
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/test/unit/test_grid.py",
line 466
print grid.grid_sizes[level], "==", grid_size
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/test/unit/test_image_messages.py",
line 129
print image_opts
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/test/unit/test_conf_loader.py",
line 408
except ConfigurationError, ex:
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/test/unit/test_yaml.py",
line 57
except YAMLError, ex:
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/test/unit/test_request.py",
line 34
print nc_dict
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/test/unit/test_utils.py",
line 383
def write_atomic_data((i, filename)):
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/test/unit/test_cache.py",
line 667
except SourceError, e:
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/test/unit/test_async.py",
line 335
print self.exec_count
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/test/unit/test_auth.py",
line 199
except RequestError, ex:
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/test/unit/test_client.py",
line 55
except HTTPClientError, e:
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/test/system/test_wms.py",
line 367
print resp.body
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/test/system/test_util_export.py",
line 72
except SystemExit, ex:
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/test/system/test_util_conf.py",
line 44
except Exception, ex:
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/client/http.py", line 136
except HTTPError, e:
^
SyntaxError: invalid syntax
File "/usr/lib64/python3.3/site-packages/mapproxy/client/cgi.py",
line 91
except OSError, ex:
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/service/tile.py", line 331
except SourceError, e:
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/service/base.py", line 31
except RequestError, e:
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/service/demo.py", line 77
except RequestError, ex:
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/service/wmts.py", line 292
print TileMatrixSet(tile_grid(900913)).tile_matrixes()
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/service/wms.py", line 150
except IOError, ex:
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/cache/renderd.py", line 91
except requests.RequestException, ex:
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/cache/couchdb.py", line 84
except requests.exceptions.RequestException, ex:
^
SyntaxError: invalid syntax
File "/usr/lib64/python3.3/site-packages/mapproxy/cache/file.py",
line 176
except OSError, ex:
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/cache/mbtiles.py", line 155
except sqlite3.OperationalError, ex:
^
SyntaxError: invalid syntax
File "/usr/lib64/python3.3/site-packages/mapproxy/cache/riak.py",
line 73
except Exception, e:
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/seed/cleanup.py", line 24
print format_cleanup_task(task)
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/seed/script.py", line 123
except ConfigurationError, ex:
^
SyntaxError: invalid syntax
File "/usr/lib64/python3.3/site-packages/mapproxy/seed/util.py",
line 125
except (IOError, OSError), ex:
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/seed/cachelock.py", line 110
except OSError, err:
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/seed/config.py", line 49
except YAMLError, ex:
^
SyntaxError: invalid syntax
File "/usr/lib64/python3.3/site-packages/mapproxy/seed/spec.py",
line 29
except ValidationError, ex:
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/seed/seeder.py", line 61
print '[%s] %6.2f%% %s \tETA: %s\r' % (
^
SyntaxError: invalid syntax
File "/usr/lib64/python3.3/site-packages/mapproxy/image/tile.py",
line 66
except IOError, e:
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/image/message.py", line 119
raise TypeError, 'need either img or size argument'
^
SyntaxError: invalid syntax
File "/usr/lib64/python3.3/site-packages/mapproxy/util/py.py",
line 27
raise new_exc.__class__, new_exc, tb
^
SyntaxError: invalid syntax
File "/usr/lib64/python3.3/site-packages/mapproxy/util/lib.py",
line 105
print load_library(sys.argv[1])
^
SyntaxError: invalid syntax
File "/usr/lib64/python3.3/site-packages/mapproxy/util/fs.py",
line 53
except OSError, ex:
^
SyntaxError: invalid syntax
File "/usr/lib64/python3.3/site-packages/mapproxy/util/yaml.py",
line 45
except (yaml.scanner.ScannerError, yaml.parser.ParserError), ex:
^
SyntaxError: invalid syntax
File "/usr/lib64/python3.3/site-packages/mapproxy/util/async.py",
line 253
raise exc_class, exc, tb
^
SyntaxError: invalid syntax
File "/usr/lib64/python3.3/site-packages/mapproxy/util/ogr.py",
line 225
print wkt
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/util/ext/lockfile.py", line 122
except Exception, ex:
^
SyntaxError: invalid syntax
Installing
/usr/lib64/python3.3/site-packages/MapProxy-1.7.1-py3.3-nspkg.pth
Installing mapproxy-seed script to /usr/bin
Installing mapproxy-util script to /usr/bin
File
"/usr/lib64/python3.3/site-packages/mapproxy/util/ext/serving.py", line 111
raise exc_info[0], exc_info[1], exc_info[2]
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/util/ext/dictspec/validator.py",
line 89
except ValueError, ex:
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/util/ext/dictspec/test/test_validator.py",
line 173
except ValidationError, ex:
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/util/ext/wmsparse/parse.py", line
281
print yaml.dump(dict(sources=sources), default_flow_style=False)
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/util/ext/tempita/__init__.py",
line 282
except SyntaxError, e:
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/source/mapnik.py", line 76
except RuntimeError, ex:
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/source/tile.py", line 76
except HTTPClientError, e:
^
SyntaxError: invalid syntax
File "/usr/lib64/python3.3/site-packages/mapproxy/source/wms.py",
line 69
except HTTPClientError, e:
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/config/loader.py", line 1598
except YAMLError, ex:
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/config/spec.py", line 28
except ValidationError, ex:
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/script/scales.py", line 115
print ' res: ['
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/script/util.py", line 57
print "\nERROR: MapProxy configuration required."
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/script/export.py", line 164
except IOError, e:
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/script/grids.py", line 49
print '%s:' % (grid_conf.conf['name'],)
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/script/wms_capabilities.py", line
60
print "# Note: This is not a valid MapProxy configuration!"
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/script/conf/sources.py",
line 36
except Exception, ex:
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/script/conf/app.py", line 131
except (xml.etree.ElementTree.ParseError, ValueError), ex:
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/platform/cpython/lock.py",
line 51
except OSError, e:
^
SyntaxError: invalid syntax
File
"/usr/lib64/python3.3/site-packages/mapproxy/platform/cpython/proj.py",
line 268
print coords
^
SyntaxError: invalid syntax
Successfully installed mapproxy
Cleaning up...
====================================================================
After all those error messages, it is strange to see "Successfully
installed mapproxy" :)
Best regards,
Jean-Claude
More information about the MapProxy
mailing list