When trying to run a job, the following Import Errors are happening:
2021-03-18 12:13:50 PSTPreparing to run TaskInstance <TaskInstance:
lucyskidmore/projects/interspeech-2021/4 (id: RmxCvgSrBndzMxkr9upzoE)
2021-03-18 12:13:50 PSTStarting attempt 1
2021-03-18 12:13:50 PSTDownloading and setting up data sources
2021-03-18 12:13:54 PSTUsing Docker image: floydhub/theano:0.9.0-gpu-py3.6
2021-03-18 12:13:55 PSTStarting container...
2021-03-18 12:15:31 PST
2021-03-18 12:15:37 PSTmain()
2021-03-18 12:15:37 PSTFile "/usr/local/lib/python3.5/site.py", line 550, in main
2021-03-18 12:15:37 PSTknown_paths = addsitepackages(known_paths)
2021-03-18 12:15:37 PSTFile "/usr/local/lib/python3.5/site.py", line 327, in addsitepackages
2021-03-18 12:15:37 PSTaddsitedir(sitedir, known_paths)
2021-03-18 12:15:37 PSTFile "/usr/local/lib/python3.5/site.py", line 206, in addsitedir
2021-03-18 12:15:37 PSTaddpackage(sitedir, name, known_paths)
2021-03-18 12:15:37 PSTFile "/usr/local/lib/python3.5/site.py", line 177, in addpackage
2021-03-18 12:15:37 PSTimport traceback
2021-03-18 12:15:37 PSTFile "/usr/local/lib/python3.5/traceback.py", line 5, in <module>
2021-03-18 12:15:37 PSTimport linecache
2021-03-18 12:15:37 PSTFile "/usr/local/lib/python3.5/linecache.py", line 8, in <module>
2021-03-18 12:15:37 PSTimport functools
2021-03-18 12:15:37 PSTFile "/usr/local/lib/python3.5/functools.py", line 23, in <module>
2021-03-18 12:15:37 PSTfrom weakref import WeakKeyDictionary
2021-03-18 12:15:37 PSTFile "/usr/local/lib/python3.5/weakref.py", line 12, in <module>
2021-03-18 12:15:37 PSTfrom _weakref import (
2021-03-18 12:15:37 PSTImportError: cannot import name '_remove_dead_weakref'
2021-03-18 12:15:37 PST
2021-03-18 12:15:37 PSTWaiting for container to complete...
2021-03-18 12:15:37 PSTJob exited with status code: 1
2021-03-18 12:15:37 PSTCreating data module for output...
2021-03-18 12:15:38 PSTData module created for output.
2021-03-18 12:15:38 PSTPersisting data in home...
2021-03-18 12:15:40 PSTHome data persisted.
2021-03-18 12:15:40 PST[failed] Task execution failed
I've found a similar issue online here: https://github.com/MDAnalysis/mdanalysis/issues/1739 that suggests that it is related to Python version installation. I have checked my local files and have removed any old versions of Python I can find but the problem is still happening.
This issue doesn't happen when I run the program locally.
Any help would be greatly appreciated!