Hey Bartosz,

Thanks for having a look.

They are all runtime dependencies.

- charset-normalizer is a new requirement since HTTPie 2.6.0, always needed as you saw it.

- defusedxml is needed when treating XML responses. The import error would be encountered only at that time.

- requests-toolbelt is always required, but the missing charset-normalizer error is simply shadowing its requirement.

Trice are build and runtime dependencies (I guess, I am not sure about the difference: without them, HTTPie will not work properly, or not work at all).

Regards,

On 10/22/21 9:45 AM, bart...@fenski.pl wrote:

So one more thing which is most probably blocker for now.

Does new httpie depend on python-charset-normalizer? I mean for runtime.

(fenio@debian) ➜ httpiehttp
Traceback (most recent call last):
 File "/usr/bin/http", line 33, in <module>
   sys.exit(load_entry_point('httpie==2.6.0', 'console_scripts', 'http')())  File "/usr/lib/python3/dist-packages/httpie/__main__.py", line 8, in main
   from httpie.core import main
 File "/usr/lib/python3/dist-packages/httpie/core.py", line 13, in <module>
   from .client import collect_messages
 File "/usr/lib/python3/dist-packages/httpie/client.py", line 15, in <module>
   from .encoding import UTF8
 File "/usr/lib/python3/dist-packages/httpie/encoding.py", line 3, in <module>
   from charset_normalizer import from_bytes
ModuleNotFoundError: No module named 'charset_normalizer'

If that's the case then this package is not yet available in Debian. It sits in NEW queue[1][2].

Also I was able to build package without python3-defusedxml, python3-socks and python3-requests-toolbelt.

Are these really build dependencies? Or maybe they are also runtime dependencies but I didn't hit issues with them since charset normalizer is being called prior to them?

regards
Bartosz Fenski


On 2021-10-14 16:50, Mickaël Schoentgen wrote:

Package: httpie
Severity: normal

Hello dear maintainers,

I've just released HTTPie 2.6.0, it brings interesting changes and bug fixes:

- Added support for formatting & coloring of JSON bodies preceded by non-JSON 
data (e.g., an XXSI prefix).
- Added charset auto-detection when Content-Type doesn't include it.
- Added --response-charset to allow overriding the response encoding for 
terminal display purposes.
- Added --response-mime to allow overriding the response mime type for coloring 
and formatting for the terminal.
- Added the ability to silence warnings through using -q or --quiet twice (e.g. 
-qq).
- Added installed plugin list to --debug output.
- Fixed duplicate keys preservation in JSON data.

I guess the bug report about upgrading HTTPie 2.5.0 should be closed then 
(#993937)?

Thanks in advance.

Note: I changed the severity from wishlist to normal as HTTPie is obsolete on 
every Debian-derived distributions (mostly because it is too on Debian itself).
       I kindly hope to improve the situation, maybe is there another way to 
make the process smoother, and painless, for everyone?
--
Mickaël Schoentgen
https://www.tiger-222.fr  <https://www.tiger-222.fr>

--
Mickaël SCHOENTGEN
https://www.tiger-222.fr

Reply via email to