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

ImportError: cannot import name 'CompleteStyle' #19

Closed
udpsec opened this issue Jul 26, 2019 · 3 comments
Closed

ImportError: cannot import name 'CompleteStyle' #19

udpsec opened this issue Jul 26, 2019 · 3 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@udpsec
Copy link

udpsec commented Jul 26, 2019

pip3 install One-Lin3r; success
But running the program display:
Traceback (most recent call last):
File "/usr/local/bin/one-lin3r", line 7, in
from one_lin3r.main import main
File "/usr/local/lib/python3.6/dist-packages/one_lin3r/main.py", line 3, in
from .core import Cli
File "/usr/local/lib/python3.6/dist-packages/one_lin3r/core/Cli.py", line 6, in
from . import utils,db
File "/usr/local/lib/python3.6/dist-packages/one_lin3r/core/utils.py", line 5, in
from prompt_toolkit.shortcuts import CompleteStyle, prompt
ImportError: cannot import name 'CompleteStyle'

@Zerx0r
Copy link

Zerx0r commented Nov 8, 2019

I solved this problem with the command below:

pip3 install prompt-toolkit --force-reinstall

@udpsec
Copy link
Author

udpsec commented Nov 9, 2019

I solved this problem with the command below:

pip3 install prompt-toolkit --force-reinstall

thanks

@udpsec udpsec closed this as completed Nov 9, 2019
@D4Vinci D4Vinci pinned this issue Nov 23, 2019
@D4Vinci D4Vinci changed the title Ubuntu 18.04 ImportError: cannot import name 'CompleteStyle' ImportError: cannot import name 'CompleteStyle' Jan 22, 2020
@D4Vinci D4Vinci added the good first issue Good for newcomers label Jan 22, 2020
@D4Vinci D4Vinci self-assigned this Jan 22, 2020
@naami2004
Copy link

I solved this problem with the command below:

pip3 install prompt-toolkit --force-reinstall

Thank you, that fixed my problem :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants