pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pyadb-3.12: AttributeError: module 'inspect' has no attribute 'getargspec'



> I installed py312-adb on a NetBSD 10.1 installation.
> 
> doas pkgin in py312-adb
> 
> I got:
> 
> $ pyadb-3.12
> Traceback (most recent call last):
>  File "/usr/pkg/bin/pyadb-3.12", line 33, in <module>
>    sys.exit(load_entry_point('adb==1.3.0', 'console_scripts', 'pyadb')())
>             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>  File "/usr/pkg/lib/python3.12/site-packages/adb/adb_debug.py", line 153, in main
>    common_cli.MakeSubparser(
>  File "/usr/pkg/lib/python3.12/site-packages/adb/common_cli.py", line 96, in MakeSubparser
>    argspec = inspect.getargspec(method)
>              ^^^^^^^^^^^^^^^^^^
> AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'?
> 
> Solved it with this:
> 
> doas sed -i_bak -e "s/getargspec(/getfullargspec(/g" /usr/pkg/lib/python3.12/site-packages/adb/common_cli.py
> 
> Then it works:
> 
> $ pyadb-3.12
> usage: pyadb-3.12 [-h] [--verbose] [--rsa_key_path ~/.android/adbkey]
> ...
> 
> I think there should be a patch or something.

This package should be updated to https://github.com/JeffLIrion/adb_shell as the original code is no longer maintained. I will look into that.

Kind regards,
Adam



Home | Main Index | Thread Index | Old Index