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

Gmpy2 causes installation issues downstream #46

Open
ajdapretnar opened this issue Apr 28, 2020 · 24 comments
Open

Gmpy2 causes installation issues downstream #46

ajdapretnar opened this issue Apr 28, 2020 · 24 comments

Comments

@ajdapretnar
Copy link

#44 introduces gmpy2 dependency, which causes major issues downstream. Error:
src/gmpy.h:252:20: fatal error: mpfr.h: No such file or directory
gmpy2 doesn't seem to be pip installable, at least not on OSX.

@1e0ng
Copy link
Owner

1e0ng commented Apr 28, 2020

@bebound Could you help take a look?

@bebound
Copy link
Contributor

bebound commented Apr 29, 2020

I'm using macOS, and I have no issue installing gmpy2
Some said it can be installed following these steps, can you check this please? @ajdapretnar

brew install gmp
brew install mpfr
brew install libmpc
pip install gmpy2

@ajdapretnar
Copy link
Author

Perhaps, but in our project we can't be brew-installing additional dependencies on users' systems. 😞 It's only pip and/or conda we can use. I am on High Sierra 10.13.6. I'll ask my colleagues to try the same and see if they experience the same problem.

@ajdapretnar
Copy link
Author

I have asked them and those that don't have many build utilities installed weren't able to install it. Those that do - no problem. I think a solution would be to provide a Mac build.

@bebound
Copy link
Contributor

bebound commented Apr 29, 2020

gmpy2 depend on these computation library, so these library need to be installed when python tries to compile and install the package.

wheel should be able so solve this problem. https://github.com/pypa/manylinux. Maybe we can provide the wheel format package.

@bebound
Copy link
Contributor

bebound commented Apr 29, 2020

Which python are you using? I'm trying to build a wheel, can you help test whether it works?

@1e0ng
Copy link
Owner

1e0ng commented Apr 29, 2020

I just now uploaded wheel packages for the most recent version 1.10.1 https://pypi.org/project/simhash/1.10.1/#files
Can you try if it works? @ajdapretnar Thanks.

@ajdapretnar
Copy link
Author

I am using Py3.8 and Py3.6. I've tried it and it doesn't work. 😞 I appreciate your effort!

@bebound
Copy link
Contributor

bebound commented Apr 29, 2020

Seems we can only pre-compile this project's C dependencies with wheel.

gmpy2 only provides wheel for windows, and Conda provide gmpy2 package.
pip user has to install these package manually:

apt-get install libgmp-dev
apt-get install libmpfr-dev
apt-get install libmpc-dev

aleaxit/gmpy#227

@bebound
Copy link
Contributor

bebound commented Apr 29, 2020

I built a gmpy2 wheel, can you check if this works?
Change the suffix from zip to whl, and python3.6 -m pip install gmpy2-2.1.0b5-cp36-cp36m-manylinux2014_x86_64.whl.

gmpy2-2.1.0b5-cp36-cp36m-manylinux2014_x86_64.zip

@ajdapretnar
Copy link
Author

I tried, but this seems like a Linux wheel and I am on OSX. Anyhow, it reports wheel not supported on this platform.

@bebound
Copy link
Contributor

bebound commented May 1, 2020

@1e0ng
Copy link
Owner

1e0ng commented May 1, 2020

@bebound I'll revert the change of GMP first. Let's find a way to resolve this thoroughly later.

@bebound
Copy link
Contributor

bebound commented May 1, 2020 via email

@ajdapretnar
Copy link
Author

Yes, it works. 🙌

@bebound
Copy link
Contributor

bebound commented May 1, 2020 via email

@1e0ng
Copy link
Owner

1e0ng commented Jun 1, 2020

Hi @bebound I see your pull request has been merged, so just curious, any plan on this? 😄

@bebound
Copy link
Contributor

bebound commented Jun 1, 2020

The wheels can be found here: https://github.com/aleaxit/gmpy/actions/runs/97828599, but this has not been uploaded to pypi.

PS: It seems the maintainer has trouble with windows pip install.

@slel
Copy link

slel commented Sep 16, 2020

in our project we can't be brew-installing additional dependencies
on users' systems. It's only pip and/or conda we can use.

One can conda install gmpy2 via the conda-forge channel.

@bebound
Copy link
Contributor

bebound commented Dec 22, 2021

gmpy has wheels on pypi now, would you like to use gmpy2 now? @1e0ng

@1e0ng
Copy link
Owner

1e0ng commented Dec 23, 2021

Sure, @bebound would you like to create a pull request?

@bebound
Copy link
Contributor

bebound commented Dec 24, 2021

Okay.

@bebound
Copy link
Contributor

bebound commented Dec 25, 2021

I found there is no wheels for MacBook with Apple Silicon. I'll make the wheel first and create PR later.

@bebound
Copy link
Contributor

bebound commented Jan 6, 2022

I've create #67

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

4 participants