ocrfeeder crashed with AttributeError in expanduser(): 'NoneType' object has no attribute 'startswith'

Bug #917675 reported by Nocchy
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ocrfeeder (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

It crashed when I try to import the image

ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: ocrfeeder 0.7.7-1
ProcVersionSignature: Ubuntu 3.2.0-9.16-generic 3.2.1
Uname: Linux 3.2.0-9-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 1.90-0ubuntu2
Architecture: amd64
CrashCounter: 1
Date: Tue Jan 17 15:34:21 2012
ExecutablePath: /usr/bin/ocrfeeder
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20111128)
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcCmdline: python /usr/bin/ocrfeeder
ProcEnviron:
 PATH=(custom, no user)
 LANG=it_IT.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/ocrfeeder']
SourcePackage: ocrfeeder
Title: ocrfeeder crashed with AttributeError in expanduser(): 'NoneType' object has no attribute 'startswith'
UpgradeStatus: Upgraded to precise on 2012-01-13 (3 days ago)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

Revision history for this message
Nocchy (giannipetino) wrote :
tags: removed: need-duplicate-check
visibility: private → public
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ocrfeeder (Ubuntu):
status: New → Confirmed
Revision history for this message
Antonio Censi (accensi) wrote :

The bug still happens in ocrfeeder 0.7.7-2

Revision history for this message
Antonio Censi (accensi) wrote :

This bug is already detected and corrected upstream (although I found in the hard way, by debugging the code).

Comitted for 0.7.8

http://www.igalia.com/nc/work/project/item/ocrfeeder/

Fix Unpaper issue due to an unexisting variable gb#668027
There was a temporary_dir varibale that was left unchanged when the configuration started using TEMPORARY_FOLDER.
Thanks to Buganini Q for reporting and posting the fix.
Joaquim Rocha05/03/2012

As a temporary fix change in lib.py, routine unpaperImage at line 133
tmp_dir = configuration_manager.temporary_dir
to
tmp_dir = configuration_manager.TEMPORARY_FOLDER

Changed in ocrfeeder (Ubuntu):
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.