RedditVideoMakerBot icon indicating copy to clipboard operation
RedditVideoMakerBot copied to clipboard

SyntaxError: invalid syntax

Open Abdulai123 opened this issue 3 years ago • 4 comments

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Traceback (most recent call last): File "main.py", line 9, in from reddit.subreddit import get_subreddit_threads File "/home/abdulai/bot/RedditVideoMakerBot-master/reddit/subreddit.py", line 44 match e.response.status_code: ^ SyntaxError: invalid syntax

System (please complete the following information):

  • Python Version: [e.g. Python 3.6]
  • OS: [e.g. Windows 11]
  • App version / Branch [e.g. latest, V2.0, master, develop ]

Additional context Add any other context about the problem here.

Abdulai123 avatar Aug 15 '22 19:08 Abdulai123

This is because match is not supported by python 3.9. The error is fixed in the develop branch and will soon be committed to master. You can wait for it to be committed or just use the develop branch

funkyrice avatar Aug 15 '22 22:08 funkyrice

This is because match is not supported by python 3.9. The error is fixed in the develop branch and will soon be committed to master. You can wait for it to be committed or just use the develop branch

Thank you for your explanation! You can also update to python 3.10

OpenSourceSimon avatar Aug 16 '22 16:08 OpenSourceSimon

This is because match is not supported by python 3.9. The error is fixed in the develop branch and will soon be committed to master. You can wait for it to be committed or just use the develop branch

How to use the develop branch?

Freddy1547 avatar Aug 17 '22 19:08 Freddy1547

Press the button 'master' like from the image. https://user-images.githubusercontent.com/65854503/185229406-2246e339-e7e5-4f1f-93bc-79416e401939.png Then press the develop branch and download as an zip.

OpenSourceSimon avatar Aug 17 '22 19:08 OpenSourceSimon

This issue is stale because it has been open 7 days with no activity. Remove stale label or comment, or this will be closed in 10 days.

github-actions[bot] avatar Aug 24 '22 02:08 github-actions[bot]

Issue closed due to being stale. Please reopen if issue persists in latest version.

github-actions[bot] avatar Sep 06 '22 00:09 github-actions[bot]