AttributeError: 'NoneType' object has no attribute 'startswith'
Chutney latest master 99b7c5e8e8e063af doesn't work for me and explodes with:
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/dgoulet/git/chutney/lib/chutney/TorNet.py", line 1161, in <module>
sys.exit(main())
File "/home/dgoulet/git/chutney/lib/chutney/TorNet.py", line 1155, in main
result = runConfigFile(args['action'], f)
File "/home/dgoulet/git/chutney/lib/chutney/TorNet.py", line 1131, in runConfigFile
return getattr(network, verb)()
File "/home/dgoulet/git/chutney/lib/chutney/TorNet.py", line 990, in configure
self._checkConfig()
File "/home/dgoulet/git/chutney/lib/chutney/TorNet.py", line 982, in _checkConfig
n.getBuilder().checkConfig(self)
File "/home/dgoulet/git/chutney/lib/chutney/TorNet.py", line 352, in checkConfig
self._createTorrcFile(checkOnly=True)
File "/home/dgoulet/git/chutney/lib/chutney/TorNet.py", line 272, in _createTorrcFile
output = torrc_template.format(self._env)
File "/home/dgoulet/git/chutney/lib/chutney/Templating.py", line 361, in format
v = _BetterTemplate(orig_val).substitute(values)
File "/usr/lib/python2.7/string.py", line 176, in substitute
return self.pattern.sub(convert, self.template)
File "/usr/lib/python2.7/string.py", line 166, in convert
val = mapping[named]
File "/home/dgoulet/git/chutney/lib/chutney/Templating.py", line 111, in __getitem__
return self.lookup(key, self)
File "/home/dgoulet/git/chutney/lib/chutney/Templating.py", line 135, in lookup
return lookup(key, my)
File "/home/dgoulet/git/chutney/lib/chutney/Templating.py", line 120, in lookup
return self._getitem(key, my)
File "/home/dgoulet/git/chutney/lib/chutney/Templating.py", line 216, in _getitem
rv = fn(my)
File "/home/dgoulet/git/chutney/lib/chutney/TorNet.py", line 897, in _get_server_dns_resolv_conf
dns_conf = os.path.abspath(my['dns_conf'])
File "/usr/lib/python2.7/posixpath.py", line 360, in abspath
if not isabs(path):
File "/usr/lib/python2.7/posixpath.py", line 54, in isabs
return s.startswith('/')
AttributeError: 'NoneType' object has no attribute 'startswith'