edubuntu-bugs team mailing list archive
-
edubuntu-bugs team
-
Mailing list archive
-
Message #04645
[Bug 1037168] [NEW] calibre package has bad softlink / IOError: cannot open resource
Public bug reported:
calibre looks in wrong directory for font
$ ebook-convert x.recipe x.txt
Traceback (most recent call last):
File "/usr/lib/calibre/calibre/web/feeds/news.py", line 1033, in build_index
self.default_masthead_image(self.masthead_path)
File "/usr/lib/calibre/calibre/web/feeds/news.py", line 1216, in default_masthead_image
width=self.MI_WIDTH, height=self.MI_HEIGHT)
File "/usr/lib/calibre/calibre/ebooks/__init__.py", line 244, in generate_masthead
font = ImageFont.truetype(default_font, 48, encoding='unic')
File "/home/chrb/bin/pil-116/lib/python2.5/site-packages/PIL/ImageFont.py", line 205, in truetype
return FreeTypeFont(filename, size, index, encoding)
File "/home/chrb/bin/pil-116/lib/python2.5/site-packages/PIL/ImageFont.py", line 121, in __init__
self.font = _imagingft.getfont(file, size, index, encoding)
IOError: cannot open resource
# Calibre is trying to load /usr/share/calibre/fonts/liberation/LiberationSerif-Bold.ttf because in ebooks/__init__.py we have
# font_path = default_font = P('fonts/liberation/LiberationSerif-Bold.ttf')
$ ls -l /usr/share/fonts/truetype/liberation/LiberationSerif-Bold.ttf
-rw-r--r-- 1 root root 144K Jul 12 22:12 /usr/share/fonts/truetype/liberation/LiberationSerif-Bold.ttf
$ ls -l /usr/share/calibre/fonts/liberation
lrwxrwxrwx 1 root root 35 Feb 10 2012 /usr/share/calibre/fonts/liberation -> ../../fonts/truetype/ttf-liberation
$ ls -H /usr/share/calibre/fonts/liberation
ls: cannot access /usr/share/calibre/fonts/liberation: No such file or directory
So calibre includes a softlink that points to nothing; "ttf-liberation"
should be just "liberation".
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: calibre 0.8.38+dfsg-1
ProcVersionSignature: Ubuntu 3.2.0-29.46-generic 3.2.24
Uname: Linux 3.2.0-29-generic x86_64
ApportVersion: 2.0.1-0ubuntu12
Architecture: amd64
Date: Wed Aug 15 16:37:40 2012
PackageArchitecture: all
SourcePackage: calibre
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: calibre (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug precise
--
You received this bug notification because you are a member of Edubuntu
Bugsquad, which is subscribed to calibre in Ubuntu.
https://bugs.launchpad.net/bugs/1037168
Title:
calibre package has bad softlink / IOError: cannot open resource
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/calibre/+bug/1037168/+subscriptions
Follow ups
References