JustAnotherArchivist / snscrape

A social networking service scraper in Python
GNU General Public License v3.0
4.31k stars 698 forks source link

AttributeError: module 'functools' has no attribute 'cached_property' #75

Closed globaldigitalcitizenshiplab closed 3 years ago

globaldigitalcitizenshiplab commented 3 years ago

Just cloned the latest snscrape and got the following error:

import snscrape.modules File "C:\Users\Luna\Anaconda3\lib\site-packages\snscrape-0.3.5.dev38+gc0ff663-py3.7.egg\snscrape\modules__init__.py", line 3, in import snscrape.base File "C:\Users\Luna\Anaconda3\lib\site-packages\snscrape-0.3.5.dev38+gc0ff663-py3.7.egg\snscrape\base.py", line 55, in class Scraper: File "C:\Users\Luna\Anaconda3\lib\site-packages\snscrape-0.3.5.dev38+gc0ff663-py3.7.egg\snscrape\base.py", line 75, in Scraper @functools.cached_property AttributeError: module 'functools' has no attribute 'cached_property'

Is Python 3.8 necessary to use snscrape? I am tied to using Python 3.7 due to another module.

globaldigitalcitizenshiplab commented 3 years ago

Uninstalled & reinstalled latest again, and that seemed to fix the issue.

JustAnotherArchivist commented 3 years ago

Yes, Python 3.8 is required for the current development version of snscrape (see classifiers in setup.py).