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

smbios-sys-info-lite works but not smbios-sys-info #75

Open
juanitotc opened this issue Sep 17, 2019 · 0 comments
Open

smbios-sys-info-lite works but not smbios-sys-info #75

juanitotc opened this issue Sep 17, 2019 · 0 comments
Labels

Comments

@juanitotc
Copy link

Using libsmbios-2.4.2, "make install" installs /usr/local/share/smbios-utils/cli.py, but python does not find it in this location:

smbios-lcd-brightness
Traceback (most recent call last):
File "/usr/local/sbin/smbios-lcd-brightness", line 32, in
import cli
ModuleNotFoundError: No module named 'cli'

After copying cli.py to /usr/local/lib/python3.6/site-packages/ then things start to work:

$ sudo smbios-sys-info-lite
Libsmbios: 2.4.2
System ID: 0x05CA
Service Tag: 2FDPF12
Express Service Code: 5283578198
Asset Tag: Not Specified
Product Name: Latitude E7240
BIOS Version: A27
Vendor: Dell Inc.
Is Dell: 1
...

..but
$ sudo smbios-sys-info
Traceback (most recent call last):
File "/usr/local/sbin/smbios-sys-info", line 132, in
sys.exit( main() )
File "/usr/local/sbin/smbios-sys-info", line 86, in main
cli.setup_std_options(options)
File "/usr/local/lib/python3.6/site-packages/cli.py", line 85, in setup_std_options
setupLogging(options.logconfig, options.verbosity, options.trace)
File "/usr/local/lib/python3.6/site-packages/cli.py", line 93, in setupLogging
logging.config.fileConfig(configFile)
File "/usr/local/lib/python3.6/logging/config.py", line 76, in fileConfig
formatters = _create_formatters(cp)
File "/usr/local/lib/python3.6/logging/config.py", line 109, in _create_formatters
flist = cp["formatters"]["keys"]
File "/usr/local/lib/python3.6/configparser.py", line 959, in getitem
raise KeyError(key)
KeyError: 'formatters'

Is the problem that it cannot find /usr/local/etc/libsmbios/logging.conf?

@superm1 superm1 added the bug label Sep 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants