Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 651610 - media-sound/picard-2.0.0_beta2 - src_compile(): UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 166: ordinal not in range(128)
Summary: media-sound/picard-2.0.0_beta2 - src_compile(): UnicodeDecodeError: 'ascii' c...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-26 16:46 UTC by gerion
Modified: 2018-04-01 23:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gerion 2018-03-26 16:46:39 UTC
The installation of picard 2.0 fails.

Error in short:
/usr/bin/python3.6 setup.py build --disable-autoupdate
Traceback (most recent call last):
  File "setup.py", line 644, in <module>
    setup(**args)
  File "/usr/lib64/python3.6/site-packages/setuptools/__init__.py", line 128, in setup
    _install_setup_requires(attrs)
  File "/usr/lib64/python3.6/site-packages/setuptools/__init__.py", line 121, in _install_setup_requires
    dist.parse_config_files(ignore_option_errors=True)
  File "/usr/lib64/python3.6/site-packages/setuptools/dist.py", line 431, in parse_config_files
    _Distribution.parse_config_files(self, filenames=filenames)
  File "/usr/lib64/python3.6/distutils/dist.py", line 395, in parse_config_files
    parser.read(filename)
  File "/usr/lib64/python3.6/configparser.py", line 697, in read
    self._read(fp, filename)
  File "/usr/lib64/python3.6/configparser.py", line 1015, in _read
    for lineno, line in enumerate(fp, start=1):
  File "/usr/lib64/python3.6/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 166: ordinal not in range(128)

Long output:
```
# emerge -pqv '=media-sound/picard-2.0.0_beta2::gentoo'
[ebuild     U ] media-sound/picard-2.0.0_beta2 [1.4.2] USE="nls" PYTHON_SINGLE_TARGET="python3_6%* -python3_5%" PYTHON_TARGETS="python3_5%* python3_6%* (-python2_7%*)"

# cat /var/tmp/portage/media-sound/picard-2.0.0_beta2/temp/build.log
 * Package:    media-sound/picard-2.0.0_beta2
 * Repository: gentoo
 * Maintainer: sound@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux nls python_single_target_python3_6 python_targets_python3_5 python_targets_python3_6 userland_GNU
 * FEATURES:   ccache preserve-libs sandbox splitdebug userpriv usersandbox
>>> Unpacking source...
>>> Unpacking picard-2.0.0_beta2.tar.gz to /var/tmp/portage/media-sound/picard-2.0.0_beta2/work
>>> Source unpacked in /var/tmp/portage/media-sound/picard-2.0.0_beta2/work
>>> Preparing source in /var/tmp/portage/media-sound/picard-2.0.0_beta2/work/picard-2.0.0dev5 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-sound/picard-2.0.0_beta2/work/picard-2.0.0dev5 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/media-sound/picard-2.0.0_beta2/work/picard-2.0.0dev5 ...
/usr/bin/python3.6 setup.py build --disable-autoupdate
Traceback (most recent call last):
  File "setup.py", line 644, in <module>
    setup(**args)
  File "/usr/lib64/python3.6/site-packages/setuptools/__init__.py", line 128, in setup
    _install_setup_requires(attrs)
  File "/usr/lib64/python3.6/site-packages/setuptools/__init__.py", line 121, in _install_setup_requires
    dist.parse_config_files(ignore_option_errors=True)
  File "/usr/lib64/python3.6/site-packages/setuptools/dist.py", line 431, in parse_config_files
    _Distribution.parse_config_files(self, filenames=filenames)
  File "/usr/lib64/python3.6/distutils/dist.py", line 395, in parse_config_files
    parser.read(filename)
  File "/usr/lib64/python3.6/configparser.py", line 697, in read
    self._read(fp, filename)
  File "/usr/lib64/python3.6/configparser.py", line 1015, in _read
    for lineno, line in enumerate(fp, start=1):
  File "/usr/lib64/python3.6/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 166: ordinal not in range(128)
 * ERROR: media-sound/picard-2.0.0_beta2::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  124:  Called src_compile
 *   environment, line 3739:  Called distutils-r1_src_compile
 *   environment, line  850:  Called _distutils-r1_run_foreach_impl 'python_compile'
 *   environment, line  373:  Called distutils-r1_run_phase 'python_compile'
 *   environment, line  843:  Called python_compile
 *   environment, line 2872:  Called distutils-r1_python_compile '--disable-autoupdate'
 *   environment, line  718:  Called esetup.py 'build' '--disable-autoupdate'
 *   environment, line 1402:  Called die
 * The specific snippet of code:
 *       "${@}" || die "${die_args[@]}";
 * 
 * If you need support, post the output of `emerge --info '=media-sound/picard-2.0.0_beta2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-sound/picard-2.0.0_beta2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-sound/picard-2.0.0_beta2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-sound/picard-2.0.0_beta2/temp/environment'.
 * Working directory: '/var/tmp/portage/media-sound/picard-2.0.0_beta2/work/picard-2.0.0dev5'
 * S: '/var/tmp/portage/media-sound/picard-2.0.0_beta2/work/picard-2.0.0dev5'
```

I can attach info and environment, if needed. They are too long for bugzilla.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2018-03-27 07:03:05 UTC
(In reply to gerion from comment #0)
> I can attach info and environment, if needed. They are too long for bugzilla.

You can use any compression utility you like on those files and attach the resulting compressed files.
Comment 2 gerion 2018-04-01 23:07:15 UTC
Sorry, I was in a hurry, so I don't prepare the upload of the files.

However, I investigated the issue myself, since it works fine on another PC with Gentoo.

I found the issue: I had a portage bashrc where LC_ALL and LANG was set to C.
This results in the CODESET ANSI_X3.4-1968 (calling nl_langinfo of glibc). The codeset is then the output of locale.getpreferredenconding(False) of Python, what again lead to the opening of files in the codeset ANSI_X3.4-1968, what resulted in above error.

Therefore this bug is not bug (as long as you have set your LANG to UTF-8).