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

Generator expression must be parenthesized #40

Open
YorozuyaDev opened this issue Jan 21, 2020 · 6 comments
Open

Generator expression must be parenthesized #40

YorozuyaDev opened this issue Jan 21, 2020 · 6 comments

Comments

@YorozuyaDev
Copy link

I am currently using python 3.8, Django 3.0.2 thorn 1.5.2 in Arch Linux. When I try to import thorn to my script it returns following error:

Traceback (most recent call last):
  File "authbot.py", line 10, in <module>
    from thorn import ModelEvent, webhook_model
  File "/home/yorozuya3/Desktop/authtelegrambot/env/lib/python3.8/site-packages/thorn/__init__.py", line 9, in <module>
    from .events import Event, ModelEvent
  File "/home/yorozuya3/Desktop/authtelegrambot/env/lib/python3.8/site-packages/thorn/events.py", line 282
    '__now_' in k for k in keys(self.filter_fields),
    ^
SyntaxError: Generator expression must be parenthesized
@camrail
Copy link

camrail commented Feb 13, 2020

Had the same issue, looks like this only works with python 3.6 at present

@LikoIlya
Copy link

Same for me(

@aadithpm
Copy link

Currently building something with Python 3.6, Django 1.10 and Django REST Framework 3.8.2. I stuck with 1.10 since that seems to be the last documented version that they said they support.

I do eventually plan to move away from this though since I'm not sure how development looks down the line for this.

@camrail
Copy link

camrail commented Jun 25, 2020

Currently building something with Python 3.6, Django 1.10 and Django REST Framework 3.8.2. I stuck with 1.10 since that seems to be the last documented version that they said they support.

I do eventually plan to move away from this though since I'm not sure how development looks down the line for this.

I am using Django 2.0.1 and it's working okay

@aadithpm
Copy link

Currently building something with Python 3.6, Django 1.10 and Django REST Framework 3.8.2. I stuck with 1.10 since that seems to be the last documented version that they said they support.
I do eventually plan to move away from this though since I'm not sure how development looks down the line for this.

I am using Django 2.0.1 and it's working okay

Ah, thanks for the information. I'll try updating and check if it doesn't break anything else.

@ardoshi
Copy link

ardoshi commented Nov 18, 2020

Hello,
I'm using Python 3.9.0, Django 3.1.3 and Django Rest Framework 3.12.2
I am unable to resolve the following error:

File "\site-packages\thorn_state.py", line 6, in
from vine.five import monotonic
ModuleNotFoundError: No module named 'vine.five'

Is there some way to solve this other than going lower on all the versions?

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

5 participants