[Pkg-javascript-devel] Bug#907686: npm2deb: chokes on parsing mocha when locale is C
Jonas Smedegaard
dr at jones.dk
Fri Aug 31 12:27:54 BST 2018
Package: npm2deb
Version: 0.2.8-1
Severity: normal
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Attempting to follow https://wiki.debian.org/Javascript/Nodejs/Tasks to
resolve dependencies of node-server, in a limited environment (a
cowbuilder chroot) with "C" a locale, caused the following failure:
Traceback (most recent call last):
File "js_task_edit.py", line 230, in <module>
main()
File "js_task_edit.py", line 213, in main
build_deps = get_builddeps(module_name)
File "js_task_edit.py", line 161, in get_builddeps
debian = get_debian(dep)
File "js_task_edit.py", line 80, in get_debian
npm2deb_instance = _Npm2Deb(module_name)
File "/usr/lib/python3/dist-packages/npm2deb/__init__.py", line 57, in __init__
self.read_package_info()
File "/usr/lib/python3/dist-packages/npm2deb/__init__.py", line 363, in read_package_info
(self.name, self.version))
File "/usr/lib/python3.6/subprocess.py", line 517, in getstatusoutput
data = check_output(cmd, shell=True, universal_newlines=True, stderr=STDOUT)
File "/usr/lib/python3.6/subprocess.py", line 336, in check_output
**kwargs).stdout
File "/usr/lib/python3.6/subprocess.py", line 405, in run
stdout, stderr = process.communicate(input, timeout=timeout)
File "/usr/lib/python3.6/subprocess.py", line 830, in communicate
stdout = self.stdout.read()
File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 26639: ordinal not in range(128)
- Jonas
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEn+Ppw2aRpp/1PMaELHwxRsGgASEFAluJJjcACgkQLHwxRsGg
ASEkQg//Vt0CA4Bay7GoG5OYgVw/08H7TYctsb3zyZcAfPyaAwVwFukPBroP2cBj
M2zHsX25aqf2Kc5UeeQjxGc5/j2MhDc+8NUxOOB/V+GWR4PRRcvGg5vX4IUs0nlU
2SOldfQ+bx+M/+NJZiX+9koqywfmH3uTAPwvwIv3CdmmpON3ppNNx+XeHDXIAejd
WApy67v3IoRBY+PNvkzcSKHQCv3CTrcLR+ar1YYTtwGD705F0IhEDp4/9Ld17Nc9
RDYftoQo95L0S5LfPqEt7idTOo5qogMCGJu6sS+4LEJNlIdI1MIRJ7x09FMlodcy
k5k0+I5CmHTOxUY/22eo5uw+c2cU4l4UnpzujU3U1tbTYD03JN3xkj1SPQKqbi6p
oMvk+SqWLtq81QZuK0IFYKiCsRCoWzScAYUaal0mbCAIHJJnsuMtsuG6oDSLano2
BJjVDYNLTEhEwN26aKQ/ONbL2Myo/Hcjvc9EdiTTsKHw2eZ9iuqVkLt8bfxXtD1s
vLNeV//BY49YqOKkoEl46RCj2Hf7vqLrwVgV9dfAqdj1VJ0yJ7Y6d+NvkTYjjEJ3
wqlghO6NJ6cDnDBrS/2u7fg98D5TdgOKukN/KDJE0GjENaqcObemFta6IDwmqcAX
9D/3e+mbSCeLpKxAdirThHIPjBc+mNILVX9uRkyziorxn5KvCr0=
=IlLy
-----END PGP SIGNATURE-----
More information about the Pkg-javascript-devel
mailing list