This just bit me on an upgrade from buster to bullseye
(python3-cherrypy3 8.9.1-8):
kjotte@vesta:~/sixspot$ ./sixspot.py
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/cherrypy/lib/reprconf.py", line
213, in as_dict
value = unrepr(value)
File "/usr/lib/python3/dist-packages/cherrypy/lib/reprconf.py", line
518, in unrepr
return b.build(obj)
File "/usr/lib/python3/dist-packages/cherrypy/lib/reprconf.py", line
359, in build
raise TypeError('unrepr does not recognize %s' %
TypeError: unrepr does not recognize 'Constant'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/kjotte/svn/sixspot/trunk/./sixspot.py", line 402, in <module>
cherrypy.quickstart(SixSpot(),config=config_file)
File "/usr/lib/python3/dist-packages/cherrypy/__init__.py", line 180,
in quickstart
_global_conf_alias.update(config)
File "/usr/lib/python3/dist-packages/cherrypy/_cpconfig.py", line
158, in update
reprconf.Config.update(self, config)
File "/usr/lib/python3/dist-packages/cherrypy/lib/reprconf.py", line
155, in update
config = Parser().dict_from_file(config)
File "/usr/lib/python3/dist-packages/cherrypy/lib/reprconf.py", line
228, in dict_from_file
return self.as_dict()
File "/usr/lib/python3/dist-packages/cherrypy/lib/reprconf.py", line
219, in as_dict
raise ValueError(msg, x.__class__.__name__, x.args)
ValueError: ('Config error in section: \'global\', option:
\'server.socket_host\', value: \'"::"\'. Config values must be valid
Python.', 'TypeError', ("unrepr does not recognize 'Constant'",))
Any chance we can get a fix in before I upgrade my production box?