AttributeError: module 'attr' has no attribute 's' #25
Description
Question description
Hello,
I have been trying to get the import of todoist-api-python
working for the better part of this evening and for a few hours yesterday and cannot get it to work. Regardless of whether I install todoist-api-python
with pip3 (the project being built with a setup.py
file) or, following with the instructions here, with poetry
, I get the following error about the attr
module not having an attrribute s
.
Here's the stack trace:
(tskw-wrap-Fm2JRS3W-py3.9) (base) tskw-wrap development %
╰─> ya sync confirm
File "/Users/xxxx/code/pjct/tskw-wrap/tskwwrap/sync/tskw_sync_processor.py", line 14, in <module>
from todoist_api_python.api import TodoistAPI
File "/Users/xxxx/Library/Caches/pypoetry/virtualenvs/tskw-wrap-Fm2JRS3W-py3.9/lib/python3.9/site-packages/todoist_api_python/api.py", line 17, in <module>
from todoist_api_python.models import (
File "/Users/xxxx/Library/Caches/pypoetry/virtualenvs/tskw-wrap-Fm2JRS3W-py3.9/lib/python3.9/site-packages/todoist_api_python/models.py", line 8, in <module>
@attr.s
AttributeError: module 'attr' has no attribute 's'
I am aware that there is an attr
package that can conflict with the attrs
package and have double checked that attr
is not installed (at least not according to pip3
and poetry.
Nonetheless, I tried adding attrs
explicitly to my pyproject.toml
but it made no difference.
The dependencies in my pyproject.toml
file are:
[tool.poetry.dependencies]
python = "^3.9"
todoist-api-python = "^v1.1.0"
tasklib = "^2.3.0"
python-dotenv = "*"
tabulate = "^0.8.9"
attrs = "^21.2.0"
My configiuration:
- macos 11.5.2
- python 3.9
- poetry 1.1.12
I would be grateful for any suggestions.
Many thanks!
-TDP