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

SyntaxError: invalid syntax #74

Open
gitbenb opened this issue Oct 11, 2020 · 2 comments
Open

SyntaxError: invalid syntax #74

gitbenb opened this issue Oct 11, 2020 · 2 comments

Comments

@gitbenb
Copy link

gitbenb commented Oct 11, 2020

I'm trying to get feedspora to work with 1 RSS feed to Mastodon, I have followed the instructions, the wiki, it seems I'm almost there but when I run the command I'm getting this error :

$ python3 -m feedspora
Traceback (most recent call last):
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.7/dist-packages/feedspora/__main__.py", line 18, in <module>
    from feedspora.tweepy_client import TweepyClient  # @UnusedImport
  File "/usr/local/lib/python3.7/dist-packages/feedspora/tweepy_client.py", line 6, in <module>
    import tweepy
  File "/home/user2/.local/lib/python3.7/site-packages/tweepy/__init__.py", line 17, in <module>
    from tweepy.streaming import Stream, StreamListener
  File "/home/user2/.local/lib/python3.7/site-packages/tweepy/streaming.py", line 358
    def _start(self, async):
                         ^
SyntaxError: invalid syntax

Can you help pin/nudge me in the right direction to solve this ?

@aurelg
Copy link
Owner

aurelg commented Oct 11, 2020

Hi @buzzworkers. Seems like the issue is not in feedspora but in tweepy, and has been fixed. You might want to run feedspora with python 3.6.x or (most likely) to update tweepy.

@manumacron
Copy link

I got the same issue with a fresh install.

 File "/my_home/.local/lib/python3.8/site-packages/tweepy/streaming.py", line 358
     def _start(self, async):

I checked online and found that it's related with a new version of python3 :
tweepy/tweepy#1017

I follow the bypass, and replace every async with async_ and it's work (pretty well, thx u !)

According to the github repository, the current version of tweety (3.10) seems to be fix this issue

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

3 participants