mapnik / python-mapnik

Python bindings for mapnik
GNU Lesser General Public License v2.1
160 stars 91 forks source link

mason build fails - pathspec 'new-pkgs' did not match any file(s) known to git. #141

Closed fjansson closed 7 years ago

fjansson commented 7 years ago

I'm trying to build python-mapnic from source with a mason build, but it fails with the following message.

$ export MASON_BUILD=true
$ python setup.py install
Updating to latest mason
error: pathspec 'new-pkgs' did not match any file(s) known to git.
Traceback (most recent call last):
  File "setup.py", line 114, in <module>
    lib_path = os.path.join(check_output([mapnik_config, '--prefix']),'lib')
  File "setup.py", line 20, in check_output
    output = subprocess.check_output(args)
  File "/usr/lib64/python2.7/subprocess.py", line 212, in check_output
    process = Popen(stdout=PIPE, *popenargs, **kwargs)
  File "/usr/lib64/python2.7/subprocess.py", line 390, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.7/subprocess.py", line 1024, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

scripts/setup_mason.sh contains the reference MASON_VERSION="new-pkgs" - but this seems to not match anything in main mapnik repository.

I'm using Arch Linux. I tried with both python2 and python3, and with and without a virtual environment - but I guess this is more about the two repositories not being compatible at the moment.

springmeyer commented 7 years ago

This is solved for the v3.0.x branch in #144.