dnsgraph icon indicating copy to clipboard operation
dnsgraph copied to clipboard

AttributeError: 'Shell' object has no attribute 'dot'

Open Flimm opened this issue 8 years ago • 5 comments

I'm trying to run this command, and I'm getting this exception:

$ python tracegraph.py -t MX --graph png --output booking.png --skip . --skip com. booking.com
Trying to resolve booking.com. (MX) on a.root-servers.net. (198.41.0.4) (R:True)
Trying to resolve booking.com. (MX) on a.gtld-servers.net. (192.5.6.30) (R:True)
Trying to resolve booking.com. (MX) on ns0.bkngs.com. (5.57.23.169) (R:True)
# ....
Traceback (most recent call last):
  File "tracegraph.py", line 546, in <module>
    shell.dot(*args, input="\n".join(graph), stdout=sys.stdout)
  File "dnsgraph/env/lib/python2.7/site-packages/whelk/__init__.py", line 71, in __getattr__
    return self._getattr(name, defer=False)
  File "dnsgraph/env/lib/python2.7/site-packages/whelk/__init__.py", line 79, in _getattr
    return super(Shell, self).__getattribute__(name)
AttributeError: 'Shell' object has no attribute 'dot'

These are the libraries I have installed:

dnspython==1.15.0
whelk==2.7

Flimm avatar Aug 11 '17 09:08 Flimm

Hi David,

I run into exactly the same issue, have you fixed the issue?

Many thanks.

Regards, Wentao

Wentao19 avatar Mar 10 '20 15:03 Wentao19

You'll need to install graphviz for this to work.

seveas avatar Mar 10 '20 15:03 seveas

You'll need to install graphviz for this to work.

Hi Dennis,

Thanks for the heads up, after install graphviz, it works perfectly!

Thanks again for your help!

Regards, Wentao

Wentao19 avatar Mar 11 '20 08:03 Wentao19

Hi Dennis,

Does the script support private domain?

Regards, Wentao

Wentao19 avatar Mar 11 '20 11:03 Wentao19

I have a patch that makes the error message more friendly, see #6.

pabs3 avatar Mar 07 '22 23:03 pabs3