-
Notifications
You must be signed in to change notification settings - Fork 413
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
Sweep: Fix importerror: cannot import name 'self' from 'typing' #259
Comments
Hey @hamero, I've started working on this issue. The plan is to add a workaround in Give me a minute! Some code snippets I looked at (click to expand). If some file is missing from here, you can mention the path in the ticket description.sweep/sweepai/utils/constants.py Lines 1 to 28 in 0fcc872
Lines 1 to 35 in 0fcc872
Lines 1 to 98 in 0fcc872
sweep/sweepai/app/api_client.py Lines 1 to 62 in 0fcc872
sweep/sweepai/core/entities.py Lines 1 to 98 in 0fcc872
I'm a bot that handles simple bugs and feature requests but I might make mistakes. Please be kind! |
Hey @hamero, I've started working on the issue you reported. The problem seems to be related to the Python version compatibility with the 'Self' attribute from the 'typing' module. I'm planning to modify the fallback logic in the 'entities.py' file to handle Python versions below 3.10. Give me a minute! Best, Some code snippets I looked at (click to expand). If some file is missing from here, you can mention the path in the ticket description.sweep/sweepai/utils/constants.py Lines 1 to 28 in 0fcc872
Lines 1 to 35 in 0fcc872
Lines 1 to 98 in 0fcc872
sweep/sweepai/app/api_client.py Lines 1 to 62 in 0fcc872
sweep/sweepai/core/entities.py Lines 1 to 98 in 0fcc872
I'm a bot that handles simple bugs and feature requests but I might make mistakes. Please be kind! |
This issue seems to come from when your python version is <3.10 |
Error: 🚫 Unable to Complete PRIf you would like to report this bug, please join our Discord. I'm a bot that handles simple bugs and feature requests but I might make mistakes. Please be kind! |
@hamero I fixed this bug a while back, just make sure you're using the latest sweep on pip. Thanks! Also in python 3.10 it will just use a generic instead of self. Less than python 3.10 is not supported right now. |
Description
when running
python sweepai/app/cli.py
Relevant files
The text was updated successfully, but these errors were encountered: