RuntimeError: cannot schedule new futures after interpreter shutdown

  apscheduler, python, telegram, windows

I’m programming a python robot in the telegram, but I have an error that is not resolved, the error is in the schedule

Traceback (most recent call last):
  File "C:Usersvini6AppDataLocalPackagesPythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0LocalCachelocal-packagesPython39site-packagesapschedulerschedulersbase.py", line 979, in _process_jobs
    executor.submit_job(job, run_times)
  File "C:Usersvini6AppDataLocalPackagesPythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0LocalCachelocal-packagesPython39site-packagesapschedulerexecutorsbase.py", line 71, in submit_job
    self._do_submit_job(job, run_times)
  File "C:Usersvini6AppDataLocalPackagesPythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0LocalCachelocal-packagesPython39site-packagesapschedulerexecutorspool.py", line 28, in _do_submit_job
    f = self._pool.submit(run_job, job, job._jobstore_alias, run_times, self._logger.name)
  File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.9_3.9.2544.0_x64__qbz5n2kfra8p0libconcurrentfuturesthread.py", line 169, in submit
    raise RuntimeError('cannot schedule new futures after '
RuntimeError: cannot schedule new futures after interpreter shutdown

Source: Windows Questions

LEAVE A COMMENT