xdot fails to start - error is: ValueError: invalid literal for int() with base 10: '32.25'

Bug #1322831 reported by malheum
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
xdot (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Hello,

this is xubuntu 14.04 64 bits.

xdot fails to start start completely.

This is my simple test file:

$ cat xdot-test
digraph {
 caesar [label = "caesar"];
 lizard [label = "lizard"];
 newton [label = "newton"];
 lizard -> newton;
 newton -> lizard;
 caesar -> lizard;
 lizard -> caesar;
}

$ xdot test-xdot
Traceback (most recent call last):
  File "/usr/bin/xdot", line 4, in <module>
    xdot.main()
  File "/usr/lib/python2.7/dist-packages/xdot.py", line 1947, in main
    win.open_file(args[0])
  File "/usr/lib/python2.7/dist-packages/xdot.py", line 1881, in open_file
    self.set_dotcode(fp.read(), filename)
  File "/usr/lib/python2.7/dist-packages/xdot.py", line 1863, in set_dotcode
    if self.widget.set_dotcode(dotcode, filename):
  File "/usr/lib/python2.7/dist-packages/xdot.py", line 1477, in set_dotcode
    self.set_xdotcode(xdotcode)
  File "/usr/lib/python2.7/dist-packages/xdot.py", line 1497, in set_xdotcode
    self.graph = parser.parse()
  File "/usr/lib/python2.7/dist-packages/xdot.py", line 1167, in parse
    DotParser.parse(self)
  File "/usr/lib/python2.7/dist-packages/xdot.py", line 977, in parse
    self.parse_graph()
  File "/usr/lib/python2.7/dist-packages/xdot.py", line 986, in parse_graph
    self.parse_stmt()
  File "/usr/lib/python2.7/dist-packages/xdot.py", line 1032, in parse_stmt
    self.handle_node(id, attrs)
  File "/usr/lib/python2.7/dist-packages/xdot.py", line 1142, in handle_node
    shapes.extend(parser.parse())
  File "/usr/lib/python2.7/dist-packages/xdot.py", line 612, in parse
    w = s.read_number()
  File "/usr/lib/python2.7/dist-packages/xdot.py", line 494, in read_number
    return int(self.read_code())
ValueError: invalid literal for int() with base 10: '32.25'

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: xdot 0.5-2
ProcVersionSignature: Ubuntu 3.13.0-24.47-generic 3.13.9
Uname: Linux 3.13.0-24-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.14.1-0ubuntu3.2
Architecture: amd64
Date: Sat May 24 12:29:25 2014
InstallationDate: Installed on 2014-02-06 (106 days ago)
InstallationMedia: Xubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64 (20140205)
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=de_DE
 TERM=xterm
 PATH=(custom, no user)
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: xdot
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
malheum (maxheise) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in xdot (Ubuntu):
status: New → Confirmed
Revision history for this message
another_sam (anothersam) wrote :

fwiw for package maintainers and as workaround for users, I did
sudo apt-get remove xdot
to remove the ubuntu-package-based xdot, an then
git clone https://github.com/jrfonseca/xdot.py
and then
sudo ln -s /usr/local/xdot/xdot.py/xdot.py /usr/local/bin/xdot
to make it accessible as just "xdot"
and now it works.

I wish ubuntu could prompt updates for my cloned git repos for me... which is an off-topic...

Cheers

Revision history for this message
another_sam (anothersam) wrote :

Sorry I forgot to mention

cd /usr/local/
mkdir xdot
cd xdot

before the git clone.

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.