Bug 485204 - dot2tex fails with AttributeError on all input
dot2tex fails with AttributeError on all input
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: dot2tex (Show other bugs)
10
x86_64 Linux
low Severity high
: ---
: ---
Assigned To: Jim Radford
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-02-12 06:16 EST by Joel Uckelman
Modified: 2009-02-16 11:15 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2009-02-16 11:15:47 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Joel Uckelman 2009-02-12 06:16:48 EST
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 12:53:19 EST
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 09:58:03 EST
Looks good. Problem solved. Thanks a lot.

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