Bug 1204791

Summary: python-pelican should depend on python-dateutil
Product: [Fedora] Fedora Reporter: Stef Walter <stefw>
Component: python-pelicanAssignee: Matthias Runge <mrunge>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: jamielinux, lnie, marcelo.barbosa, mrunge, stefw
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-pelican-3.5.0-2.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-21 18:58:44 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 Stef Walter 2015-03-23 13:56:39 UTC
Description of problem:

I see the following error when running pelican's 'make html':

pelican /data/blog/content -o /data/blog/output -s /data/blog/pelicanconf.py 
Traceback (most recent call last):
  File "/usr/bin/pelican", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3018, in <module>
    working_set = WorkingSet._build_master()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 612, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 918, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 805, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: python-dateutil


Version-Release number of selected component (if applicable):

python-pelican-3.5.0-1.fc22.noarch

How reproducible:

Every time

Steps to Reproduce:
1. make html

Comment 1 Stef Walter 2015-03-23 14:12:19 UTC
In addition pytz seems to be missing or invalid:

pelican /data/blog/content -o /data/blog/output -s /data/blog/pelicanconf.py 
Traceback (most recent call last):
  File "/usr/bin/pelican", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3018, in <module>
    working_set = WorkingSet._build_master()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 614, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 627, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 805, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: pytz>=0a
Makefile:56: recipe for target 'html' failed

Comment 2 Stef Walter 2015-03-23 15:36:31 UTC
I tried patching the spec file (rather than just complaining) but was unable to get past the second issue noted in comment#1

Comment 3 Matthias Runge 2015-03-23 19:27:14 UTC
Stef, you're right, python-dateutil is missing in requirements. But, that being said, I'm unable to reproduce your issue.

I'm using pelican for my own blog. 

rpm -q python-dateutil pytz
python-dateutil-1.5-0.fc21.noarch
pytz-2012d-7.fc21.noarch

and make html works for me as expected. 

Would you be able to share your pelicanconf.py? If you'd prefer not to share it publicly, you could send it to me directly via email.

Comment 4 Stef Walter 2015-03-24 12:12:03 UTC
Created attachment 1005814 [details]
pelicanconf.py

Comment 5 Fedora Update System 2015-04-08 17:38:17 UTC
python-pelican-3.5.0-2.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/python-pelican-3.5.0-2.fc22

Comment 6 Matthias Runge 2015-04-08 17:38:58 UTC
Sorry, that this took so long. I didn't meant to delay this on purpose.

Comment 7 lnie 2015-04-09 05:40:53 UTC
python-pelican-3.5.0-2.fc22 works

Comment 8 Fedora Update System 2015-04-09 16:45:03 UTC
Package python-pelican-3.5.0-2.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing python-pelican-3.5.0-2.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-5876/python-pelican-3.5.0-2.fc22
then log in and leave karma (feedback).

Comment 9 Fedora Update System 2015-04-21 18:58:44 UTC
python-pelican-3.5.0-2.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.