Your message dated Fri, 1 Nov 2019 12:18:47 +1300
with message-id <[email protected]>
and subject line Re: Bug#848508: fails to work with LANG=C
has caused the Debian Bug report #848508,
regarding fails to work with LANG=C
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
848508: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=848508
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: magic-wormhole
Version: 0.8.1-2
Severity: normal
joey@darkstar:~>LANG=C wormhole receive
Traceback (most recent call last):
File "/usr/bin/wormhole", line 11, in <module>
load_entry_point('magic-wormhole==0.8.1', 'console_scripts', 'wormhole')()
File "/usr/lib/python3/dist-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 675, in main
_verify_python3_env()
File "/usr/lib/python3/dist-packages/click/_unicodefun.py", line 119, in
_verify_python3_env
'mitigation steps.' + extra)
RuntimeError: Click will abort further execution because Python 3 was
configured to use ASCII as encoding for the environment. Either run this under
Python 2 or consult http://click.pocoo.org/python3/ for mitigation steps.
This system supports the C.UTF-8 locale which is recommended.
You might be able to resolve your issue by exporting the
following environment variables:
export LC_ALL=C.UTF-8
export LANG=C.UTF-8
Shouldn't LANG=C be supported by everything?
This is kind of a problem for scripting use of wormhole, when any
translations of the output need to be avoided. While C.UTF-8 is
available in recent versions of Debian, I doubt it's available widely
elsewhere. For example, it's not available on OSX.
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.8.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages magic-wormhole depends on:
ii python3-autobahn 0.14.1+dfsg1-2
ii python3-click 6.6-1
ii python3-hkdf 0.0.3-1
ii python3-nacl 1.0.1-2
ii python3-six 1.10.0-3
ii python3-spake2 0.7-2
ii python3-tqdm 4.8.4-1
ii python3-twisted 16.6.0-2
pn python3:any <none>
magic-wormhole recommends no packages.
magic-wormhole suggests no packages.
-- no debconf information
--
see shy jo
signature.asc
Description: PGP signature
--- End Message ---
--- Begin Message ---
Control: fixed -1 python3-defaults 3.7.1-2
On Sat, Dec 17, 2016 at 04:17:26PM -0400, Joey Hess wrote:
> joey@darkstar:~>LANG=C wormhole receive
> Traceback (most recent call last):
> File "/usr/bin/wormhole", line 11, in <module>
> load_entry_point('magic-wormhole==0.8.1', 'console_scripts',
> 'wormhole')()
> File "/usr/lib/python3/dist-packages/click/core.py", line 716, in __call__
> return self.main(*args, **kwargs)
> File "/usr/lib/python3/dist-packages/click/core.py", line 675, in main
> _verify_python3_env()
> File "/usr/lib/python3/dist-packages/click/_unicodefun.py", line 119, in
> _verify_python3_env
> 'mitigation steps.' + extra)
> RuntimeError: Click will abort further execution because Python 3 was
> configured to use ASCII as encoding for the environment. Either run this
> under Python 2 or consult http://click.pocoo.org/python3/ for mitigation
> steps.
>
> This system supports the C.UTF-8 locale which is recommended.
> You might be able to resolve your issue by exporting the
> following environment variables:
>
> export LC_ALL=C.UTF-8
> export LANG=C.UTF-8
This error no longer occurs with the current magic-wormhole package in
unstable.
A little sleuthing found me:
| Note (Python 3.7 onwards): Even though your locale may not be properly
| configured, Python 3.7 Click will not raise the above exception
| because Python 3.7 programs are better at choosing default locales.
https://click.palletsprojects.com/en/7.x/python3/
So it seems this was actually fixed by Python 3.7 - marking as such and
closing. That should mean this is fixed in buster too, but I haven't
tested this.
Cheers,
Olly
--- End Message ---