Closed jmizv closed 1 year ago
Hi, @jmizv!
Looks like this is an Xcode—clang-related issue, which I'm not familiar with.
Not sure where I have control over the parameter
MACOSX_DEPLOYMENT_TARGET
? Do I need to increse it to 12?
Some guys on Stack Overflow recommend this. Some also recommend export SYSTEM_VERSION_COMPAT=1
. At least changing environment variables seems safe.
Could you please tell me, how you plan to use the project? If you are OK with SVG images and are not going to generate PNG tiles, I may create a special branch without cairo dependency. What do you think?
Hi @enzet, thanks for reaching out. I'm not really sure how to use the project. I was just curios and tried to experiment with it. No real goal. So let me try your suggestions with the env variable.
Hey, @jmizv!
I've created a branch no-cairo
without cairo dependency. This version of Map Machine does not support PNG tile generation (i.e., tile
and server
commands) but supports SVG file generation (i.e., render
command) and everything else from the standard Map Machine version.
All you need to try this version is to add @no-cairo
to the pip install
command:
pip install git+https://github.com/enzet/map-machine@no-cairo
This version however still depends on GEOS library. Please, check whether there will be any problems with this.
Hope this will help.
Hi @enzet thanks! I've tried your suggestion but it does not seem successful:
user@MB IdeaProjects % pip3 install git+https://github.com/enzet/map-machine@no-cairo
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
Collecting git+https://github.com/enzet/map-machine@no-cairo
Cloning https://github.com/enzet/map-machine (to revision no-cairo) to /private/var/folders/_b/_n1p01v12_d0vjn_s33_whv80000gn/T/pip-req-build-u__r1z4o
Running command git clone --filter=blob:none --quiet https://github.com/enzet/map-machine /private/var/folders/_b/_n1p01v12_d0vjn_s33_whv80000gn/T/pip-req-build-u__r1z4o
Running command git checkout -b no-cairo --track origin/no-cairo
Zu neuem Branch 'no-cairo' gewechselt
Branch 'no-cairo' folgt nun Remote-Branch 'no-cairo' von 'origin'.
Resolved https://github.com/enzet/map-machine to commit 40186aa736c7df52171584bfa39401ab670d9bcd
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [9 lines of output]
running egg_info
creating /private/var/folders/_b/_n1p01v12_d0vjn_s33_whv80000gn/T/pip-pip-egg-info-6o_inrdt/map_machine.egg-info
writing /private/var/folders/_b/_n1p01v12_d0vjn_s33_whv80000gn/T/pip-pip-egg-info-6o_inrdt/map_machine.egg-info/PKG-INFO
writing dependency_links to /private/var/folders/_b/_n1p01v12_d0vjn_s33_whv80000gn/T/pip-pip-egg-info-6o_inrdt/map_machine.egg-info/dependency_links.txt
writing entry points to /private/var/folders/_b/_n1p01v12_d0vjn_s33_whv80000gn/T/pip-pip-egg-info-6o_inrdt/map_machine.egg-info/entry_points.txt
writing requirements to /private/var/folders/_b/_n1p01v12_d0vjn_s33_whv80000gn/T/pip-pip-egg-info-6o_inrdt/map_machine.egg-info/requires.txt
writing top-level names to /private/var/folders/_b/_n1p01v12_d0vjn_s33_whv80000gn/T/pip-pip-egg-info-6o_inrdt/map_machine.egg-info/top_level.txt
writing manifest file '/private/var/folders/_b/_n1p01v12_d0vjn_s33_whv80000gn/T/pip-pip-egg-info-6o_inrdt/map_machine.egg-info/SOURCES.txt'
error: package directory 'map_machine/slippy' does not exist
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Sorry, my bad. I forgot to remove a package from setup.py
. It is fixed now. Could you please try one more time?
You may need to run pip uninstall map-machine
if it was partially installed.
Hi @enzet thanks, now it seems to have worked. At least the install command succeeded without error.
And even better:
user@MB IdeaProjects % map-machine render -b=2.284,48.860,2.290,48.865
INFO Getting https://api.openstreetmap.org/api/0.6/map...
INFO Constructing ways...
INFO Constructing nodes...
INFO Drawing ways...
INFO Drawing main icons...
INFO Drawing extra icons...
INFO Drawing texts...
INFO Writing output SVG to out/map.svg...
This gave me a really nice SVG file. Thanks for your efforts 👍 I'm more than fine for the moment without any PNG support here.
Wonderful! Thank you for the issue. I supposed, that libraries could become a problem.
I've followed the guide but when doing
it gives:
Not sure where I have control over the parameter
MACOSX_DEPLOYMENT_TARGET
? Do I need to increse it to 12?