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

Error when installing pyswisseph using pip on python 3.12 #71

Open
hidp123 opened this issue Feb 7, 2024 · 6 comments
Open

Error when installing pyswisseph using pip on python 3.12 #71

hidp123 opened this issue Feb 7, 2024 · 6 comments

Comments

@hidp123
Copy link

hidp123 commented Feb 7, 2024

Hi, getting an error when installing pyswisseph using pip on python 3.12. On 3.11 it installs correctly. So I assume this is the cause of the error. Is there any work around or does the release need an update? Thanks

@TharakaUmayanga
Copy link

can you paste the error here ?

@hidp123
Copy link
Author

hidp123 commented Mar 12, 2024

Collecting pyswisseph
Downloading pyswisseph-2.10.3.2.tar.gz (6.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.9/6.9 MB 119.7 kB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: pyswisseph
Building wheel for pyswisseph (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for pyswisseph (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [11 lines of output]
C:\Users...\AppData\Local\Temp\pip-build-env-rlcfmrcg\overlay\Lib\site-packages\setuptools\dist.py:314: InformationOnly: Normalizing '2.10.03.2' to '2.10.3.2'
self.metadata.version = self._normalize_version(self.metadata.version)
Searching for pkg-config...
pkg-config not found
Using internal libswe
Using internal sqlite3
running bdist_wheel
running build
running build_ext
building 'swisseph' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pyswisseph
Failed to build pyswisseph
ERROR: Could not build wheels for pyswisseph, which is required to install pyproject.toml-based projects
Traceback (most recent call last):
File "", line 1, in
File "C:\Users...\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['python', '-m', 'pip', 'install', 'pyswisseph']' returned non-zero exit status 1.

@TharakaUmayanga
Copy link

I think here's the problem

error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

Download MS C++ Build Tool from here, Restart your pc and try again
https://visualstudio.microsoft.com/visual-cpp-build-tools/

@hidp123
Copy link
Author

hidp123 commented Mar 13, 2024

On python 3.11 it works, only on 3.12 it gives above error. I'll try what you mentioned.

@hidp123
Copy link
Author

hidp123 commented Mar 13, 2024

It worked, but it was like a 6GB install at the end. It looks like the pyswisseph wheel file needs to be rebuilt and re-uploaded to pypi.org for python3.12

@TharakaUmayanga
Copy link

wow.... 6GB is too much.

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

No branches or pull requests

2 participants