Open
707367586
opened this issue 1 year ago
•
8 comments
os: monterey
device:macbook pro M1
python:3.10
error log:
Traceback (most recent call last):
File "/Users/zhoulingfeng/miniconda3/envs/memnto/bin/memento-bg", line 33, in
sys.exit(load_entry_point('memento', 'console_scripts', 'memento-bg')())
File "/Users/zhoulingfeng/Desktop/code/Memento/memento/init.py", line 6, in bg
backgound = Background()
File "/Users/zhoulingfeng/Desktop/code/Memento/memento/background.py", line 77, in init
self.workers[i].start()
File "/Users/zhoulingfeng/miniconda3/envs/memnto/lib/python3.10/multiprocessing/process.py", line 121, in start
self._popen = self._Popen(self)
File "/Users/zhoulingfeng/miniconda3/envs/memnto/lib/python3.10/multiprocessing/context.py", line 224, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "/Users/zhoulingfeng/miniconda3/envs/memnto/lib/python3.10/multiprocessing/context.py", line 288, in _Popen
return Popen(process_obj)
File "/Users/zhoulingfeng/miniconda3/envs/memnto/lib/python3.10/multiprocessing/popen_spawn_posix.py", line 32, in init
super().init(process_obj)
File "/Users/zhoulingfeng/miniconda3/envs/memnto/lib/python3.10/multiprocessing/popen_fork.py", line 19, in init
self._launch(process_obj)
File "/Users/zhoulingfeng/miniconda3/envs/memnto/lib/python3.10/multiprocessing/popen_spawn_posix.py", line 47, in _launch
reduction.dump(process_obj, fp)
File "/Users/zhoulingfeng/miniconda3/envs/memnto/lib/python3.10/multiprocessing/reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
TypeError: cannot pickle 'sqlite3.Connection' object
I have only tested the app on my system (Ubuntu 22.04) for now. This seems to be an issue with multiprocessing and sqlite, I will try to borrow a m1 macbook to try it out and see if I can reproduce your error.
Did you edit the code in background.py ? The line numbers don't seem to match with the current state of the main branch. If so, could you show what you edited ?
tks for your reply. I use the origin code to run. this is the log
memento-bg
pygame 2.5.0 (SDL 2.28.0, Python 3.10.13)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "/Users/zhoulingfeng/miniconda3/envs/memnto/bin/memento-bg", line 33, in
sys.exit(load_entry_point('memento', 'console_scripts', 'memento-bg')())
File "/Users/zhoulingfeng/Desktop/code/Memento/memento/init.py", line 6, in bg
backgound = Background()
File "/Users/zhoulingfeng/Desktop/code/Memento/memento/background.py", line 75, in init
self.workers[i].start()
File "/Users/zhoulingfeng/miniconda3/envs/memnto/lib/python3.10/multiprocessing/process.py", line 121, in start
self._popen = self._Popen(self)
File "/Users/zhoulingfeng/miniconda3/envs/memnto/lib/python3.10/multiprocessing/context.py", line 224, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "/Users/zhoulingfeng/miniconda3/envs/memnto/lib/python3.10/multiprocessing/context.py", line 288, in _Popen
return Popen(process_obj)
File "/Users/zhoulingfeng/miniconda3/envs/memnto/lib/python3.10/multiprocessing/popen_spawn_posix.py", line 32, in init
super().init(process_obj)
File "/Users/zhoulingfeng/miniconda3/envs/memnto/lib/python3.10/multiprocessing/popen_fork.py", line 19, in init
self._launch(process_obj)
File "/Users/zhoulingfeng/miniconda3/envs/memnto/lib/python3.10/multiprocessing/popen_spawn_posix.py", line 47, in _launch
reduction.dump(process_obj, fp)
File "/Users/zhoulingfeng/miniconda3/envs/memnto/lib/python3.10/multiprocessing/reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
TypeError: cannot pickle 'sqlite3.Connection' object
I suspect it is really just an issue with dependencies versions. I don't have an easy access to a Mac, so if you manage to make it work, please make a PR and I will merge it !