RuntimeError
Python 3.11.2: /usr/bin/python
Fri Jul 4 02:59:06 2025

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /usr/lib/python3/dist-packages/flup/server/fcgi_base.py in run(self=<flup.server.fcgi_base.Request object>)
    565         """Runs the handler, flushes the streams, and ends the request."""
    566         try:
=>  567             protocolStatus, appStatus = self.server.handler(self)
    568         except:
    569             output = io.StringIO()
protocolStatus undefined, appStatus undefined, self = <flup.server.fcgi_base.Request object>, self.server = <flup.server.fcgi.WSGIServer object>, self.server.handler = <bound method BaseFCGIServer.handler of <flup.server.fcgi.WSGIServer object>>
 /usr/lib/python3/dist-packages/flup/server/fcgi_base.py in handler(self=<flup.server.fcgi.WSGIServer object>, req=<flup.server.fcgi_base.Request object>)
   1129         try:
   1130             try:
=> 1131                 result = self.application(environ, start_response)
   1132                 try:
   1133                     for data in result:
result = None, self = <flup.server.fcgi.WSGIServer object>, self.application = <function application>, environ = {'CONTENT_LENGTH': '0', 'CONTEXT_DOCUMENT_ROOT': '/home/www/public_html/', 'CONTEXT_PREFIX': '', 'DOCUMENT_ROOT': '/home/www/public_html/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate', 'HTTP_CACHE_CONTROL': 'max-age=259200', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'petkli.de', ...}, start_response = <function BaseFCGIServer.handler.<locals>.start_response>
 /usr/lib/python3/dist-packages/cm4all/fcgi/launcher.py in application(environ={'CONTENT_LENGTH': '0', 'CONTEXT_DOCUMENT_ROOT': '/home/www/public_html/', 'CONTEXT_PREFIX': '', 'DOCUMENT_ROOT': '/home/www/public_html/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate', 'HTTP_CACHE_CONTROL': 'max-age=259200', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'petkli.de', ...}, start_response=<function BaseFCGIServer.handler.<locals>.start_response>)
     15 
     16 def application(environ, start_response):
=>   17     return cache[environ['SCRIPT_FILENAME']](environ, start_response)
     18 
     19 def launch():
global cache = {}, environ = {'CONTENT_LENGTH': '0', 'CONTEXT_DOCUMENT_ROOT': '/home/www/public_html/', 'CONTEXT_PREFIX': '', 'DOCUMENT_ROOT': '/home/www/public_html/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate', 'HTTP_CACHE_CONTROL': 'max-age=259200', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'petkli.de', ...}, start_response = <function BaseFCGIServer.handler.<locals>.start_response>
 /usr/lib/python3/dist-packages/cm4all/fcgi/launcher.py in __missing__(self={}, path='/home/www/public_html/python3/dist-packages/IPython/__main__.py')
      8             mod = imp.load_compiled(name, path)
      9         else:
=>   10             mod = imp.load_source(name, path)
     11         self[path] = value = getattr(mod, 'application')
     12         return value
mod undefined, global imp = <module 'imp' from '/usr/lib/python3.11/imp.py'>, imp.load_source = <function load_source>, name = '__main__', path = '/home/www/public_html/python3/dist-packages/IPython/__main__.py'
 /usr/lib/python3.11/imp.py in load_source(name='__main__', pathname='/home/www/public_html/python3/dist-packages/IPython/__main__.py', file=None)
    168     spec = util.spec_from_file_location(name, pathname, loader=loader)
    169     if name in sys.modules:
=>  170         module = _exec(spec, sys.modules[name])
    171     else:
    172         module = _load(spec)
module undefined, global _exec = <function _exec>, spec = ModuleSpec(name='__main__', loader=<imp._LoadSou..._html/python3/dist-packages/IPython/__main__.py'), global sys = <module 'sys' (built-in)>, sys.modules = {'BaseDirectory': <module 'BaseDirectory' from '/home/www/public_html/python3/dist-packages/xdg/BaseDirectory.py'>, 'Config': <module 'Config' from '/home/www/public_html/python3/dist-packages/xdg/Config.py'>, 'ContainerIO': <module 'ContainerIO' from '/home/www/public_html/python3/dist-packages/PIL/ContainerIO.py'>, 'DesktopEntry': <module 'DesktopEntry' from '/home/www/public_html/python3/dist-packages/xdg/DesktopEntry.py'>, 'ElementPath.cpython-311': <module 'ElementPath.cpython-311' from '/home/ww...l/etree/__pycache__/ElementPath.cpython-311.pyc'>, 'Exceptions': <module 'Exceptions' from '/home/www/public_html/python3/dist-packages/xdg/Exceptions.py'>, 'IPython': <module 'IPython' from '/usr/lib/python3/dist-packages/IPython/__init__.py'>, 'IPython.config': <module 'traitlets.config' from '/usr/lib/python3/dist-packages/traitlets/config/__init__.py'>, 'IPython.core': <module 'IPython.core' from '/usr/lib/python3/dist-packages/IPython/core/__init__.py'>, 'IPython.core.alias': <module 'IPython.core.alias' from '/usr/lib/python3/dist-packages/IPython/core/alias.py'>, ...}, name = '__main__'
 /usr/bin/<frozen importlib._bootstrap> in _exec(spec=ModuleSpec(name='__main__', loader=<imp._LoadSou..._html/python3/dist-packages/IPython/__main__.py'), module=<module '__main__'>)
 /usr/bin/<frozen importlib._bootstrap_external> in exec_module(self=<imp._LoadSourceCompatibility object>, module=<module '__main__' from '/home/www/public_html/python3/dist-packages/IPython/__main__.py'>)
 /usr/bin/<frozen importlib._bootstrap> in _call_with_frames_removed(f=<built-in function exec>, *args=(<code object <module> at 0x7f46550be940, file "/...thon3/dist-packages/IPython/__main__.py", line 1>, {'__annotations__': {}, '__builtins__': <module 'builtins' (built-in)>, '__cached__': '/home/www/public_html/python3/dist-packages/IPython/__pycache__/__main__.cpython-311.pyc', '__doc__': 'Terminal-based IPython entry point.\n', '__file__': '/home/www/public_html/python3/dist-packages/IPython/__main__.py', '__loader__': <imp._LoadSourceCompatibility object>, '__name__': '__main__', '__package__': '', '__spec__': ModuleSpec(name='__main__', loader=<imp._LoadSou..._html/python3/dist-packages/IPython/__main__.py'), 'launcher': <module 'cm4all.fcgi.launcher' from '/usr/lib/python3/dist-packages/cm4all/fcgi/launcher.py'>, ...}), **kwds={})
 /home/www/public_html/python3/dist-packages/IPython/__main__.py in <module>
     10 #-----------------------------------------------------------------------------
     11 
     12 from IPython import start_ipython
     13 
=>   14 start_ipython()
start_ipython = <function start_ipython>
 /usr/lib/python3/dist-packages/IPython/__init__.py in start_ipython(argv=None, **kwargs={})
    122     """
    123     from IPython.terminal.ipapp import launch_new_instance
=>  124     return launch_new_instance(argv=argv, **kwargs)
    125 
    126 def start_kernel(argv=None, **kwargs):
launch_new_instance = <bound method Application.launch_instance of <class 'IPython.terminal.ipapp.TerminalIPythonApp'>>, argv = None, kwargs = {}
 /usr/lib/python3/dist-packages/traitlets/config/application.py in launch_instance(cls=<class 'IPython.terminal.ipapp.TerminalIPythonApp'>, argv=None, **kwargs={})
    979         """
    980         app = cls.instance(**kwargs)
=>  981         app.initialize(argv)
    982         app.start()
    983 
app = <IPython.terminal.ipapp.TerminalIPythonApp object>, app.initialize = <bound method TerminalIPythonApp.initialize of <IPython.terminal.ipapp.TerminalIPythonApp object>>, argv = None
 /usr/lib/python3/dist-packages/traitlets/config/application.py in inner(app=<IPython.terminal.ipapp.TerminalIPythonApp object>, *args=(None,), **kwargs={})
    108     def inner(app, *args, **kwargs):
    109         try:
=>  110             return method(app, *args, **kwargs)
    111         except (TraitError, ArgumentError) as e:
    112             app.log.fatal("Bad config encountered during initialization: %s", e)
method = <function TerminalIPythonApp.initialize>, app = <IPython.terminal.ipapp.TerminalIPythonApp object>, args = (None,), kwargs = {}
 /usr/lib/python3/dist-packages/IPython/terminal/ipapp.py in initialize(self=<IPython.terminal.ipapp.TerminalIPythonApp object>, argv=None)
    277         self.init_path()
    278         # create the shell
=>  279         self.init_shell()
    280         # and draw the banner
    281         self.init_banner()
self = <IPython.terminal.ipapp.TerminalIPythonApp object>, self.init_shell = <bound method TerminalIPythonApp.init_shell of <IPython.terminal.ipapp.TerminalIPythonApp object>>
 /usr/lib/python3/dist-packages/IPython/terminal/ipapp.py in init_shell(self=<IPython.terminal.ipapp.TerminalIPythonApp object>)
    291         # based app, because we call shell.show_banner() by hand below
    292         # so the banner shows *before* all extension loading stuff.
=>  293         self.shell = self.interactive_shell_class.instance(parent=self,
=>  294                         profile_dir=self.profile_dir,
=>  295                         ipython_dir=self.ipython_dir, user_ns=self.user_ns)
self = <IPython.terminal.ipapp.TerminalIPythonApp object>, self.shell = None, self.interactive_shell_class = <class 'IPython.terminal.interactiveshell.TerminalInteractiveShell'>, self.interactive_shell_class.instance = <bound method SingletonConfigurable.instance of ...inal.interactiveshell.TerminalInteractiveShell'>>, parent undefined, profile_dir undefined, self.profile_dir = <IPython.core.profiledir.ProfileDir object>, ipython_dir undefined, self.ipython_dir = '/tmp/tmph5o7kikd', user_ns undefined, self.user_ns = None
 /usr/lib/python3/dist-packages/traitlets/config/configurable.py in instance(cls=<class 'IPython.terminal.interactiveshell.TerminalInteractiveShell'>, *args=(), **kwargs={'ipython_dir': '/tmp/tmph5o7kikd', 'parent': <IPython.terminal.ipapp.TerminalIPythonApp object>, 'profile_dir': <IPython.core.profiledir.ProfileDir object>, 'user_ns': None})
    549         # Create and save the instance
    550         if cls._instance is None:
=>  551             inst = cls(*args, **kwargs)
    552             # Now make sure that the instance will also be returned by
    553             # parent classes' _instance attribute.
inst undefined, cls = <class 'IPython.terminal.interactiveshell.TerminalInteractiveShell'>, args = (), kwargs = {'ipython_dir': '/tmp/tmph5o7kikd', 'parent': <IPython.terminal.ipapp.TerminalIPythonApp object>, 'profile_dir': <IPython.core.profiledir.ProfileDir object>, 'user_ns': None}
 /usr/lib/python3/dist-packages/IPython/terminal/interactiveshell.py in __init__(self=<IPython.terminal.interactiveshell.TerminalInteractiveShell object>, *args=(), **kwargs={'ipython_dir': '/tmp/tmph5o7kikd', 'parent': <IPython.terminal.ipapp.TerminalIPythonApp object>, 'profile_dir': <IPython.core.profiledir.ProfileDir object>, 'user_ns': None})
    649 
    650     def __init__(self, *args, **kwargs):
=>  651         super(TerminalInteractiveShell, self).__init__(*args, **kwargs)
    652         self._set_autosuggestions(self.autosuggestions_provider)
    653         self.init_prompt_toolkit_cli()
builtin super = <class 'super'>, global TerminalInteractiveShell = <class 'IPython.terminal.interactiveshell.TerminalInteractiveShell'>, self = <IPython.terminal.interactiveshell.TerminalInteractiveShell object>, ).__init__ = <bound method TerminalInteractiveShell.__init__ ...nteractiveshell.TerminalInteractiveShell object>>, args = (), kwargs = {'ipython_dir': '/tmp/tmph5o7kikd', 'parent': <IPython.terminal.ipapp.TerminalIPythonApp object>, 'profile_dir': <IPython.core.profiledir.ProfileDir object>, 'user_ns': None}
 /usr/lib/python3/dist-packages/IPython/core/interactiveshell.py in __init__(self=<IPython.terminal.interactiveshell.TerminalInteractiveShell object>, ipython_dir='/tmp/tmph5o7kikd', profile_dir=<IPython.core.profiledir.ProfileDir object>, user_module=None, user_ns=None, custom_exceptions=((), None), **kwargs={'parent': <IPython.terminal.ipapp.TerminalIPythonApp object>})
    560         self.db = PickleShareDB(os.path.join(self.profile_dir.location, 'db'))
    561 
=>  562         self.init_history()
    563         self.init_encoding()
    564         self.init_prefilter()
self = <IPython.terminal.interactiveshell.TerminalInteractiveShell object>, self.init_history = <bound method InteractiveShell.init_history of <...nteractiveshell.TerminalInteractiveShell object>>
 /usr/lib/python3/dist-packages/IPython/core/interactiveshell.py in init_history(self=<IPython.terminal.interactiveshell.TerminalInteractiveShell object>)
   1747     def init_history(self):
   1748         """Sets up the command history, and starts regular autosaves."""
=> 1749         self.history_manager = HistoryManager(shell=self, parent=self)
   1750         self.configurables.append(self.history_manager)
   1751 
self = <IPython.terminal.interactiveshell.TerminalInteractiveShell object>, self.history_manager = None, global HistoryManager = <class 'IPython.core.history.HistoryManager'>, shell undefined, parent undefined
 /usr/lib/python3/dist-packages/IPython/core/history.py in __init__(self=<IPython.core.history.HistoryManager object>, shell=<IPython.terminal.interactiveshell.TerminalInteractiveShell object>, config=None, **traits={'parent': <IPython.terminal.interactiveshell.TerminalInteractiveShell object>})
    551         if self.enabled and self.hist_file != ':memory:':
    552             self.save_thread = HistorySavingThread(self)
=>  553             self.save_thread.start()
    554 
    555     def _get_hist_file_name(self, profile=None):
self = <IPython.core.history.HistoryManager object>, self.save_thread = <HistorySavingThread(IPythonHistorySavingThread, initial daemon)>, self.save_thread.start = <bound method Thread.start of <HistorySavingThread(IPythonHistorySavingThread, initial daemon)>>
 /usr/lib/python3.11/threading.py in start(self=<HistorySavingThread(IPythonHistorySavingThread, initial daemon)>)
    955             _limbo[self] = self
    956         try:
=>  957             _start_new_thread(self._bootstrap, ())
    958         except Exception:
    959             with _active_limbo_lock:
global _start_new_thread = <built-in function start_new_thread>, self = <HistorySavingThread(IPythonHistorySavingThread, initial daemon)>, self._bootstrap = <bound method Thread._bootstrap of <HistorySavin...ead(IPythonHistorySavingThread, initial daemon)>>

RuntimeError: can't start new thread
      add_note = <built-in method add_note of RuntimeError object>
      args = ("can't start new thread",)
      with_traceback = <built-in method with_traceback of RuntimeError object>