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

Missing dependency prompt_toolkit #57

Closed
akiroz opened this issue Aug 19, 2017 · 4 comments
Closed

Missing dependency prompt_toolkit #57

akiroz opened this issue Aug 19, 2017 · 4 comments

Comments

@akiroz
Copy link

akiroz commented Aug 19, 2017

Description:

Error running rtxmlrpc: ImportError: No module named prompt_toolkit.

How to Reproduce:

$ mkdir -p ~/bin ~/.local
$ git clone "https://github.com/pyroscope/pyrocore.git" ~/.local/pyroscope
$ bash ~/.local/pyroscope/update-to-head.sh `which python`
$ rtxmlrpc

System: NixOS 17.03

Working Solution:

Patch ~/.local/pyroscope/bootstrap.sh, add pip_install_opt -U "prompt_toolkit>=1.0.15" after line 61.

@pyroscope
Copy link
Owner

This is optional, install "pyrocore[repl]".

@akiroz
Copy link
Author

akiroz commented Aug 19, 2017

But wouldn't it be better if the CLI tools worked out-of-the-box after following the installation guide?

jab416171 added a commit to jab416171/pyrocore that referenced this issue Jun 3, 2019
@PyR8zdl
Copy link

PyR8zdl commented Jun 22, 2019

Have the same issue, added the Patch as OP provided and now I get...

rtxmlrpc Traceback (most recent call last): File "/home/pyr8zdl/bin/rtxmlrpc", line 11, in <module> load_entry_point('pyrocore', 'console_scripts', 'rtxmlrpc')() File "/home/pyr8zdl/.local/pyroscope/src/pyrocore/scripts/rtxmlrpc.py", line 384, in run RtorrentXmlRpc().run() File "/home/pyr8zdl/.local/pyroscope/src/pyrocore/scripts/base.py", line 267, in run self.mainloop() File "/home/pyr8zdl/.local/pyroscope/src/pyrocore/scripts/rtxmlrpc.py", line 360, in mainloop return self.do_repl() File "/home/pyr8zdl/.local/pyroscope/src/pyrocore/scripts/rtxmlrpc.py", line 184, in do_repl from prompt_toolkit.contrib.completers import WordCompleter ImportError: cannot import name WordCompleter

@PyR8zdl
Copy link

PyR8zdl commented Jun 22, 2019

never mind changed...
pip_install_opt -U "prompt_toolkit>=1.0.15"

to...
pip_install_opt -U "prompt-toolkit>=1.0.14,<2"

and it works fine now.

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

3 participants