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?
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?