bugFonty Python - Bugs: bug #32324, cli problem

 
 

bug #32324: cli problem

Submitter:  Christopher M. Penalver <penalvch>
Submitted:  Wed 02 Feb 2011 05:10:22 AM UTC
   
 
Category:  None Severity:  2 - Minor
Item Group:  None Status:  Postponed
Privacy:  Public Assigned to:  donningle
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group administrator
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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-06-25 donningle Summarystart_fontypython crashed with OSError in _init_() cli problem
    2016-06-25 donningle StatusIn Progress Postponed
    2011-02-02 donningle Severity3 - Normal 2 - Minor
        StatusNone In Progress
        Assigned toNone donningle

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code