Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#58476 - [libsmbios] Python imports are pointing to wrong directory
Attached to Project:
Arch Linux
Opened by David White (dwhite54) - Sunday, 06 May 2018, 19:38 GMT
Last edited by Doug Newgard (Scimmia) - Tuesday, 08 May 2018, 03:20 GMT
Opened by David White (dwhite54) - Sunday, 06 May 2018, 19:38 GMT
Last edited by Doug Newgard (Scimmia) - Tuesday, 08 May 2018, 03:20 GMT
|
DetailsDescription:
Python imports broken for all smbios-* commands in /usr/bin After changing these two lines in each smbios-* command, things are fixed: old: pythondir=os.path.join(os.path.dirname(os.path.realpath(sys.argv[0])), "..", "python") clidir=os.path.join(os.path.dirname(os.path.realpath(sys.argv[0])), "..", "py-cli") new: pythondir=os.path.join(os.path.dirname(os.path.realpath(sys.argv[0])), "../share/smbios-utils") clidir=os.path.join(os.path.dirname(os.path.realpath(sys.argv[0])), "../share/smbios-utils") Additional info: * package version: latest * config: default Steps to reproduce: $ pacman -S libsmbios $ smbios-sys-info Traceback (most recent call last): File "/usr/bin/smbios-token-ctl", line 36, in <module> import cli ModuleNotFoundError: No module named 'cli' |
This task depends upon
Or, if this must be done by someone else, please change the summary to "Python imports are pointing to wrong directory."
I would also be happy to change "package version" to "2.4.1-1"