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

Poerty can't find gmp.h on M1 Mac #7246

Closed
witfyl-ravped opened this issue Dec 24, 2022 · 3 comments
Closed

Poerty can't find gmp.h on M1 Mac #7246

witfyl-ravped opened this issue Dec 24, 2022 · 3 comments
Labels
kind/question User questions (candidates for conversion to discussion)

Comments

@witfyl-ravped
Copy link

Because Homebrew can't install packages into virtual environments I am unable to install packages that depend on gmp within poetry environments.

To be clear I can instill said packages on my computer in my main environment, but not within Poetry.

For reference see the issue I opened here before I realized it was specific to Poetry:

0xSpaceShard/starknet-devnet#371

@witfyl-ravped witfyl-ravped added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Dec 24, 2022
@neersighted neersighted added kind/question User questions (candidates for conversion to discussion) and removed kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Dec 24, 2022
@neersighted
Copy link
Member

neersighted commented Dec 24, 2022

Please follow the issue template when creating an issue.

In this case, this is not a Poetry issue, but a user issue. You need to provide the correct include paths to the C compiler using CFLAGS/CXXFLAGS/LDFLAGS. Poetry only invokes a wheel build; it is the user's role to ensure that their environment is set up in such a way that the toolchain of the native extensions being built can locate their dependencies.

@witfyl-ravped
Copy link
Author

witfyl-ravped commented Dec 24, 2022

Thank you, this worked for me:

export LDFLAGS=-L/opt/homebrew/lib export CPPFLAGS=-I/opt/homebrew/include

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/question User questions (candidates for conversion to discussion)
Projects
None yet
Development

No branches or pull requests

2 participants