Bug 485204 - dot2tex fails with AttributeError on all input
Summary: dot2tex fails with AttributeError on all input
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: dot2tex
Version: 10
Hardware: x86_64
OS: Linux
low
high
Target Milestone: ---
Assignee: Jim Radford
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-02-12 11:16 UTC by Joel Uckelman
Modified: 2009-02-16 16:15 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-02-16 16:15:47 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Joel Uckelman 2009-02-12 11:16:48 UTC
Description of problem:

Every dot file given to dot2tex causes it to fail with the following stack trace:

Traceback (most recent call last):
  File "/usr/bin/dot2tex", line 2, in <module>
    from dot2tex.dot2tex import main
  File "/usr/lib/python2.5/site-packages/dot2tex/dot2tex.py", line 127, in <module>
    pydot.Graph.attributes.extend(special_graph_attrs)
AttributeError: type object 'Graph' has no attribute 'attributes'


Release number of selected component (if applicable):

dot2tex-2.7.0-4.fc9.noarch
pydot-1.0.2-1.fc10.noarch


How reproducible:

Always


Steps to Reproduce:
1. dot2tex graph.dot
  
Actual results:

dot2tex fails with a stack trace.


Expected results:

The converted dot file should be printed to stdout.


Additional info:

According to this, http://groups.google.com/group/dot2tex-users/browse_thread/thread/24cea755fa1debe8, dot2tex isn't compatible with the version of pydot which ships with Fedora 10. However, I've tested the current version of dot2tex, 2.8.4, and that works fine. I believe the solution to this bug is to package the current version of dot2tex, not 2.7.0.

Comment 1 Jim Radford 2009-02-12 17:53:19 UTC
Thanks for your report. The upgrade to 2.8.4 has been sitting waiting to be pushed/tested for months.  I just pushed it.  If you can't wait you can download the package.

  http://kojipkgs.fedoraproject.org/packages/dot2tex/2.8.4/1.fc10/noarch/dot2tex-2.8.4-1.fc10.noarch.rpm

Comment 2 Joel Uckelman 2009-02-16 14:58:03 UTC
Looks good. Problem solved. Thanks a lot.


Note You need to log in before you can comment on or make changes to this bug.