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

Can't install transformers from sources using poetry #3982

Closed
simonepri opened this issue Apr 26, 2020 · 2 comments
Closed

Can't install transformers from sources using poetry #3982

simonepri opened this issue Apr 26, 2020 · 2 comments
Labels

Comments

@simonepri
Copy link

simonepri commented Apr 26, 2020

🐛 Bug

When installing transformers from sources using poetry

poetry add git+https://github.com/huggingface/transformers.git

The following exception is thrown:

[InvalidRequirement]
Invalid requirement, parse error at "'extra =='"

This is a problem on poetry side. The issue here is just to cross-link the problem.

Ref: python-poetry/poetry#2326

@simonepri
Copy link
Author

In the meantime as a workaround, you can do the following:

  1. Fork huggingface/transformers
  2. On your fork remove this line
    "isort @ git+git://github.com/timothycrosley/isort.git@e63ae06ec7d70b06df9e528357650281a3d3ec22#egg=isort",
  3. Install your fork with poetry

@stale
Copy link

stale bot commented Jul 1, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jul 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant