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

cannot import name 'cached_property' from 'functools' #9

Closed
flatsiedatsie opened this issue Feb 25, 2021 · 3 comments
Closed

cannot import name 'cached_property' from 'functools' #9

flatsiedatsie opened this issue Feb 25, 2021 · 3 comments

Comments

@flatsiedatsie
Copy link

I can't seem to import the library succesfully under python 3.7

pi@gateway:~ $ python3
Python 3.7.3 (default, Jul 25 2020, 13:03:44) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import thingtalk
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/pi/.local/lib/python3.7/site-packages/thingtalk/__init__.py", line 4, in <module>
    from .models.action import Action
  File "/home/pi/.local/lib/python3.7/site-packages/thingtalk/models/action.py", line 3, in <module>
    from functools import cached_property
ImportError: cannot import name 'cached_property' from 'functools' (/usr/lib/python3.7/functools.py)
>>> 
@hidaris
Copy link
Owner

hidaris commented Feb 26, 2021

@flatsiedatsie My bad, cached_property was only introduced from python 3.8.

@flatsiedatsie
Copy link
Author

No worries. The Raspberry Pi image is still at version 3.7.

@hidaris
Copy link
Owner

hidaris commented Mar 29, 2021

Already fixed.

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

2 participants