question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make sure promnesia works under Windows

See original GitHub issue

Windows 10 with Python 3.7.6.

When I run promnesia demo --port 16789 https://github.com/karlicoss/exobrain I get error:

c:\anaconda\lib\site-packages\promnesia\kython\klogging2.py:27: UserWarning: You might want to install 'logzero' for nice colored logs!
  warnings.warn("You might want to install 'logzero' for nice colored logs!")
[INFO    2020-05-18 20:49:57,102 promnesia common.py:329] extracting via promnesia.sources.guess:index ('https://github.com/karlicoss/exobrain',) {} ... ...
[INFO    2020-05-18 20:49:57,102 promnesia common.py:329] extracting via promnesia.sources.guess:index ('https://github.com/karlicoss/exobrain',) {} ... ...
Traceback (most recent call last):
  File "c:\anaconda\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\anaconda\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\anaconda\Scripts\promnesia.exe\__main__.py", line 7, in <module>
  File "c:\anaconda\lib\site-packages\promnesia\__main__.py", line 173, in main
    do_demo(index_as=getattr(args, 'as'), params=args.params, port=args.port, config_file=args.config)
  File "c:\anaconda\lib\site-packages\promnesia\__main__.py", line 110, in do_demo
    errors = _do_index()
  File "c:\anaconda\lib\site-packages\promnesia\__main__.py", line 49, in _do_index
    hist, errors = previsits_to_history(ex, src=ex.src)
  File "c:\anaconda\lib\site-packages\promnesia\common.py", line 333, in previsits_to_history
    previsits = list(extr()) # TODO DEFENSIVE HERE!!!
  File "c:\anaconda\lib\site-packages\promnesia\sources\guess.py", line 33, in index
    yield from index_(path, *args, **kwargs)
  File "c:\anaconda\lib\site-packages\promnesia\sources\vcs.py", line 15, in index
    check_call(['git', 'clone', repo, tp])
  File "c:\anaconda\lib\subprocess.py", line 358, in check_call
    retcode = call(*popenargs, **kwargs)
  File "c:\anaconda\lib\subprocess.py", line 339, in call
    with Popen(*popenargs, **kwargs) as p:
  File "c:\anaconda\lib\subprocess.py", line 800, in __init__
    restore_signals, start_new_session)
  File "c:\anaconda\lib\subprocess.py", line 1148, in _execute_child
    args = list2cmdline(args)
  File "c:\anaconda\lib\subprocess.py", line 555, in list2cmdline
    needquote = (" " in arg) or ("\t" in arg) or not arg
TypeError: argument of type 'WindowsPath' is not iterable

So how can I run this program on Windows?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:23 (15 by maintainers)

github_iconTop GitHub Comments

6reactions
mdroidiancommented, Feb 26, 2022

I have a (fairly) fresh Windows install and had no issues with Promnesia this go around! Right in Windows, not via WSL.

  • Installed Python 3.10.2 (Windows installer (64-bit)) via python.org
  • pip3 install --user promnesia
  • added a folder to PATH
  • promnesia demo https://github.com/karlicoss/exobrain seemed to run fine
  • promnesia config create, added a local folder with .md files, promnesia index
  • promnesia serve

Seems good 👍

2reactions
AB1908commented, Apr 27, 2021

So, is the WSL version working properly?

Update: It does! Strangely, there’s some path issues so have to use python3 -m promnesia vs promnesia.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Promnesia - beepb00p
Promnesia is a browser extension (Chrome/Firefox/Firefox mobile) that serves as a web surfing copilot by enhancing your browsing history, improving your web ...
Read more >
[[promnesia]] - anagora.org
exclude Json (not sure how?) first go through some data sources and see how well it's gonna work. start with 'static' version. datetime:...
Read more >
A Topic Manager for Chrome and emacs - Reddit
BrainTool focuses on enabling and simplifying the active curation of your information space, Promnesia seems to be passively recording and ...
Read more >
Show HN: Web browser to help programmers think clearly
I like the floating window concept - can definitely see how that would be useful for having documentation front and centre while working...
Read more >
Promnesia (Gimmicks and Online Instructions) - Murphy's Magic
Promnesia is a power house packet effect from the mind of Graeme David Fishwick. Promnesia has multiple changes and multiple moment of visual...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found