Der Name 'mapingProxytype' kann nicht aus teilweise initialisierten Modultypen '(höchstwahrscheinlich aufgrund eines krePython

Python-Programme
Anonymous
 Der Name 'mapingProxytype' kann nicht aus teilweise initialisierten Modultypen '(höchstwahrscheinlich aufgrund eines kre

Post by Anonymous »

Ich habe eine Datei < /p>

Code: Select all

from enum import Enum
from typing import TypeVar

EnumType = TypeVar("EnumType", bound=Enum)
< /code>
Zeile: < /p>
import sys
from types import MappingProxyType, DynamicClassAttribute
__all__ = [
'EnumMeta',
'Enum', 'IntEnum', 'Flag', 'IntFlag',
'auto', 'unique',
]
< /code>
Fehler: < /p>
    Traceback (most recent call last):
File "/Applications/PyCharm.app/Contents/plugins/python-ce/helpers/pydev/pydevd.py", line 8, in 
from contextlib import contextmanager
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/contextlib.py", line 6, in 
from functools import wraps
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/functools.py", line 22, in 
from types import GenericAlias
File "/Users/igrachevayur/PycharmProjects/mztest/src/mztest/svc/mz_core/cid/types.py", line 1, in 
from enum import Enum
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/enum.py", line 2, in 
from types import MappingProxyType, DynamicClassAttribute

ImportError: cannot import name 'MappingProxyType' from partially initialized module 'types' (most likely due to a circular import)

Es funktioniert gut mit Poesie. Funktioniert aber nicht mit Pycharm Run. Was könnte da sein, Grund? < /P>

Code: Select all

PyCharm 2025.2.0.1

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post