Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1028563: nyx: Does not work with python 3.11 anymore

47 views
Skip to first unread message

Achim Schaefer

unread,
Jan 12, 2023, 3:40:04 PM1/12/23
to
Package: nyx
Version: 2.1.0-2.1
Severity: important
X-Debbugs-Cc: bts.deb...@schaefer-home.eu

Hi,

I just installed python 3.11, and now I get teh follwoing when starting
nyx:
Traceback (most recent call last):
File "/usr/bin/nyx", line 33, in <module>
sys.exit(load_entry_point('nyx==2.1.0', 'console_scripts', 'nyx')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/nyx/__init__.py", line 176, in main
nyx.starter.main()
File "/usr/lib/python3/dist-packages/stem/util/conf.py", line 288, in wrapped
if 'config' in inspect.getargspec(func).args:
^^^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'?



-- System Information:
Debian Release: bookworm/sid
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (200, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.0.0-6-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de:en_GB:en_US
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages nyx depends on:
ii python3 3.11.1-1
ii python3-pkg-resources 65.6.3-1
ii python3-stem 1.8.1-1.1

nyx recommends no packages.

Versions of packages nyx suggests:
ii tor 0.4.7.12-1

-- no debconf information

Nilesh Patra

unread,
Jan 21, 2023, 1:50:04 PM1/21/23
to
On Thu, 12 Jan 2023 21:28:54 +0100 Achim Schaefer <bts.deb...@schaefer-home.eu> wrote:
> Package: nyx
> Version: 2.1.0-2.1
> Severity: important
> X-Debbugs-Cc: bts.deb...@schaefer-home.eu
>
> Hi,
>
> I just installed python 3.11, and now I get teh follwoing when starting
> nyx:
> Traceback (most recent call last):
> File "/usr/bin/nyx", line 33, in <module>
> sys.exit(load_entry_point('nyx==2.1.0', 'console_scripts', 'nyx')())
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/usr/lib/python3/dist-packages/nyx/__init__.py", line 176, in main
> nyx.starter.main()
> File "/usr/lib/python3/dist-packages/stem/util/conf.py", line 288, in wrapped
> if 'config' in inspect.getargspec(func).args:
> ^^^^^^^^^^^^^^^^^^
> AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'?

This was an issue with python-stem. Could you try to run nyx with python3-stem 1.8.1-2.1 version
and see if this work for you?

Thanks,
Nilesh

catchall

unread,
Jan 21, 2023, 4:10:03 PM1/21/23
to
Hi,

agreed I can start again, and it show the grapf again (defaul no nxyrc
file).
I can even use the left and right arrows.

But when hiiting arrow down (or up) I still get a traceback:
nyx
Traceback (most recent call last):
  File "/usr/bin/nyx", line 33, in <module>
    sys.exit(load_entry_point('nyx==2.1.0', 'console_scripts', 'nyx')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/nyx/__init__.py", line 176, in main
    nyx.starter.main()
  File "/usr/lib/python3/dist-packages/stem/util/conf.py", line 289, in
wrapped
    return func(*args, config = config, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/nyx/starter.py", line 128, in main
    nyx.curses.start(nyx.draw_loop, acs_support =
config.get('acs_support', True), transparent_background = True, cursor =
False)
  File "/usr/lib/python3/dist-packages/nyx/curses.py", line 219, in start
    curses.wrapper(_wrapper)
  File "/usr/lib/python3.11/curses/__init__.py", line 94, in wrapper
    return func(stdscr, *args, **kwds)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/nyx/curses.py", line 217, in
_wrapper
    function()
  File "/usr/lib/python3/dist-packages/nyx/__init__.py", line 243, in
draw_loop
    keybinding.handle(key)
  File "/usr/lib/python3/dist-packages/nyx/panel/__init__.py", line 81,
in handle
    if inspect.getargspec(self._action).args == ['key']:
       ^^^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'getargspec'. Did you
mean: 'getargs'?

Regards

Achim

Nilesh Patra

unread,
Jan 21, 2023, 5:10:04 PM1/21/23
to
Control: severity -1 serious

Hi,

On 1/22/23 02:04, catchall wrote:
> agreed I can start again, and it show the grapf again (defaul no nxyrc file).
> I can even use the left and right arrows.
>
> But when hiiting arrow down (or up) I still get a traceback:
> nyx
> [...]

I uploaded a new changelog revision (2.1.0-2.2) -- it should make it to the mirror after
a few hours (I think 6-7 hours usually)
Could you please check with this?
Have marked this bug as closed in changelog, but please do reply to this mail with
whatever you observe.

If it still fails, we'll reopen this bug report.

Thank you
Nilesh
0 new messages