felt / tippecanoe

Build vector tilesets from large collections of GeoJSON features.
BSD 2-Clause "Simplified" License
875 stars 76 forks source link

Installation is being failed #246

Open Bondopadhyay opened 1 month ago

Bondopadhyay commented 1 month ago

For Windows, does one need to rewrite the make file?

This is my first time installing and using tippercanoe. My objective is to convert vector data into PMTiles. However, that is secondary.

It failed to build trippercane. I simply ran pip to install tippecanoe.

After the successful preparation of metadata, it was bouncing with errors.

Output:

Preparing metadata (pyproject.toml): finished with status 'done'
Building wheels for collected packages: tippecanoe
  Building wheel for tippecanoe (pyproject.toml): started
  Building wheel for tippecanoe (pyproject.toml): finished with status 'error'
Failed to build tippecanoe

  error: subprocess-exited-with-error

  × Building wheel for tippecanoe (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [23 lines of output]
      [C:\Users\AdminAnirban\AppData\Local\Temp\pip-build-env-vn9hc_k_\normal\Lib\site-packages\setuptools_scm\git.py:312](file:///C:/Users/AdminAnirban/AppData/Local/Temp/pip-build-env-vn9hc_k_/normal/Lib/site-packages/setuptools_scm/git.py:312): UserWarning: git archive did not support describe output
        warnings.warn("git archive did not support describe output")
      [C:\Users\AdminAnirban\AppData\Local\Temp\pip-build-env-vn9hc_k_\normal\Lib\site-packages\setuptools_scm\git.py:331](file:///C:/Users/AdminAnirban/AppData/Local/Temp/pip-build-env-vn9hc_k_/normal/Lib/site-packages/setuptools_scm/git.py:331): UserWarning: unprocessed git archival found (no export subst applied)
        warnings.warn("unprocessed git archival found (no export subst applied)")
      *** scikit-build-core 0.9.8 using CMake 3.30.0 (wheel)
      2024-07-04 21:06:29,946 - scikit_build_core - WARNING - No license files found, set wheel.license-files to [] to suppress this warning
      *** Configuring CMake...
      2024-07-04 21:06:30,033 - scikit_build_core - WARNING - Can't find a Python library, got libdir=None, ldlibrary=None, multiarch=None, masd=None
      loading initial cache file [C:\Users\ADMINA](file:///C:/Users/ADMINA)~1\AppData\Local\Temp\tmpnlgxh2rf\build\CMakeInit.txt
      -- Building for: NMake Makefiles
      CMake Error at CMakeLists.txt:3 (project):
        Running

         'nmake' '-?'

        failed with:

         no such file or directory

...

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for tippecanoe
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (tippecanoe)

Assist, please. If something is amiss on my end, let me know.

e-n-f commented 1 month ago

The Python pip script for tippecanoe is not something I created, so I don't know what it does. I am also not a Windows user, so I don't know what might need to be different in the Makefile for Windows. Tippecanoe does not use cmake, so you appear to be running a different Makefile than the one supplied with Tippecanoe.

The intent of the Makefile is that you should be able to do:

git clone https://github.com/felt/tippecanoe.git
cd tippecanoe
make

to get a working copy of Tippecanoe. Try that, and if it doesn't work, tell me what happens and I will try to figure out what is wrong.