Skip to content

Issues #47

@firefly-cpp

Description

@firefly-cpp

I am running this: https://codeberg.org/firefly-cpp/succulent-container-setup

My configuration file is:

data:

  • name: 'temperature'
  • name: 'humidity'
  • name: 'light'
  • name: 'time'
  • name: 'date'
    results:
    enabled: true

Traceback:

File "/usr/lib/python3.12/site-packages/succulent/processing.py", line 58, in init
self.enable_results = results['enable']
~~~~~~~^^^^^^^^^^
TypeError: string indices must be integers, not 'str'
[2024-07-30 12:17:18 +0000] [2] [INFO] Worker exiting (pid: 2)
[2024-07-30 12:17:18 +0000] [3] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/usr/lib/python3.12/site-packages/gunicorn/arbiter.py", line 609, in spawn_worker
worker.init_process()
File "/usr/lib/python3.12/site-packages/gunicorn/workers/base.py", line 134, in init_process
self.load_wsgi()
File "/usr/lib/python3.12/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi
self.wsgi = self.app.wsgi()
^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
return self.load_wsgiapp()
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
return util.import_app(self.app_uri)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/gunicorn/util.py", line 371, in import_app
mod = importlib.import_module(module)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/importlib/init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 995, in exec_module
File "", line 488, in _call_with_frames_removed
File "/succulent-app/run.py", line 3, in
api = SucculentAPI(config='configuration.yml', format='csv')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/succulent/api.py", line 35, in init
self.processing = Processing(config=self.config, format=self.format)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/succulent/processing.py", line 58, in init
self.enable_results = results['enable']
~~~~~~~^^^^^^^^^^
TypeError: string indices must be integers, not 'str'
[2024-07-30 12:17:18 +0000] [3] [INFO] Worker exiting (pid: 3)
[2024-07-30 12:17:18 +0000] [1] [ERROR] Worker (pid:2) exited with code 3
[2024-07-30 12:17:18 +0000] [1] [ERROR] Worker (pid:3) was sent SIGTERM!
[2024-07-30 12:17:18 +0000] [1] [ERROR] Shutting down: Master
[2024-07-30 12:17:18 +0000] [1] [ERROR] Reason: Worker failed to boot.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions