Skip to content
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

RuntimeWarning: Running interpreter doesn't sufficiently support code object introspection #1390

Open
nbro10 opened this issue Sep 12, 2023 · 0 comments

Comments

@nbro10
Copy link

nbro10 commented Sep 12, 2023

Info

  1. zeep version: 4.2.1 (but the issues occurs with version 4.0.0 too)
  2. 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
  3. Python version 3.11.2 (this also happens with 3.11.5), both installed with pyenv
  4. Pytest 6.2.5
  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.

Related issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant