bugFonty Python - Bugs: bug #32324, start_fontypython crashed with...

 
 

bug #32324: start_fontypython crashed with OSError in __init__()

Submitted by:  Christopher M. Penalver <penalvch>
Submitted on:  Wed 02 Feb 2011 05:10:22 AM UTC  
 
Category: NoneSeverity: 2 - Minor
Item Group: NoneStatus: In Progress
Privacy: PublicAssigned to: Donn Ingle <donningle>
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 02 Feb 2011 07:20:38 AM UTC, comment #1:

Christopher, thank you for that rich and helpful bug report. I wish all were so well formed.

To the problem. I followed your steps and got the same bug. It's a problem with my command-line argument parsing which misses malformed arguments.

To make it work use --all= (i.e. dash dash all equals) or -a (i.e. dash a space)

so:
fontypython --all=SLIDA.ttf Pog
or
fontypython -a SLIDA.ttf Pog

I am not sure when I will have the time to fix the source to prevent these kinds of bugs, but I am glad this one is not really a "bug" :)

Best,
\d

Donn Ingle <donningle>
Project AdministratorIn charge of this item.
Wed 02 Feb 2011 05:10:22 AM UTC, original submission:

Downstream bug may be found at:
https://bugs.launchpad.net/ubuntu/+source/fontypython/+bug/711656

Binary package hint: fontypython

1) lsb_release -rd
Description: Ubuntu 10.10
Release: 10.10

2) apt-cache policy fontypython
fontypython:
Installed: 0.4.2.3-2
Candidate: 0.4.2.3-2
Version table:

      • 0.4.2.3-2 0

500 http://us.archive.ubuntu.com/ubuntu/ maverick/universe i386 Packages
100 /var/lib/dpkg/status

3) What is expected to happen is one performs at the Terminal:

cd ~/Destkop && wget https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/454099/+attachment/843676/+files/SLIDA.ttf.zip && file-roller -h SLIDA.ttf.zip && rm SLIDA.ttf.zip && fontypython -all=/SLIDA.ttf Pog

fontypython creates a pog called Pog consisting of the font file SLIDA.ttf, in the folder SILDA.ttf allowing one to immediately begin to use the font SLIDASinhala in libreoffice-calc as the current user.

4) What happened instead is fontypython crashed with following Traceback:

Traceback (most recent call last):
File "/usr/bin/start_fontypython", line 26, in <module>
import fontypythonmodules.start
File "/usr/lib/pymodules/python2.6/fontypythonmodules/start.py", line 23, in <module>
import cli
File "/usr/lib/pymodules/python2.6/fontypythonmodules/cli.py", line 337, in <module>
folder = fontcontrol.Folder(FOLDERNAME, recurse=options.allrecurse)
File "/usr/lib/pymodules/python2.6/fontypythonmodules/fontcontrol.py", line 520, in _init_
listOfFilenamesOnly = os.listdir ( self.path ) # Get the unicode list
OSError: [Errno 2] No such file or directory: '/home/moniker/Desktop/ll=/SLIDA.ttf'

ProblemType: Crash
DistroRelease: Ubuntu 10.10
Package: fontypython 0.4.2.3-2
ProcVersionSignature: Ubuntu 2.6.35-25.44-generic 2.6.35.10
Uname: Linux 2.6.35-25-generic i686
Architecture: i386
Date: Tue Feb 1 23:31:27 2011
EcryptfsInUse: Yes
ExecutablePath: /usr/bin/start_fontypython
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
InterpreterPath: /usr/bin/python2.6
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/start_fontypython -all=/SLIDA.ttf Pog
ProcEnviron:
SHELL=/bin/bash
PATH=(custom, user)
LANG=en_US.utf8
PythonArgs: ['/usr/bin/start_fontypython', '-all=/SLIDA.ttf', 'Pog']
SourcePackage: fontypython
Title: start_fontypython crashed with OSError in _init_()
UserGroups: adm admin cdrom dialout libvirtd lpadmin plugdev sambashare

Christopher M. Penalver <penalvch>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by donningle (Posted a comment)
  • -unavailable- added by penalvch (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 02 Feb 2011 07:20:38 AM UTCdonningleSeverity3 - Normal=>2 - Minor
      StatusNone=>In Progress
      Assigned toNone=>donningle

    Back to the top


    Powered by Savane 3.1-cleanup