Bug 1140413

Summary: python3-dateutil should R python3-six
Product: [Fedora] Fedora Reporter: Jerry James <loganjerry>
Component: python-dateutilAssignee: Jef Spaleta <jspaleta>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: gwync, jspaleta, tomspur
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: python3-dateutil-2.2-2.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-23 04:22:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jerry James 2014-09-10 22:56:14 UTC
Description of problem:
I just diagnosed a build failure with sympy on python3.  Through a long chain of imports, it ultimately tries to import some python3-dateutil modules, but the import fails because python3-six is not in the build root.

$ cd /usr/lib/python3.4/site-packages/dateutil
$ grep six *.py
tz.py:from six import string_types, PY3
tz.py:        # sixteen bytes reserved for future use, followed by
tz.py:        # six four-byte values of type long, written in a
rrule.py:from six import advance_iterator, integer_types
parser.py:from six import text_type, binary_type, integer_types
relativedelta.py:from six import integer_types

python3-dateutil should have "Requires: python3-six" so these imports will succeed.

Version-Release number of selected component (if applicable):
python3-dateutil-2.2-1.fc22.noarch

How reproducible:
Always.

Steps to Reproduce:
1. Install python3-dateutil on a Rawhide machine that does not have python3-six installed.
2. Run python3
3. import dateutil.tz

Actual results:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.4/site-packages/dateutil/tz.py", line 9, in <module>
    from six import string_types, PY3
ImportError: No module named 'six'

Expected results:
Successful import.

Additional info:
The python2 version, python-dateutil, does not have the same problem.

Comment 1 Fedora Update System 2014-09-16 22:17:53 UTC
python3-dateutil-2.2-2.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/python3-dateutil-2.2-2.fc21

Comment 2 Fedora Update System 2014-09-18 16:12:08 UTC
Package python3-dateutil-2.2-2.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing python3-dateutil-2.2-2.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-10903/python3-dateutil-2.2-2.fc21
then log in and leave karma (feedback).

Comment 3 Fedora Update System 2014-09-23 04:22:07 UTC
python3-dateutil-2.2-2.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.