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

Runtime error: "AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'?" - from source code, on Manjaro #28

Open
peter-lyons-kehl opened this issue Mar 10, 2024 · 1 comment

Comments

@peter-lyons-kehl
Copy link

peter-lyons-kehl commented Mar 10, 2024

Hi Stuart @stuartlangridge, FYI Jeffrey @jbouter,

Summary: Error message exact as in #27, BUT with a different stack trace. Running from current main (5d62c2a), on current Manjaro x64 Linux (after I've uninstalled the AUR-packed installation from #27). Same OS as in #27 (Python 3.11.7).

❯ git clone https://github.com/stuartlangridge/hushboard
Cloning into 'hushboard'...
remote: Enumerating objects: 175, done.
...

❯ cd hushboard/

❯ python3 -m hushboard
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/share/pkehl/GIT/hushboard/hushboard/__main__.py", line 7, in <module>
    from . import pulsectl
  File "/share/pkehl/GIT/hushboard/hushboard/pulsectl.py", line 334, in <module>
    class Pulse(object):
  File "/share/pkehl/GIT/hushboard/hushboard/pulsectl.py", line 604, in Pulse
    card_profile_set_by_index = _pulse_method_call(
                                ^^^^^^^^^^^^^^^^^^^
  File "/share/pkehl/GIT/hushboard/hushboard/pulsectl.py", line 596, in _pulse_method_call
    func_args = list(inspect.getargspec(func or (lambda: None)))
                     ^^^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'?

I DO have the following Python modules installed already with Pacman/pamac, from Arch/Manjaro ("extra" repository):

python-cairo 1.26.0-1
python-gobject 3.46.0-1
python-six 1.16.0-8
python-xlib 0.33-2

Note that the above versions are ones of AUR packages. Usually they are the same as the actual library/software version, but they may vary. If you'd like me to check anything, suggest commands, please.

@rrthomas
Copy link

#30 fixes this.

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

2 participants