[opensuse-factory] python3 packages fail in factory but are ok in tumbleweed
Hi I try to build some python3 packages they build fine in tumbleweed but fail in factory https://build.opensuse.org/project/monitor/home:ealin:ml the error is [ 105s] Traceback (most recent call last): [ 105s] File "setup.py", line 518, in <module> [ 105s] from wheel.bdist_wheel import bdist_wheel [ 105s] File "/usr/lib/python3.4/site-packages/wheel/bdist_wheel.py", line 22, in <module> [ 105s] import pkg_resources [ 105s] File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 3143, in <module> [ 105s] @_call_aside [ 105s] File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 3129, in _call_aside [ 105s] f(*args, **kwargs) [ 105s] File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 3156, in _initialize_master_working_set [ 105s] working_set = WorkingSet._build_master() [ 105s] File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 649, in _build_master [ 105s] ws = cls() [ 105s] File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 642, in __init__ [ 105s] self.add_entry(entry) [ 105s] File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 698, in add_entry [ 105s] for dist in find_distributions(entry, True): [ 105s] File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2136, in find_on_path [ 105s] path_item, entry, metadata, precedence=DEVELOP_DIST [ 105s] File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2518, in from_location [ 105s] version = cls._version_from_metadata(dist_path) or version [ 105s] File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2841, in _version_from_metadata [ 105s] return _version_from_file(strm) [ 105s] File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2483, in _version_from_file [ 105s] line = next(iter(version_lines), '') [ 105s] File "/usr/lib64/python3.4/encodings/ascii.py", line 26, in decode [ 105s] return codecs.ascii_decode(input, self.errors)[0] [ 105s] UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 1189: ordinal not in range(128) [ 105s] error: Bad exit status from /var/tmp/rpm-tmp.aj8Foy (%build) all this started sometime today... I do not remember when... Alin Without Questions there are no Answers! ______________________________________________________________________ Dr. Alin Marin ELENA http://alin.elena.space/ ______________________________________________________________________ -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Tuesday 01 December 2015 20.33:57 Alin Marin Elena wrote:
Hi I try to build some python3 packages they build fine in tumbleweed but fail in factory https://build.opensuse.org/project/monitor/home:ealin:ml the error is
[ 105s] Traceback (most recent call last): [ 105s] File "setup.py", line 518, in <module> [ 105s] from wheel.bdist_wheel import bdist_wheel [ 105s] File "/usr/lib/python3.4/site-packages/wheel/bdist_wheel.py", line 22, in <module> [ 105s] import pkg_resources [ 105s] File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 3143, in <module> [ 105s] @_call_aside [ 105s] File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 3129, in _call_aside [ 105s] f(*args, **kwargs) [ 105s] File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 3156, in _initialize_master_working_set [ 105s] working_set = WorkingSet._build_master() [ 105s] File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 649, in _build_master [ 105s] ws = cls() [ 105s] File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 642, in __init__ [ 105s] self.add_entry(entry) [ 105s] File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 698, in add_entry [ 105s] for dist in find_distributions(entry, True): [ 105s] File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2136, in find_on_path [ 105s] path_item, entry, metadata, precedence=DEVELOP_DIST [ 105s] File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2518, in from_location [ 105s] version = cls._version_from_metadata(dist_path) or version [ 105s] File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2841, in _version_from_metadata [ 105s] return _version_from_file(strm) [ 105s] File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2483, in _version_from_file [ 105s] line = next(iter(version_lines), '') [ 105s] File "/usr/lib64/python3.4/encodings/ascii.py", line 26, in decode [ 105s] return codecs.ascii_decode(input, self.errors)[0] [ 105s] UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 1189: ordinal not in range(128) [ 105s] error: Bad exit status from /var/tmp/rpm-tmp.aj8Foy (%build)
all this started sometime today... I do not remember when...
Alin
Without Questions there are no Answers! ______________________________________________________________________ Dr. Alin Marin ELENA http://alin.elena.space/ ______________________________________________________________________
I'm pretty sure you find it since then this is what I'm using mostly for tests in python3 packaging obs build doesn't set a UTF-8 aware env leading some part of python3 to use the ascii decode wrongly # LC is mandatory to have codec using utf-8.py and not ascii export LC_ALL=en_US.UTF-8; nosetests-%{py3_ver} tests -v -- Bruno Friedmann Ioda-Net Sàrl www.ioda-net.ch openSUSE Member & Board, fsfe fellowship GPG KEY : D5C9B751C4653227 irc: tigerfoot -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Saturday 05 December 2015 19:15:42 Bruno Friedmann wrote:
On Tuesday 01 December 2015 20.33:57 Alin Marin Elena wrote: I'm pretty sure you find it since then
this is what I'm using mostly for tests in python3 packaging obs build doesn't set a UTF-8 aware env leading some part of python3 to use the ascii decode wrongly
# LC is mandatory to have codec using utf-8.py and not ascii export LC_ALL=en_US.UTF-8; nosetests-%{py3_ver} tests -v
IMHO, this is the wrong approach. Any open()ing of files should specify the codec used for the files content. https://docs.python.org/3.4/library/functions.html#open Kind regards, Stefan -- Stefan Brüns / Bergstraße 21 / 52062 Aachen home: +49 241 53809034 mobile: +49 151 50412019 work: +49 2405 49936-424 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (3)
-
Alin Marin Elena
-
Bruno Friedmann
-
Stefan Bruens