Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run memento-bg error #46

Open
707367586 opened this issue Sep 13, 2023 · 8 comments
Open

Run memento-bg error #46

707367586 opened this issue Sep 13, 2023 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@707367586
Copy link

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

@apirrone
Copy link
Owner

Hi,

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 ?

Thanks for trying out Memento :)

@apirrone apirrone added the bug Something isn't working label Sep 13, 2023
@apirrone apirrone self-assigned this Sep 13, 2023
@707367586
Copy link
Author

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

@apirrone apirrone mentioned this issue Oct 4, 2023
@test-n-prodd
Copy link

test-n-prodd commented Oct 29, 2023

I'm also seeing this on a 2019 macbook running sonoma w/ intel silicon, python 3.11

@apirrone at a high-level, what do you expect to need to be done to convert this to run properly on a Mac? I may take a stab at it.

@apirrone
Copy link
Owner

Hi @bradyab

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 !

Thanks !

@aldrinjenson
Copy link

Hi,
I'm facing the same issue on 2019 Intel Mac.
Any ideas on how to fix or debug this.?

@venturaEffect
Copy link

memento-bg not working.

@apirrone
Copy link
Owner

apirrone commented Apr 8, 2024

@aldrinjenson @venturaEffect Same answer than here :) #51 (comment)

@venturaEffect
Copy link

Appreciate. Memento is really promising and I think it would even have demand if you launch it as a paid tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants