App does not work after compilation with Nuitka

Viewed 16

I'll use this string to build: /build/_venv/bin/nuitka3 --follow-imports --include-module=apscheduler.triggers.cron --clang /build/app/main.py

But after build when I run executable, got this error:

Traceback (most recent call last):
  File "/app/apscheduler/schedulers/base.py", line 896, in _create_plugin_instance
KeyError: 'cron'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/app/main.py", line 150, in <module>
  File "/app/main.py", line 136, in main
  File "/app/main.py", line 116, in handlers_init
  File "/app/jobs/reminders.py", line 64, in add_job
  File "/app/telegram/ext/jobqueue.py", line 439, in run_daily
  File "/app/apscheduler/schedulers/base.py", line 420, in add_job
  File "/app/apscheduler/schedulers/base.py", line 921, in _create_trigger
  File "/app/apscheduler/schedulers/base.py", line 904, in _create_plugin_instance
LookupError: No trigger by the name "cron" was found
0 Answers
Related