Bug 559864

Summary: cannot fetch custom news sources
Product: [Fedora] Fedora Reporter: Jerry Werner <g.werner>
Component: calibreAssignee: Ionuț Arțăriși <ionut>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: ionut, ortizsantini
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 0.6.36-1.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-02-02 01:07:42 UTC Type: ---
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 Werner 2010-01-29 08:45:28 UTC
Description of problem:
 If I run the binary version of CALIBRE, I can fetch custom news sources.
 The same recipe on the Fedora 12 version cannot fetch custom news sources.
 Following is the recipe and tail of the log:

 ===== recipe =====
 class AdvancedUserRecipe1264697614(BasicNewsRecipe):
     title          = u'SANS INFOCon'
     oldest_article = 7
     max_articles_per_feed = 100

     feeds          = [(u'Internet Storm Center Infocon',
 u'http://images.dshield.org/rssfeed.xml')]

 ===== log tail =====
 Flattening CSS and remapping font sizes...
 Traceback (most recent call last):
   File "/usr/bin/calibre-parallel", line 19, in <module>
     sys.exit(main())
   File "/usr/lib/calibre/calibre/utils/ipc/worker.py", line 98, in main
     result = func(*args, **kwargs)
   File "/usr/lib/calibre/calibre/gui2/convert/gui_conversion.py", line 24,
 in gui_convert
     plumber.run()
   File "/usr/lib/calibre/calibre/ebooks/conversion/plumber.py", line 825,
 in run
     flattener(self.oeb, self.opts)
   File "/usr/lib/calibre/calibre/ebooks/oeb/transforms/flatcss.py", line
 122, in __call__
     self.stylize_spine()
   File "/usr/lib/calibre/calibre/ebooks/oeb/transforms/flatcss.py", line
 146, in stylize_spine
     extra_css=css)
   File "/usr/lib/calibre/calibre/ebooks/oeb/stylizer.py", line 169, in
 __init__
     rules.extend(self.flatten_rule(rule, href, index))
   File "/usr/lib/calibre/calibre/ebooks/oeb/stylizer.py", line 233, in
 flatten_rule
     style = self.flatten_style(rule.style)
   File "/usr/lib/calibre/calibre/ebooks/oeb/stylizer.py", line 253, in
 flatten_style
     style.update(self._normalize_font(prop.cssValue))
   File "/usr/lib/calibre/calibre/ebooks/oeb/stylizer.py", line 343, in
 _normalize_font
     if cssprofiles.validate(key, value):
 AttributeError: 'module' object has no attribute 'validate'


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


How reproducible: every time with any custom recipe


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Ionuț Arțăriși 2010-01-29 16:27:07 UTC
Thanks a lot, Jerry!

I've submitted an update with a fix. Would you like to try the build and comment in Bodhi?

Comment 2 Fedora Update System 2010-01-29 16:28:56 UTC
calibre-0.6.36-1.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/calibre-0.6.36-1.fc12

Comment 3 Ionuț Arțăriși 2010-01-30 08:15:54 UTC
*** Bug 559531 has been marked as a duplicate of this bug. ***

Comment 4 Boricua 2010-01-30 13:07:07 UTC
Hi Ionuț:
I'm the author of bug 559531, applied the new update and everything seems to be working fine, including downloading elpais.es and endi.com.  The new update even includes a nice touch I didn't notice before, which is a popup window informing finish if each download.  Nice job.

Comment 5 Fedora Update System 2010-02-01 01:04:18 UTC
calibre-0.6.36-1.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update calibre'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-1242

Comment 6 Fedora Update System 2010-02-02 01:07:37 UTC
calibre-0.6.36-1.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.