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

document how to install git-hosted python packages #1383

Merged
merged 1 commit into from
Dec 22, 2023

Conversation

zeke
Copy link
Member

@zeke zeke commented Nov 17, 2023

This PR adds some documention for people who are using git-based Python dependencies. This used to work, but we switched to using a slimmer image that doesn't include git in #1214

Resolves #1381

@technillogue
Copy link
Contributor

technillogue commented Nov 17, 2023

I don't think this is necessary in latest versions of cog, it was fixed in #1233 and released in https://github.com/replicate/cog/releases/tag/v0.9.0-beta1

@yondonfu
Copy link

@technillogue

I don't think this is necessary in latest versions of cog

FYI I'm on cog v0.9.0-beta11 and I seem to still be running into the issue described in #1381. In my case, I have a git clone command under the run key in my cog.yaml and cog build fails when it reaches that line complaining that git could not be found. I added git under system_packages to fix the issue.

See cog --version output below:

cog version 0.9.0-beta11 (built 2023-11-28T17:38:26Z)

@zeke
Copy link
Member Author

zeke commented Dec 22, 2023

Thanks for the heads-up, @yondonfu. Maybe we should just land this documentation as it does apply to some versions of Cog that are out there in the wild, apparently including the latest versions.

@zeke zeke merged commit 66ddabf into main Dec 22, 2023
13 checks passed
@zeke zeke deleted the document-how-to-install-git-hosted-python-packages branch December 22, 2023 05:32
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

Successfully merging this pull request may close these issues.

Unable to install a git-hosted Python package in cog.yaml
3 participants