xoolive / geodesy

A pragmatic and efficient geodesy toolkit
MIT License
7 stars 7 forks source link

Build fail #6

Open teguhpurnama opened 2 years ago

teguhpurnama commented 2 years ago

Hi Olive, How to install the package correctly? I tried to build this package but keep getting error below. I've tried installing the package in some python version, but the error is the same.

Collecting git+git://github.com/xoolive/geodesy.git
  Cloning git://github.com/xoolive/geodesy.git to c:\users\teguh\appdata\local\temp\pip-req-build-hmm63wef
  Running command git clone -q git://github.com/xoolive/geodesy.git 'C:\Users\teguh\AppData\Local\Temp\pip-req-build-hmm63wef'
  Resolved git://github.com/xoolive/geodesy.git to commit d30c1bf1bddd51a0363c0c3d7b801ad1720ff81b
Building wheels for collected packages: geodesy
  Building wheel for geodesy (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'C:\Users\teguh\anaconda3\envs\python38\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\teguh\\AppData\\Local\\Temp\\pip-req-build-hmm63wef\\setup.py'"'"'; __file__='"'"'C:\\Users\\teguh\\AppData\\Local\\Temp\\pip-req-build-hmm63wef\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\teguh\AppData\Local\Temp\pip-wheel-f4hyegah'
       cwd: C:\Users\teguh\AppData\Local\Temp\pip-req-build-hmm63wef\
  [truncated]
  c:\users\teguh\appdata\local\temp\pip-req-build-hmm63wef\src\sse2_math.h(313): error C3861: '_mm_cvttpd_pi32': identifier not found
  c:\users\teguh\appdata\local\temp\pip-req-build-hmm63wef\src\sse2_math.h(315): error C3861: '_mm_add_pi32': identifier not found
  c:\users\teguh\appdata\local\temp\pip-req-build-hmm63wef\src\sse2_math.h(316): error C3861: '_mm_and_si64': identifier not found
  c:\users\teguh\appdata\local\temp\pip-req-build-hmm63wef\src\sse2_math.h(317): error C3861: '_mm_cvtpi32_pd': identifier not found
  c:\users\teguh\appdata\local\temp\pip-req-build-hmm63wef\src\sse2_math.h(320): error C3861: '_mm_and_si64': identifier not found
  [truncated]
xoolive commented 2 years ago

THank you for your update. From the error I see, it looks like the ifdef instructions in the sse2_math.h failed to correctly determine the architecture of your machine. I tested that a lot on Linux/Mac OS but not so much with Windows.

To be honest, I don't use this library much any more since I found all I need in https://pyproj4.github.io/pyproj/stable/ Maybe have look there instead?