Coder Social home page Coder Social logo

Comments (7)

llchan avatar llchan commented on June 1, 2024 1

Sorry if I'm misreading something, but I think that commit bumps to prompt-toolkit v2 but this issue is about prompt-toolkit v3?

from http-prompt.

Rabbit9090 avatar Rabbit9090 commented on June 1, 2024 1

@#
Duplicate of #mm mail

from http-prompt.

D4N avatar D4N commented on June 1, 2024

I'd like to add a +1 to this request, as I ran into exactly this issue when trying to package http-prompt for Fedora, where we have prompt_toolkit version 3.

from http-prompt.

BoboTiG avatar BoboTiG commented on June 1, 2024

Done with 6943959.

from http-prompt.

rixx avatar rixx commented on June 1, 2024

Yeah, +1 – I can't use http-prompt on my laptop anymore, because the system version of prompt_toolkit is v3, and http-prompt doesn't work with that one:

ImportError: cannot import name 'AbortAction' from 'prompt_toolkit' (/usr/lib/python3.9/site-packages/prompt_toolkit/__init__.py)

In the meantime, it would be nice to have an easy way to start http-prompt via Python, like python -m http_prompt or python -m http_prompt.cli, because that makes running http-prompt from a virtualenv much easier. If you want to do this, find your cli.py file and add two lines at the bottom:

if __name__ == "__main__":
    cli()

from http-prompt.

alcir avatar alcir commented on June 1, 2024

bump

from http-prompt.

uda avatar uda commented on June 1, 2024

I didn't install in the system level, rather through pyenv, and I usually install ipython as part of adding a python version, but ipython and http-prompt can't be in the same venv or pyenv because of this dependency clash

So updating to v3 would really help

But since http-prompt does not involve python coding, I opted for using it as a tool and not another python package, so installing with pipx did the trick:

pip uninstall -y http-prompt
pip install -U pipx
pipx install http-prompt

from http-prompt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.