RemiRigal / Plex-Auto-Languages

Automated language selection for Plex TV Shows !
MIT License
488 stars 18 forks source link

crashed after Starting scheduler task #99

Open Mainak009 opened 5 months ago

Mainak009 commented 5 months ago

running fine for 2 days then suddenly throw below error

2024-06-23 04:30:01,053 [INFO] Starting scheduler task
Exception in thread Thread-2:
Traceback (most recent call last):
  File "C:\Users\Mainak\AppData\Local\Programs\Python\Python312\Lib\threading.py", line 1073, in _bootstrap_inner
    self.run()
  File "C:\Users\Mainak\Downloads\Compressed\Plex-Auto-Languages-master\plex_auto_languages\utils\scheduler.py", line 22, in run
    schedule.run_pending()
  File "C:\Users\Mainak\AppData\Local\Programs\Python\Python312\Lib\site-packages\schedule\__init__.py", line 822, in run_pending
    default_scheduler.run_pending()
  File "C:\Users\Mainak\AppData\Local\Programs\Python\Python312\Lib\site-packages\schedule\__init__.py", line 100, in run_pending
    self._run_job(job)
  File "C:\Users\Mainak\AppData\Local\Programs\Python\Python312\Lib\site-packages\schedule\__init__.py", line 172, in _run_job
    ret = job.run()
          ^^^^^^^^^
  File "C:\Users\Mainak\AppData\Local\Programs\Python\Python312\Lib\site-packages\schedule\__init__.py", line 693, in run
    ret = self.job_func()
          ^^^^^^^^^^^^^^^
  File "C:\Users\Mainak\Downloads\Compressed\Plex-Auto-Languages-master\main.py", line 107, in scheduler_callback
    self.plex.start_deep_analysis()
  File "C:\Users\Mainak\Downloads\Compressed\Plex-Auto-Languages-master\plex_auto_languages\plex_server.py", line 283, in start_deep_analysis
    episode.reload()
  File "C:\Users\Mainak\AppData\Local\Programs\Python\Python312\Lib\site-packages\plexapi\base.py", line 420, in reload
    return self._reload(key=key, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Mainak\AppData\Local\Programs\Python\Python312\Lib\site-packages\plexapi\base.py", line 1018, in _reload
    raise NotImplementedError('History objects cannot be reloaded. Use source() to get the source media item.')
NotImplementedError: History objects cannot be reloaded. Use source() to get the source media item.

running the normal Python way with Python version: 3.12....is there any specific python version recommended?