gleitz / howdoi

instant coding answers via the command line
http://blog.gleitzman.com/post/43330157197/howdoi-instant-coding-answers-via-the-command-line
MIT License
10.56k stars 867 forks source link

fresh install, stuck at 1.1.9 #482

Closed luutuankiet closed 1 year ago

luutuankiet commented 1 year ago

What happened:

I installed howdoi as instructed from this github readme : pip install howdoi. But then launching howdoi howdoi returned warnings for PkgResourcesDepreciationWarning and error "Sorry, couldn't find any help with that topic"

Further digging howdoi -v turned out that my howdoi version is stuck at 1.1.9.

So, how can I upgrade this?

What you expected to happen:

/usr/lib/python3/dist-packages/pkg_resources/init.py:116: PkgResourcesDeprecationWarning: 1.16.0-unknown is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3/dist-packages/pkg_resources/init.py:116: PkgResourcesDeprecationWarning: 0.1.43ubuntu1 is an invalid version and will not be supported in a future release warnings.warn( usage: howdoi [-h] [-p POS] [-a] [-l] [-c] [-n NUM_ANSWERS] [-C] [-v] [QUERY ...] howdoi: error: unrecognized arguments: --explain

gleitz commented 1 year ago

Try pip install -U howdoi

On Sat, Mar 11, 2023 at 10:06 PM luutuankiet @.***> wrote:

What happened:

I installed howdoi as instructed from this github readme : pip install howdoi. But then launching howdoi howdoi returned warnings for PkgResourcesDepreciationWarning and error "Sorry, couldn't find any help with that topic"

Further digging howdoi -v turned out that my howdoi version is stuck at 1.1.9.

So, how can I upgrade this? What you expected to happen:

  • It returns usage guide for howdoi
  • A command to upgrade my howdoi version

Output with --explain

Please provide the output of running the same command with the --explain flag like so

$ howdoi howdoi --explain

/usr/lib/python3/dist-packages/pkg_resources/init.py:116: PkgResourcesDeprecationWarning: 1.16.0-unknown is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3/dist-packages/pkg_resources/init.py:116: PkgResourcesDeprecationWarning: 0.1.43ubuntu1 is an invalid version and will not be supported in a future release warnings.warn( usage: howdoi [-h] [-p POS] [-a] [-l] [-c] [-n NUM_ANSWERS] [-C] [-v] [QUERY ...] howdoi: error: unrecognized arguments: --explain

— Reply to this email directly, view it on GitHub https://github.com/gleitz/howdoi/issues/482, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADAP5TPF2X32DTTF7TMLG3W3VRK7ANCNFSM6AAAAAAVX5KWOE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

luutuankiet commented 1 year ago

hi still no avail, still at version 1.1.9

here's the output `pip install -U howdoi`

``` Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: howdoi in ./.local/lib/python3.10/site-packages (2.0.20) Requirement already satisfied: Pygments in ./.local/lib/python3.10/site-packages (from howdoi) (2.14.0) Requirement already satisfied: colorama in /usr/lib/python3/dist-packages (from howdoi) (0.4.4) Requirement already satisfied: appdirs in ./.local/lib/python3.10/site-packages (from howdoi) (1.4.4) Requirement already satisfied: cachelib in ./.local/lib/python3.10/site-packages (from howdoi) (0.10.2) Requirement already satisfied: rich in ./.local/lib/python3.10/site-packages (from howdoi) (13.3.2) Requirement already satisfied: pyquery in ./.local/lib/python3.10/site-packages (from howdoi) (2.0.0) Requirement already satisfied: lxml in ./.local/lib/python3.10/site-packages (from howdoi) (4.9.2) Requirement already satisfied: keep in ./.local/lib/python3.10/site-packages (from howdoi) (2.10.1) Requirement already satisfied: requests in ./.local/lib/python3.10/site-packages (from howdoi) (2.28.2) Requirement already satisfied: cssselect in ./.local/lib/python3.10/site-packages (from howdoi) (1.2.0) Requirement already satisfied: click in /usr/lib/python3/dist-packages (from keep->howdoi) (8.0.3) Requirement already satisfied: PyGithub in /usr/lib/python3/dist-packages (from keep->howdoi) (1.55) Requirement already satisfied: terminaltables in ./.local/lib/python3.10/site-packages (from keep->howdoi) (3.1.10) Requirement already satisfied: certifi>=2017.4.17 in ./.local/lib/python3.10/site-packages (from requests->howdoi) (2022.12.7) Requirement already satisfied: charset-normalizer<4,>=2 in ./.local/lib/python3.10/site-packages (from requests->howdoi) (3.1.0) Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3/dist-packages (from requests->howdoi) (3.3) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/lib/python3/dist-packages (from requests->howdoi) (1.26.5) Requirement already satisfied: markdown-it-py<3.0.0,>=2.2.0 in ./.local/lib/python3.10/site-packages (from rich->howdoi) (2.2.0) Requirement already satisfied: mdurl~=0.1 in ./.local/lib/python3.10/site-packages (from markdown-it-py<3.0.0,>=2.2.0->rich->howdoi) (0.1.2) ```

gleitz commented 1 year ago

It sounds like you have multiple versions of howdoi installed. If you type which howdoi you can see where the version is located, and perhaps delete that version so that you use the one that is at version 2.0.20 installed by pip.

luutuankiet commented 1 year ago

deleting the path set in which howdoi and reinstalling worked - i was able to install the latest version.