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

Install system packages before pip packages #11

Open
christian-safka opened this issue Sep 25, 2023 · 2 comments
Open

Install system packages before pip packages #11

christian-safka opened this issue Sep 25, 2023 · 2 comments

Comments

@christian-safka
Copy link

christian-safka commented Sep 25, 2023

      - name: Setup Cog
          uses: replicate/setup-cog@v1.0.2
          with:
             cog-version: v0.9.0-beta6

      - name: 'Build Container Image'
         run: |
          cog build -t model-name:latest --tag ghcr.io/namespace/model-name:latest

One pip package requires cmake to be installed but it seems that system packages don't finish installing before the pip install. This builds fine locally. This should be replicable by adding cmake in system packages and "dlib" in pip packages.

Any way to make those system/pip installs run synchronously after each other?

@zeke
Copy link
Member

zeke commented Sep 26, 2023

Hi thanks for the report. Can you share a bit more detail about the workflow you're running and the errors you're seeing?

This builds fine locally.

What is your local setup?

This should be replicable by adding cmake in system packages and "dlib" in pip packages

You mean in cog.yaml?

Not sure it matters, but are you using python_packages or python_requirements?

@christian-safka
Copy link
Author

Locally in a Linux VM I installed cog in my virtual environment and can build using the same 'cog build' command that fails in the Github Actions runner.

Yes, I meant in cog.yaml and I'm using python_packages

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