Moonbase59 / studiodisplay

A fast, modular MQTT-based signalling & display solution for Web Radio Stations using IDJC. Or just to make your smart home even smarter.
GNU General Public License v3.0
22 stars 4 forks source link

The SafeConfigParser class has been renamed to ConfigParser #7

Closed roelmeijer closed 1 year ago

roelmeijer commented 3 years ago

Great project! can you help to fix the issue to connect the IceCast?

./mqtt-radio.py:60: DeprecationWarning: The SafeConfigParser class has been renamed to ConfigParser in Python 3.2. This alias will be removed in future versions. Use ConfigParser directly instea d. config = configparser.SafeConfigParser() Read configuration from /home/pi/studiodisplay/python/../config/raspberrypi.cfg Traceback (most recent call last): File "./mqtt-radio.py", line 165, in mqttclient = paho.Client(client_id=config.get(my_section, 'client_id')) File "/usr/lib/python3.7/configparser.py", line 780, in get d = self._unify_values(section, vars) File "/usr/lib/python3.7/configparser.py", line 1146, in _unify_values raise NoSectionError(section) from None configparser.NoSectionError: No section: 'radio'

Moonbase59 commented 1 year ago

Fixed in 7d1e4e377d2d29af97401b4653a3903710e3f2ca