ElvishArtisan / rivendell

A full-featured radio automation system targeted for use in professional broadcast and media environments
205 stars 64 forks source link

Ubuntu 24.04 - Filewrite.py - AttributeError: 'ConfigParser' object has no attribute 'readfp'. Did you mean: 'read'? #975

Closed RudiOnTheAir closed 1 month ago

RudiOnTheAir commented 2 months ago

Hi

I'm beginning to make the change to the next platform an like to run (x)ubuntu 24.04. All is workung so far, but the filewriter plugin not. I'm getting the same error when using the icecast2.py.

What i am missing...? Tnx...

Btw, the database is a restored one from the running ubuntu22.04. The filewrite plugin is added new. (Deleted the existing)

Traceback (most recent call last): File "/usr/lib/rivendell/pypad/pypad_filewrite.py", line 54, in <module> rcvr.setConfigFile(sys.argv[3]) File "/usr/lib/python3/dist-packages/rivendellaudio/pypad.py", line 875, in setConfigFile db=self.__openDb() ^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/rivendellaudio/pypad.py", line 826, in __openDb creds=self.__getDbCredentials() ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/rivendellaudio/pypad.py", line 821, in __getDbCredentials config.readfp(open('/etc/rd.conf')) ^^^^^^^^^^^^^ AttributeError: 'ConfigParser' object has no attribute 'readfp'. Did you mean: 'read'?

RudiOnTheAir commented 2 months ago

Could be the reason for this the newer python3 version 3.12, running on ubuntu 24.04.??

ElvishArtisan commented 1 month ago

Tracking this issue at #979.

ElvishArtisan commented 1 month ago

Fixed in #979.