-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
AttributeError: module 'attr' has no attribute 's' #99
Comments
Please give a look at the FAQ section of the README |
Ah yes ;) I saw this comment in another issue, why I returned here in the first place. |
Unfortunately on my system running the commands as in does not help: $ pip uninstall attr attrs
Found existing installation: attr 0.3.2
Uninstalling attr-0.3.2:
Would remove:
/home/yala/.local/lib/python3.10/site-packages/attr-0.3.2.dist-info/*
/home/yala/.local/lib/python3.10/site-packages/attr.py
/home/yala/.local/lib/python3.10/site-packages/dry_attr.py
Proceed (Y/n)?
Successfully uninstalled attr-0.3.2
Found existing installation: attrs 21.2.0
Not uninstalling attrs at /usr/lib/python3/dist-packages, outside environment /usr
Can't uninstall 'attrs'. No files were found to uninstall.
$ pip install attr
Defaulting to user installation because normal site-packages is not writeable
Collecting attr
Using cached attr-0.3.2-py2.py3-none-any.whl (3.3 kB)
Installing collected packages: attr
Successfully installed attr-0.3.2
$ pip install -U kb-manager
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: kb-manager in /home/yala/.local/lib/python3.10/site-packages (0.1.7)
Requirement already satisfied: colored in /home/yala/.local/lib/python3.10/site-packages (from kb-manager) (1.4.3)
Requirement already satisfied: gitpython in /home/yala/.local/lib/python3.10/site-packages (from kb-manager) (3.1.27)
Requirement already satisfied: attrs in /usr/lib/python3/dist-packages (from kb-manager) (21.2.0)
Requirement already satisfied: toml in /usr/lib/python3/dist-packages (from kb-manager) (0.10.2)
Requirement already satisfied: attr in /home/yala/.local/lib/python3.10/site-packages (from kb-manager) (0.3.2)
Requirement already satisfied: gitdb<5,>=4.0.1 in /home/yala/.local/lib/python3.10/site-packages (from gitpython->kb-manager) (4.0.9)
Requirement already satisfied: smmap<6,>=3.0.1 in /home/yala/.local/lib/python3.10/site-packages (from gitdb<5,>=4.0.1->gitpython->kb-manager) (5.0.0)
$ kb list
Traceback (most recent call last):
File "/home/yala/.local/bin/kb", line 5, in <module>
from kb.main import main
File "/home/yala/.local/lib/python3.10/site-packages/kb/main.py", line 19, in <module>
from kb.commands.add import add
File "/home/yala/.local/lib/python3.10/site-packages/kb/commands/add.py", line 19, in <module>
import kb.db as db
File "/home/yala/.local/lib/python3.10/site-packages/kb/db.py", line 21, in <module>
from kb.entities.artifact import Artifact
File "/home/yala/.local/lib/python3.10/site-packages/kb/entities/artifact.py", line 18, in <module>
@attr.s(auto_attribs=True, frozen=True, slots=True)
AttributeError: module 'attr' has no attribute 's' Please note that This might be an issue with my Python environment, after all. I should try reproducing this within a dedicated |
Wait there is no attrs installed? Yes please retry with a clean environment. |
Apparently,
Working with a dedicated environment seems advisable here, as you suggest. |
Still / again an issue:
Working with a dedicated environment for this one tool is not a viable solution—especially considering its purpose. I'm wondering if this is a python bug, as my system has attr and attrs both installed, one via local pip and the other via the system.
|
Verified: There's something off about python3 the way it is "shipped" by Fedora With
(uninstall
|
Expected Behavior
kb
runs.Actual Behavior
Executing
kb
yields:Steps to Reproduce the Problem
pip install -U kb-manager
kb
Specifications
The text was updated successfully, but these errors were encountered: