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

[BUG] urwid warns for its own import #644

Closed
2 tasks done
Julian opened this issue Sep 28, 2023 · 0 comments · Fixed by #645
Closed
2 tasks done

[BUG] urwid warns for its own import #644

Julian opened this issue Sep 28, 2023 · 0 comments · Fixed by #645
Labels

Comments

@Julian
Copy link
Contributor

Julian commented Sep 28, 2023

Description:

Importing urwid produces a deprecation warning saying not to import urwid.wimp -- but it's imported by urwid itself :)

Affected versions (if applicable)
  • master branch (b79afaf)
  • Latest stable version from pypi
Steps to reproduce (if applicable)

python3.11 -m venv venv; venv/bin/python -m pip install --quiet urwid && venv/bin/python -W error -c 'import urwid'

Expected/actual outcome

Produces:

⊙  python3.11 -m venv venv; venv/bin/python -m pip install --quiet urwid && venv/bin/python -W error -c 'import urwid'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/julian/Desktop/venv/lib/python3.11/site-packages/urwid/__init__.py", line 76, in <module>
    from urwid.event_loop import AsyncioEventLoop, EventLoop, ExitMainLoop, MainLoop, SelectEventLoop
  File "/Users/julian/Desktop/venv/lib/python3.11/site-packages/urwid/event_loop/__init__.py", line 7, in <module>
    from .main_loop import MainLoop
  File "/Users/julian/Desktop/venv/lib/python3.11/site-packages/urwid/event_loop/main_loop.py", line 36, in <module>
    from urwid.wimp import PopUpTarget
  File "/Users/julian/Desktop/venv/lib/python3.11/site-packages/urwid/wimp.py", line 17, in <module>
    warnings.warn(
DeprecationWarning: 'urwid.wimp' is not expected to be imported directly. Please use public access from "urwid" package. Module 'urwid.wimp' is deprecated and will be removed in the future.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant