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
zeep version: 4.2.1 (but the issues occurs with version 4.0.0 too)
To reproduce this issue, just create a file zeep_problem.py with e.g. this import from zeep.exceptions import Fault. This issue happens because there's a class Settings in zeep/settings.py (https://github.com/mvantellingen/python-zeep/blob/main/src/zeep/settings.py) with the decorator @attr.s(slots=True), then run pytest zeep_problem.py
Python version 3.11.2 (this also happens with 3.11.5), both installed with pyenv
Pytest 6.2.5
MacOS: 13.5.1 (22G90) (M1)
Logs
____________________________________________________________________________________________________ ERROR collecting test session _____________________________________________________________________________________________________
../../.pyenv/versions/3.11.5/lib/python3.11/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
???
<frozen importlib._bootstrap>:1176: in _find_and_load
???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:690: in _load_unlocked
???
../../Library/Caches/pypoetry/virtualenvs/mypackage-dyX6J5JG-py3.11/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:170: in exec_module
exec(co, module.__dict__)
zeep_problem.py:2: in <module>
from zeep.exceptions import Fault
../../Library/Caches/pypoetry/virtualenvs/mypackage-dyX6J5JG-py3.11/lib/python3.11/site-packages/zeep/__init__.py:1: in <module>
from zeep.client import AsyncClient, CachingClient, Client
../../Library/Caches/pypoetry/virtualenvs/mypackage-dyX6J5JG-py3.11/lib/python3.11/site-packages/zeep/client.py:5: in <module>
from zeep.settings import Settings
../../Library/Caches/pypoetry/virtualenvs/mypackage-dyX6J5JG-py3.11/lib/python3.11/site-packages/zeep/settings.py:7: in <module>
@attr.s(slots=True)
../../Library/Caches/pypoetry/virtualenvs/mypackage-dyX6J5JG-py3.11/lib/python3.11/site-packages/attr/_make.py:1381: in wrap
return builder.build_class()
../../Library/Caches/pypoetry/virtualenvs/mypackage-dyX6J5JG-py3.11/lib/python3.11/site-packages/attr/_make.py:655: in build_class
return self._create_slots_class()
../../Library/Caches/pypoetry/virtualenvs/mypackage-dyX6J5JG-py3.11/lib/python3.11/site-packages/attr/_make.py:778: in _create_slots_class
set_closure_cell(cell, cls)
../../Library/Caches/pypoetry/virtualenvs/mypackage-dyX6J5JG-py3.11/lib/python3.11/site-packages/attr/_compat.py:109: in just_warn
warnings.warn(
E RuntimeWarning: Running interpreter doesn't sufficiently support code object introspection. Some features like bare super() or accessing __class__ will not work with slotted classes.
Info
4.2.1
(but the issues occurs with version 4.0.0 too)zeep_problem.py
with e.g. this importfrom zeep.exceptions import Fault
. This issue happens because there's a classSettings
inzeep/settings.py
(https://github.com/mvantellingen/python-zeep/blob/main/src/zeep/settings.py) with the decorator@attr.s(slots=True)
, then runpytest zeep_problem.py
pyenv
Logs
Related issues
The text was updated successfully, but these errors were encountered: