Traceback (most recent call last):


 "/home/pi/.local/bin/miplug", line 11, in <module>

sys.exit(cli())


 "/home/pi/.local/lib/python3.5/site-packages/miio/click_common.py", line 53, in __call__

return self.main(*args, **kwargs)


 "/home/pi/.local/lib/python3.5/site-packages/click/core.py", line 697, in main

rv = self.invoke(ctx)


 "/home/pi/.local/lib/python3.5/site-packages/click/core.py", line 1066, in invoke

return _process_result(sub_ctx.command.invoke(sub_ctx))


 "/home/pi/.local/lib/python3.5/site-packages/click/core.py", line 895, in invoke

return ctx.invoke(self.callback, **ctx.params)


 "/home/pi/.local/lib/python3.5/site-packages/click/core.py", line 535, in invoke

return callback(*args, **kwargs)


 "/home/pi/.local/lib/python3.5/site-packages/miio/plug_cli.py", line 50, in discover

miio.Plug.discover()
AttributeError: 'function' object has no attribute 'discover'

Traceback (most recent call last):


 "manage.py", line 29, in <module>

execute_from_command_line(sys.argv)


 "/home/taiga/.virtualenvs/taiga/lib/python3.6/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line

utility.execute()


 "/home/taiga/.virtualenvs/taiga/lib/python3.6/site-packages/django/core/management/__init__.py", line 356, in execute

self.fetch_command(subcommand).run_from_argv(self.argv)


 "/home/taiga/.virtualenvs/taiga/lib/python3.6/site-packages/django/core/management/base.py", line 283, in run_from_argv

self.execute(*args, **cmd_options)


 "/home/taiga/.virtualenvs/taiga/lib/python3.6/site-packages/django/core/management/base.py", line 330, in execute

output = self.handle(*args, **options)


 "/var/www/foamfactory.io/taiga.foamfactory.io/taiga-back/taiga/base/management/commands/test_emails.py", line 63, in handle

membership.invited_by = get_user_model().objects.all().order_by("?").first()
AttributeError: 'NoneType' object has no attribute 'invited_by'
