astrorigin / pyswisseph

Python extension to the Swiss Ephemeris
https://astrorigin.com/pyswisseph
GNU Affero General Public License v3.0
237 stars 65 forks source link

Won’t build pyswisseph on MacOS 13.4 #63

Closed dalerye closed 1 year ago

dalerye commented 1 year ago

Using “pip install pyswisseph” produces a fatal “failed building wheel for pyswisseph” error:

In file included from libswe/swell.c:61: In file included from libswe/swejpl.h:66: linswe/sweodef.h:170:10: fatal error: ‘math.h’ file not found

include

The same error recurs in trying to pip install other libraries that depend on pyswisseph, like kerykeion

I am using pip 21.3.2 on Python 3.10.1 on MacOS 13.4 with the Xcode 14.3 tools installed.

ShadowJonathan commented 1 year ago

Confirmed the issue: the wheel with the highest Python version is Python 3.9, meaning pip can't find an applicable wheel

Running CI again today should create those wheels, but then they just have to be uploaded to the current release

Either that, or we should make a new release that simply goes through the whole process and uploads the right artefacts that way, under a new .post release

astrorigin commented 1 year ago

The latest release v2.10.03.2 should fix that problem. Please try again and let us know.

dalerye commented 1 year ago

Thanks for the fast response. It builds fine now, I think, but in Python 3.10, I still get an error: " No module named 'pyswisseph' ." I have been involved with computers since 1965, but I cannot seem to master the mysteries of UNIXish PATH variables. I installed Python 3.11, but the shell updater left me still running 3.10.1 when I invoke 'python3' so if pyswisseph is in the libraries for 3.11, my python still isn't seeing it. That is probably on me, not on you.

ShadowJonathan commented 1 year ago

pyswisseph is importable via import swisseph

please just report if you were able to successfully install the latest version through pip, you should see it download a .whl file

If it has done that, then pip has successfully installed it, even though you might confuse your Python executable version, and are unable to import it

Then this issue can be closed

dalerye commented 1 year ago

pip tells me that pyswisseph is installed. I FINALLY got the right directory into my PATH. Thank You.