Github messages for voidlinux
 help / color / mirror / Atom feed
From: hholst80 <hholst80@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: `httpie` crash
Date: Thu, 06 Jul 2023 17:22:15 +0200	[thread overview]
Message-ID: <20230706152215.bqzZd_XuJU-kXn46mPkTSLIPk-MdpbxfUbW-lKJIqaM@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41958@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1943 bytes --]

New comment by hholst80 on void-packages repository

https://github.com/void-linux/void-packages/issues/41958#issuecomment-1623619582

Comment:
@notramo please try this

```
[I] root@trump /u/l/p/s/h/cli# pwd
/usr/lib/python3.11/site-packages/httpie/cli
[I] root@trump /u/l/p/s/h/cli# python3
Python 3.11.4 (main, Jun  8 2023, 02:02:15) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import definition
>>> definition.__doc__
'\nHTTPie: modern, user-friendly command-line HTTP client for the API era.\n\n'
>>>
```

```
[I] root@trump ~# python3
Python 3.11.4 (main, Jun  8 2023, 02:02:15) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import httpie.cli.definition
>>> httpie.cli.definition.__file__
'/usr/lib/python3.11/site-packages/httpie/cli/definition.py'
>>>
```

```
[I] root@trump ~# cat /usr/bin/https
#!/usr/bin/python3
# EASY-INSTALL-ENTRY-SCRIPT: 'httpie==3.2.2','console_scripts','https'
import re
import sys

# for compatibility with easy_install; see #2198
__requires__ = 'httpie==3.2.2'

try:
    from importlib.metadata import distribution
except ImportError:
    try:
        from importlib_metadata import distribution
    except ImportError:
        from pkg_resources import load_entry_point


def importlib_load_entry_point(spec, group, name):
    dist_name, _, _ = spec.partition('==')
    matches = (
        entry_point
        for entry_point in distribution(dist_name).entry_points
        if entry_point.group == group and entry_point.name == name
    )
    return next(matches).load()


globals().setdefault('load_entry_point', importlib_load_entry_point)


if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
    sys.exit(load_entry_point('httpie==3.2.2', 'console_scripts', 'https')())
[I] root@trump ~#
```

      parent reply	other threads:[~2023-07-06 15:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-30 13:33 [ISSUE] " notramo
2023-01-30 18:46 ` classabbyamp
2023-01-30 22:03 ` notramo
2023-01-30 22:27 ` classabbyamp
2023-01-30 22:34 ` notramo
2023-01-30 23:57 ` paper42
2023-07-06 12:46 ` hholst80
2023-07-06 15:18 ` hholst80
2023-07-06 15:22 ` hholst80 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230706152215.bqzZd_XuJU-kXn46mPkTSLIPk-MdpbxfUbW-lKJIqaM@z \
    --to=hholst80@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).