(Nov-30-2017, 03:30 PM)buran Wrote: is the file name indeedconfig.py
? it is expecting justconfig
ps: config is located in etc/smaemd/
After renaming it I get the following error:
sudo python sma-daemon.py
Error:Traceback (most recent call last):
File "sma-daemon.py", line 23, in <module>
from configparser import SafeConfigParser
ImportError: No module named configparser
sudo python3 sma-daemon.py
Error:Traceback (most recent call last):
File "/usr/local/lib/python3.5/configparser.py", line 1136, in _unify_values
sectiondict = self._sections[section]
KeyError: '[SMA-EM]'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "sma-daemon.py", line 30, in <module>
smaemserials=parser.get('[SMA-EM]', 'serials')
File "/usr/local/lib/python3.5/configparser.py", line 779, in get
d = self._unify_values(section, vars)
File "/usr/local/lib/python3.5/configparser.py", line 1139, in _unify_values
raise NoSectionError(section)
configparser.NoSectionError: No section: '[SMA-EM]'
[inline]sudo systemctl daemon-reload
sudo systemctl enable smaemd.service
sudo systemctl start smaemd.service[/inline]
didn't change anything by the way