You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem come from the word "types", there is a collision between the "types" in Python and "types" in racksdb project. Need to replace the word "types" in the project to solve the problem.
florian@florian:~/Desktop$ python3 ~/Desktop/racksdb_projet/racksdb/racksdb/test.py
Traceback (most recent call last):
File "/home/florian/Desktop/racksdb_projet/racksdb/racksdb/test.py", line 1, in <module>
from racksdb import RacksDB
File "/usr/lib/python3/dist-packages/racksdb/__init__.py", line 20, in <module>
from pathlib import Path
File "/usr/lib/python3.10/pathlib.py", line 1, in <module>
import fnmatch
File "/usr/lib/python3.10/fnmatch.py", line 14, in <module>
import re
File "/usr/lib/python3.10/re.py", line 124, in <module>
import enum
File "/usr/lib/python3.10/enum.py", line 2, in <module>
from types import MappingProxyType, DynamicClassAttribute
ImportError: cannot import name 'MappingProxyType' from 'types' (/home/florian/Desktop/racksdb_projet/racksdb/racksdb/types/__init__.py)
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 62, in apport_excepthook
if not enabled():
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 24, in enabled
import re
File "/usr/lib/python3.10/re.py", line 124, in <module>
import enum
File "/usr/lib/python3.10/enum.py", line 2, in <module>
from types import MappingProxyType, DynamicClassAttribute
ImportError: cannot import name 'MappingProxyType' from 'types' (/home/florian/Desktop/racksdb_projet/racksdb/racksdb/types/__init__.py)
Original exception was:
Traceback (most recent call last):
File "/home/florian/Desktop/racksdb_projet/racksdb/racksdb/test.py", line 1, in <module>
from racksdb import RacksDB
File "/usr/lib/python3/dist-packages/racksdb/__init__.py", line 20, in <module>
from pathlib import Path
File "/usr/lib/python3.10/pathlib.py", line 1, in <module>
import fnmatch
File "/usr/lib/python3.10/fnmatch.py", line 14, in <module>
import re
File "/usr/lib/python3.10/re.py", line 124, in <module>
import enum
File "/usr/lib/python3.10/enum.py", line 2, in <module>
from types import MappingProxyType, DynamicClassAttribute
ImportError: cannot import name 'MappingProxyType' from 'types' (/home/florian/Desktop/racksdb_projet/racksdb/racksdb/types/__init__.py)
The text was updated successfully, but these errors were encountered:
The problem come from the word "types", there is a collision between the "types" in Python and "types" in racksdb project. Need to replace the word "types" in the project to solve the problem.
The text was updated successfully, but these errors were encountered: