apirrone / Memento

Memento is a Python app that records everything you do on your computer and lets you go back in time, search, and chat with a LLM (Large Language Model) to find back information about what you did.
MIT License
482 stars 37 forks source link

Windows #51

Open dzid26 opened 9 months ago

dzid26 commented 9 months ago

Is there even a chance for it to work on Windows?

Currently, tesserocr wheels doesn't compile on Windows and installed binary is not found.

Also, OPENAI_API_KEY cannot be found no matter what I do. I guess I need to try to restart the system as a last resort. Yes, restarting actually helped somehow.

> memento-bg
pygame 2.5.0 (SDL 2.28.0, Python 3.10.12)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
  File "C:\Users\dzidm\miniconda3\Scripts\memento-bg-script.py", line 33, in <module>
    sys.exit(load_entry_point('memento', 'console_scripts', 'memento-bg')())
  File "c:\users\dzidm\downloads\memento\memento\__init__.py", line 6, in bg
    backgound = Background()
  File "c:\users\dzidm\downloads\memento\memento\background.py", line 75, in __init__
    self.workers[i].start()
  File "C:\Users\dzidm\miniconda3\lib\multiprocessing\process.py", line 121, in start
    self._popen = self._Popen(self)
  File "C:\Users\dzidm\miniconda3\lib\multiprocessing\context.py", line 224, in _Popen
    return _default_context.get_context().Process._Popen(process_obj)
  File "C:\Users\dzidm\miniconda3\lib\multiprocessing\context.py", line 336, in _Popen
    return Popen(process_obj)
  File "C:\Users\dzidm\miniconda3\lib\multiprocessing\popen_spawn_win32.py", line 93, in __init__
    reduction.dump(process_obj, to_child)
  File "C:\Users\dzidm\miniconda3\lib\multiprocessing\reduction.py", line 60, in dump
    ForkingPickler(file, protocol).dump(obj)
TypeError: cannot pickle 'sqlite3.Connection' object
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\dzidm\miniconda3\lib\multiprocessing\spawn.py", line 116, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "C:\Users\dzidm\miniconda3\lib\multiprocessing\spawn.py", line 126, in _main
    self = reduction.pickle.load(from_parent)
EOFError: Ran out of input

For now I am give up on this...

apirrone commented 9 months ago

Hi,

This looks a lot like #46 but it was on MacOS.

I will investigate when I have time, It is easier for me to test things on Windows than MacOS, maybe I will find a solution for both :)

Thanks !

hvsesha commented 8 months ago

Hi

Which version of Python are you using

dzid26 commented 8 months ago

Python 3.10.12

RobDiek commented 8 months ago

any update regarding windows support? have the same problem with missing python lib when using the exe files. I also tried using WSL2 for it however "display" doesnt get detected when I Try with an x server it says xrandr not deteted. would L O V E to see this tool on windows, rewind for windows seems to take like months to complete and isnt osource

apirrone commented 8 months ago

Hi, I will try to put some work on it in the following days. I don't have a lot of free time these days but it should get better soon :)

apirrone commented 8 months ago

Indeed, the main issue seems to be that tesserocr wheel does not work on windows anymore from pip. I stumbled upon this thread https://github.com/sirfz/tesserocr/issues/287 . It seems to be possible to install it from conda-forge . I will try this.

As a last resort, it may be necessary to build tesserocr manually (https://github.com/sirfz/tesserocr/blob/master/Windows.build.md) which seems to be painful.

I'll keep you updated

apirrone commented 8 months ago

https://pypi.org/project/tesserocr/

The instructions under the Windows/pip section seems to have worked on my system tesserocr_working

Now I have issues with chroma. Will continue to investigate later

RobDiek commented 7 months ago

just curious about any update? :)

deepansharya1111 commented 6 months ago

just curious about any update? :)

same here :)

apirrone commented 5 months ago

Hi all, sorry I don't have much free time to work on Memento these days ... I will update you here when I can give it some time !

venturaEffect commented 3 months ago

Any news of making it work on Windows 11? Appreciate

venturaEffect commented 3 months ago

Also not working in WSL. THis project seems to get abandoned. Sad, it looked promising.

apirrone commented 2 months ago

Hi @venturaEffect, I would not say the project is abandoned, I just don't have a lot of free time to work on side projects these days :) I have a few ideas to improve it, and I definitely should spend some time making it work on windows and macos.

I will try to spend a few days on it soon, thank you for your interest anyway !