Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 942871 - net-misc/nyx crashes after pressing s key or down arrow (possibly more)
Summary: net-misc/nyx crashes after pressing s key or down arrow (possibly more)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL: https://github.com/torproject/nyx/iss...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2024-11-04 11:49 UTC by Dennis Lichtenthäler
Modified: 2024-11-06 10:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to replace getargspec() with getfullargspec() (nyx-getargspec-python311.patch,455 bytes, patch)
2024-11-04 11:50 UTC, Dennis Lichtenthäler
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Lichtenthäler 2024-11-04 11:49:44 UTC
The package is seemingly no longer compatible with python-3.11 which removed `getargspec()` in favor of `getfullargspec()`. The attached patch (tested as a user patch for a while) fixes the problem.

Reproducible: Always

Steps to Reproduce:
1. Install and start net-misc/nyx-2.1.0-r6
2. Press the `down` arrow key
Actual Results:  
AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'?

Expected Results:  
No crash...
Comment 1 Dennis Lichtenthäler 2024-11-04 11:50:51 UTC
Created attachment 907848 [details, diff]
Patch to replace getargspec() with getfullargspec()
Comment 2 Larry the Git Cow gentoo-dev 2024-11-06 10:47:12 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=585c470519cdd7f0b27dd465d96f8a7b3ed03b59

commit 585c470519cdd7f0b27dd465d96f8a7b3ed03b59
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-11-06 10:37:13 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-11-06 10:46:51 +0000

    net-misc/nyx: fix Python 3.11 compat
    
    Closes: https://bugs.gentoo.org/942871
    Signed-off-by: Sam James <sam@gentoo.org>

 net-misc/nyx/files/nyx-2.1.0-py311.patch                  | 11 +++++++++++
 net-misc/nyx/{nyx-2.1.0-r6.ebuild => nyx-2.1.0-r7.ebuild} |  4 ++++
 2 files changed, 15 insertions(+)
Comment 3 Larry the Git Cow gentoo-dev 2024-11-06 10:57:09 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12e0d03f6077358c006ca608475929c19e6a193f

commit 12e0d03f6077358c006ca608475929c19e6a193f
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-11-06 10:52:42 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-11-06 10:52:42 +0000

    net-misc/nyx: add references to patch
    
    Bug: https://bugs.gentoo.org/942871
    Signed-off-by: Sam James <sam@gentoo.org>

 net-misc/nyx/files/nyx-2.1.0-py311.patch | 2 ++
 1 file changed, 2 insertions(+)