Skip to content
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

Installation is being failed #246

Open
Bondopadhyay opened this issue Jul 4, 2024 · 3 comments
Open

Installation is being failed #246

Bondopadhyay opened this issue Jul 4, 2024 · 3 comments

Comments

@Bondopadhyay
Copy link

Bondopadhyay commented Jul 4, 2024

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
Copy link
Collaborator

e-n-f commented Jul 5, 2024

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.

@nightlark
Copy link
Contributor

There isn't a pre-built binary wheel on PyPI for Windows, so pip falls back to trying to build from the source wheel (the CMake build script is just running make on tippecanoe's default makefile). If tippecanoe supports building under MinGW using its current Makefile then I can get a pre-compiled binary wheel for Windows added.

For native builds using MSVC (instead of MinGW) from source on Windows, that would likely require tippecanoe to start using CMake.

@nightlark
Copy link
Contributor

I have a draft PR with the changes needed to build tippecanoe using MinGW without compiler errors, however it very likely crashes when you try to run the resulting executable: #293

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants