Python syntax error in textobject.py
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-reportlab (Debian) |
New
|
Undecided
|
Unassigned | ||
python-reportlab (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Traceback (most recent call last):
...
File "/usr/lib/
lines = '\n'.split(
ValueError: empty separator
This is a split, not a join. The fix is to change the line to:
lines = asUnicode(
% lsb_release -rd
Description: Ubuntu 14.04 LTS
Release: 14.04
% apt-cache policy python-reportlab
python-reportlab:
Installed: 3.0-1build1
Candidate: 3.0-1build1
Version table:
*** 3.0-1build1 0
500 http://
100 /var/lib/
This was discovered as part of an attempted PDF export in ocrfeeder.
The PDF was not exported until I manually went into this python module and fixed the syntax error. The fix produced the desired result.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: python-reportlab 3.0-1build1 [modified: usr/lib/
ProcVersionSign
Uname: Linux 3.13.0-24-generic x86_64
ApportVersion: 2.14.1-0ubuntu3
Architecture: amd64
CurrentDesktop: XFCE
Date: Sun May 18 10:13:31 2014
InstallationDate: Installed on 2012-09-09 (615 days ago)
InstallationMedia: Ubuntu-Server 12.04.1 LTS "Precise Pangolin" - Release amd64 (20120817.3)
PackageArchitec
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/usr/bin/zsh
SourcePackage: python-reportlab
UpgradeStatus: Upgraded to trusty on 2014-04-26 (22 days ago)
Status changed to 'Confirmed' because the bug affects multiple users.