edoardottt / twitterbot2

Like and retweet your tweets, or search tweets by topic. It stores and serves data with a Flask webapp. 🐦 Live demo running on twitter.com/ai_testing
https://edoardoottavianelli.it
GNU General Public License v3.0
56 stars 9 forks source link

ValueError: Unrecognised argument(s): encoding #47

Closed edoardottt closed 2 years ago

edoardottt commented 2 years ago

If twitterbot2 gives you this error:

$> python3 twitterbot2.py -h
Traceback (most recent call last):
  File "http://twitterbot2.py", line 668, in <module>
    main()
  File "http://twitterbot2.py", line 581, in main
    format=http://globals.bot_user + ": %(levelname)s:%(asctime)s | %(message)s",
  File "/Library/Frameworks/Python.framework/Versions/3.x/lib/python3.x/logging/__init__.py", line 1919, in basicConfig
    raise ValueError('Unrecognised argument(s): %s' % keys)
ValueError: Unrecognised argument(s): encoding

The problem is at this line and you have two solutions: