You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Get the error below on Windows when trying to run run_airsenal_predictions. Seems related to multiprocessing trying and failing to pickle SQLAlchemy objects.
File "C:\tools\miniconda3\envs\airsenalenv\Scripts\run_airsenal_predictions-script.py", line 11, in <module>
File "<string>", line 1, in <module>
load_entry_point('airsenal', 'console_scripts', 'run_airsenal_predictions')()
File "c:\users\jackr\github\airsenal\airsenal\scripts\fill_predictedscore_table.py", line 156, in main
File "C:\tools\miniconda3\envs\airsenalenv\lib\multiprocessing\spawn.py", line 105, in spawn_main
num_thread=args.num_thread)
File "c:\users\jackr\github\airsenal\airsenal\scripts\fill_predictedscore_table.py", line 109, in make_predictedscore_table
exitcode = _main(fd)
File "C:\tools\miniconda3\envs\airsenalenv\lib\multiprocessing\spawn.py", line 115, in _main
calc_all_predicted_points(gw_range, season, tag, session)
File "c:\users\jackr\github\airsenal\airsenal\scripts\fill_predictedscore_table.py", line 91, in calc_all_predicted_points
self = reduction.pickle.load(from_parent)
EOFErrorprocessor.start():
File "C:\tools\miniconda3\envs\airsenalenv\lib\multiprocessing\process.py", line 112, in start
Ran out of input
self._popen = self._Popen(self)
File "C:\tools\miniconda3\envs\airsenalenv\lib\multiprocessing\context.py", line 223, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "C:\tools\miniconda3\envs\airsenalenv\lib\multiprocessing\context.py", line 322, in _Popen
return Popen(process_obj)
File "C:\tools\miniconda3\envs\airsenalenv\lib\multiprocessing\popen_spawn_win32.py", line 89, in __init__
reduction.dump(process_obj, to_child)
File "C:\tools\miniconda3\envs\airsenalenv\lib\multiprocessing\reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
_pickle.PicklingError: Can't pickle <class 'sqlalchemy.orm.session.Session'>: it's not the same object as sqlalchemy.orm.session.Session
The text was updated successfully, but these errors were encountered:
jack89roberts
changed the title
Multiprocessing pickle error on Windows: Can't pickle class sqlalchemy.orm.session.Session
run_airsenal_predictions on Windows: Can't pickle class sqlalchemy.orm.session.Session
Feb 2, 2020
jack89roberts
changed the title
run_airsenal_predictions on Windows: Can't pickle class sqlalchemy.orm.session.Session
Can't pickle class sqlalchemy.orm.session.Session on Windows
Feb 10, 2020
Get the error below on Windows when trying to run
run_airsenal_predictions
. Seems related to multiprocessing trying and failing to pickle SQLAlchemy objects.The text was updated successfully, but these errors were encountered: