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

Failed to build pyarrow #242

Closed
expressintegrations opened this issue Nov 16, 2022 · 5 comments
Closed

Failed to build pyarrow #242

expressintegrations opened this issue Nov 16, 2022 · 5 comments
Labels
python Pull requests that update Python code wontfix This will not be worked on

Comments

@expressintegrations
Copy link

I haven't changed anything recently in my project, but when I tried to deploy it last, I received this error in the logs: ERROR: Could not build wheels for pyarrow, which is required to install pyproject.toml-based projects

See the full log here:
log-d20114fe-3eeb-4a8d-8926-3a971882894c.txt

This is my requirements.txt:
requirements.txt

@matthewrobertson
Copy link
Member

Sorry to hear you have having trouble. From the build logs it looks like you are not specifying a Python version for your application so we are installing the latest available version, which is Python 3.11.0. It looks like pyarrow only recently landed support for 3.11, so it is likely not available in the version your app is using (see apache/arrow#14499 and streamlit/streamlit#5608). My advice is to add a .python-version file to your application root and pin to Python 3.10 for now:

3.10.x

@matthewrobertson matthewrobertson added wontfix This will not be worked on python Pull requests that update Python code labels Nov 16, 2022
@expressintegrations
Copy link
Author

Thank you so much for the explanation! I ended up setting the version in the cloud build yaml file like so:

steps:
  - name: gcr.io/k8s-skaffold/pack
    env:
      - GOOGLE_ENTRYPOINT=$_ENTRYPOINT
      - GOOGLE_RUNTIME_VERSION=$_RUNTIME_VERSION
    args:
      - build
      - '$_GCR_HOSTNAME/$PROJECT_ID/$REPO_NAME/$_SERVICE_NAME:$COMMIT_SHA'
      - '--builder=gcr.io/buildpacks/builder:v1'
      - '--network=cloudbuild'
      - '--path=.'
      - '--env=GOOGLE_ENTRYPOINT'
      - '--env=GOOGLE_RUNTIME_VERSION'

@smsohan
Copy link
Collaborator

smsohan commented Nov 16, 2022

@expressintegrations can you share a little bit about where you're deploying this container?

@expressintegrations
Copy link
Author

I am using cloud run and cloud build to deploy changes to my project synced with a git repository. I opted to use the cloud build inline yaml file to manage the build/deployment.

@smsohan
Copy link
Collaborator

smsohan commented Nov 16, 2022

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Pull requests that update Python code wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants