Bug 1393397

Summary: Missing Python3 requires
Product: [Fedora] Fedora Reporter: Pierre Fersing <pierre.fersing>
Component: python-tzlocalAssignee: Piotr Popieluch <piotr1212>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 24CC: piotr1212
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://pkgs.fedoraproject.org/cgit/rpms/python-tzlocal.git/tree/python-tzlocal.spec?id=301f148607438f74267b9c85a2435ecfdb9d9e9d#n33
Whiteboard:
Fixed In Version: python-tzlocal-1.2-6.fc23 python-tzlocal-1.2-6.fc24 python-tzlocal-1.2-6.fc25 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-19 07:25:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Pierre Fersing 2016-11-09 13:00:59 UTC
User-Agent:       Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0
Build Identifier: 

When installing python3-tzlocal on Fedora 24, tzlocal don't work due to missing dependency with pytz.


Reproducible: Always

Steps to Reproduce:
1. On a clean Fedora installation, at least one without python3-pytz pre-installed
2. dnf install python3-tzlocal
3. python3 -c "import tzlocal"

Actual Results:  
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3.5/site-packages/tzlocal/__init__.py", line 7, in <module>
    from tzlocal.unix import get_localzone, reload_localzone
  File "/usr/lib/python3.5/site-packages/tzlocal/unix.py", line 4, in <module>
    import pytz
ImportError: No module named 'pytz'


I think this is due to misplaced requires line. The python3-pytz requires is added to python-tzlocal (the Python 2 package) instead of python3-tzlocal.

A simple workaround is to explicitly install python3-pytz which solve this issue.

Also this bug seems still present in rawhide (misplaced requires line is present in latest master of http://pkgs.fedoraproject.org/cgit/rpms/python-tzlocal.git)

Comment 1 Fedora Update System 2016-11-09 20:37:40 UTC
python-tzlocal-1.2-6.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-515dd5d22e

Comment 2 Fedora Update System 2016-11-09 20:38:11 UTC
python-tzlocal-1.2-6.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-be20d9c46a

Comment 3 Fedora Update System 2016-11-09 20:38:34 UTC
python-tzlocal-1.2-6.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-cc3b8a4fce

Comment 4 Fedora Update System 2016-11-10 19:26:56 UTC
python-tzlocal-1.2-6.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-515dd5d22e

Comment 5 Fedora Update System 2016-11-11 04:23:14 UTC
python-tzlocal-1.2-6.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-cc3b8a4fce

Comment 6 Fedora Update System 2016-11-11 05:01:43 UTC
python-tzlocal-1.2-6.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-be20d9c46a

Comment 7 Fedora Update System 2016-11-19 07:25:32 UTC
python-tzlocal-1.2-6.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2016-11-19 17:24:40 UTC
python-tzlocal-1.2-6.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2016-11-19 21:15:30 UTC
python-tzlocal-1.2-6.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.