Closed Pavan-Devara closed 5 years ago
Try downgrading to 1.1.0
Actualmente la librería trabaja con Python3, prueba creando un entorno y prueba nuevamente
sudo apt-get install python3-venv -y
I have had the same problem on both 1.2 and 1.1 Errors out on: logger.info(f"Got user information from username {user}") with a syntax error
I solved this problem by downgrading to 1.1 and creating a new virtualenv that uses python 3.6 f-strings (for example: f"Got user information from username {user}") are not a thing in python 3.5
This issue should be fixed in version 1.3.1 where the two uses of f-strings have been replaced with string.format()
Traceback (most recent call last): File "/home/pavan/.local/bin/twitterscraper", line 9, in
load_entry_point('twitterscraper==1.2.0', 'console_scripts', 'twitterscraper')()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 542, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2569, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2229, in load
return self.resolve()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2235, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "build/bdist.linux-x86_64/egg/twitterscraper/init.py", line 13, in
File "/home/pavan/.local/lib/python2.7/site-packages/twitterscraper-1.2.0-py2.7.egg/twitterscraper/query.py", line 306
logger.info(f"Got user information from username {user}")
^
SyntaxError: invalid syntax