robinhood / thorn

Easy Webhooks for Python
Other
525 stars 60 forks source link

Generator expression must be parenthesized #40

Open YorozuyaDev opened 4 years ago

YorozuyaDev commented 4 years ago

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 commented 4 years ago

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

LikoIlya commented 4 years ago

Same for me(

aadithpm commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 3 years ago

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?