After scanning when I choose to email the report I get the following error:
Traceback (most recent call last):
File "/bin/mongoaudit", line 11, in
load_entry_point('mongoaudit==0.1.0', 'console_scripts', 'mongoaudit')()
File "/usr/lib/python2.7/site-packages/mongoaudit/__main__.py", line 64, in main
App().main()
File "/usr/lib/python2.7/site-packages/mongoaudit/__main__.py", line 23, in __init__
self.main()
File "/usr/lib/python2.7/site-packages/mongoaudit/__main__.py", line 58, in main
self.loop.run()
File "/usr/lib/python2.7/site-packages/urwid/main_loop.py", line 286, in run
self._run()
File "/usr/lib/python2.7/site-packages/urwid/main_loop.py", line 384, in _run
self.event_loop.run()
File "/usr/lib/python2.7/site-packages/urwid/main_loop.py", line 788, in run
self._loop()
File "/usr/lib/python2.7/site-packages/urwid/main_loop.py", line 825, in _loop
self._watch_files[fd]()
File "/usr/lib/python2.7/site-packages/urwid/raw_display.py", line 404, in
event_loop, callback, self.get_available_raw_input())
File "/usr/lib/python2.7/site-packages/urwid/raw_display.py", line 502, in parse_input
callback(processed, processed_codes)
File "/usr/lib/python2.7/site-packages/urwid/main_loop.py", line 411, in _update
self.process_input(keys)
File "/usr/lib/python2.7/site-packages/urwid/main_loop.py", line 511, in process_input
k = self._topmost_widget.keypress(self.screen_size, k)
File "/usr/lib/python2.7/site-packages/urwid/container.py", line 595, in keypress
*self.calculate_padding_filler(size, True)), key)
File "/usr/lib/python2.7/site-packages/urwid/container.py", line 1590, in keypress
key = self.focus.keypress(tsize, key)
File "/usr/lib/python2.7/site-packages/mongoaudit/widgets.py", line 220, in keypress
return self.__super.keypress(size, key)
File "/usr/lib/python2.7/site-packages/urwid/container.py", line 1590, in keypress
key = self.focus.keypress(tsize, key)
File "/usr/lib/python2.7/site-packages/urwid/decoration.py", line 622, in keypress
return self._original_widget.keypress(maxvals, key)
File "/usr/lib/python2.7/site-packages/urwid/container.py", line 1590, in keypress
key = self.focus.keypress(tsize, key)
File "/usr/lib/python2.7/site-packages/urwid/container.py", line 1590, in keypress
key = self.focus.keypress(tsize, key)
File "/usr/lib/python2.7/site-packages/mongoaudit/widgets.py", line 145, in keypress
self.next_callback()
File "/usr/lib/python2.7/site-packages/mongoaudit/widgets.py", line 184, in next
self.callbacks['next'](form=self, **(self.get_field_values()))
File "/usr/lib/python2.7/site-packages/mongoaudit/cards.py", line 198, in
if validate_email(email) else form.set_message("Invalid email address", True),
File "/usr/lib/python2.7/site-packages/mongoaudit/cards.py", line 208, in send_email
response = send_result(email, email_result, title, urn)
File "/usr/lib/python2.7/site-packages/mongoaudit/tools.py", line 91, in send_result
except (urllib2.HTTPError, urllib2.URLError) as exc:
NameError: global name 'urllib2' is not defined
Please let me know if you need anything else. Thank you.
Hello,
After scanning when I choose to email the report I get the following error:
Please let me know if you need anything else. Thank you.