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

Question: How to run promnesia cli tool without Python? #433

Open
ryanwwest opened this issue Dec 16, 2023 · 0 comments
Open

Question: How to run promnesia cli tool without Python? #433

ryanwwest opened this issue Dec 16, 2023 · 0 comments

Comments

@ryanwwest
Copy link

Probably a dumb question, but I thought I followed the instructions on macos to install promnesia via pip3 install promnesia and things are running fine with python3 -m pip promnesia serve. But I don't have a promnesia executable in $PATH, is there an extra step to take to do this? This also means I can't run install-server since that requires running an executable file - I currently get this error I think because it can't find promnesia within python:

rw@:~$ sudo python3 -m promnesia install-server
Password:
[INFO    2023-12-15 23:36:18 promnesia __main__.py:383] CLI args: Namespace(mode='install-server', name='com.github.karlicoss.promnesia', host='0.0.0.0', port='13131', quiet=False, db=PosixPath('/Users/rw/Library/Application Support/promnesia/promnesia.sqlite'), timezone=<DstTzInfo 'America/Chicago' LMT-1 day, 18:09:00 STD>)
Writing launch script to /Users/rw/Library/LaunchAgents/com.github.karlicoss.promnesia.plist
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/Users/rw/Library/Python/3.11/lib/python/site-packages/promnesia/__main__.py", line 422, in <module>
    main()
  File "/Users/rw/Library/Python/3.11/lib/python/site-packages/promnesia/__main__.py", line 413, in main
    install_server.install(args)
  File "/Users/rw/Library/Python/3.11/lib/python/site-packages/promnesia/misc/install_server.py", line 123, in install
    exe = distutils.spawn.find_executable('promnesia'); assert exe is not None
                                                               ^^^^^^^^^^^^^^^
AssertionError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant