Traceback (most recent call last):


 "offlineExample.py", line 1, in <module>

import plotly.plotly


 "/usr/local/lib/python2.7/dist-packages/plotly/__init__.py", line 31, in <module>

from plotly import (plotly, dashboard_objs, graph_objs, grid_objs, tools,


 "/usr/local/lib/python2.7/dist-packages/plotly/plotly/__init__.py", line 10, in <module>

from . plotly import (


 "/usr/local/lib/python2.7/dist-packages/plotly/plotly/plotly.py", line 28, in <module>

from requests.compat import json as _json


 "/usr/lib/python2.7/dist-packages/requests/__init__.py", line 52, in <module>

from .packages.urllib3.contrib import pyopenssl


 "/usr/lib/python2.7/dist-packages/requests/packages/__init__.py", line 53, in <module>

vendored('urllib3')


 "/usr/lib/python2.7/dist-packages/requests/packages/__init__.py", line 35, in vendored

__import__(modulename, globals(), locals(), level=0)


 "/usr/lib/python2.7/dist-packages/urllib3/__init__.py", line 8, in <module>

from .connectionpool import (


 "/usr/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 11, in <module>

from .exceptions import (


 "/usr/lib/python2.7/dist-packages/urllib3/exceptions.py", line 2, in <module>

from six.moves.http_client import (


 "/usr/lib/python2.7/dist-packages/six.py", line 203, in load_module

mod = mod._resolve()


 "/usr/lib/python2.7/dist-packages/six.py", line 115, in _resolve

return _import_module(self.mod)


 "/usr/lib/python2.7/dist-packages/six.py", line 82, in _import_module

__import__(name)


 "/usr/lib/python2.7/httplib.py", line 80, in <module>

import mimetools


 "/usr/lib/python2.7/mimetools.py", line 6, in <module>

import tempfile


 "/usr/lib/python2.7/tempfile.py", line 35, in <module>

from random import Random as _Random


 "/home/pi/Coding/Realsat/sunTracking/examples/plotly/random.py", line 1, in <module>

import plotly.graph_objs as go


 "/usr/local/lib/python2.7/dist-packages/plotly/graph_objs/__init__.py", line 14, in <module>

from plotly.graph_objs.graph_objs import *
# this is protected with __all__


 "/usr/local/lib/python2.7/dist-packages/plotly/graph_objs/graph_objs.py", line 34, in <module>

from plotly import exceptions, graph_reference


 "/usr/local/lib/python2.7/dist-packages/plotly/exceptions.py", line 10, in <module>

from plotly.api.utils import to_native_utf8_string


 "/usr/local/lib/python2.7/dist-packages/plotly/api/utils.py", line 3, in <module>

from requests.compat import builtin_str, is_py2


 "/usr/lib/python2.7/dist-packages/requests/compat.py", line 43, in <module>

import cookielib


 "/usr/lib/python2.7/cookielib.py", line 53, in <module>

DEFAULT_HTTP_PORT = str(httplib.HTTP_PORT)
AttributeError: 'module' object has no attribute 'HTTP_PORT'

Traceback (most recent call last):


 "/usr/lib/python3.6/multiprocessing/pool.py", line 119, in worker

result = (True, func(*args, **kwds))


 "/home/tabbott/zulip/zerver/lib/test_runner.py", line 209, in run_subsuite

result = runner.run(deserialize_suite(subsuite))


 "/srv/zulip-py3-venv/lib/python3.6/site-packages/django/test/runner.py", line 251, in run

test(result)


 "/usr/lib/python3.6/unittest/suite.py", line 84, in __call__

return self.run(*args, **kwds)


 "/home/tabbott/zulip/zerver/lib/test_runner.py", line 353, in run

failed = run_test(test, result)


 "/home/tabbott/zulip/zerver/lib/test_runner.py", line 130, in run_test

test(result)
# unittest will handle skipping, error, failure and success.


 "/srv/zulip-py3-venv/lib/python3.6/site-packages/django/test/testcases.py", line 213, in __call__

super(SimpleTestCase, self).__call__(result)


 "/usr/lib/python3.6/unittest/case.py", line 653, in __call__

return self.run(*args, **kwds)


 "/usr/lib/python3.6/unittest/case.py", line 613, in run

self._feedErrorsToResult(result, outcome.errors)


 "/usr/lib/python3.6/unittest/case.py", line 538, in _feedErrorsToResult

result.addSubTest(test.test_case, test, exc_info)


 "/srv/zulip-py3-venv/lib/python3.6/site-packages/django/test/runner.py", line 208, in addSubTest

self.check_subtest_picklable(test, subtest)


 "/srv/zulip-py3-venv/lib/python3.6/site-packages/django/test/runner.py", line 166, in check_subtest_picklable

self._confirm_picklable(subtest)


 "/srv/zulip-py3-venv/lib/python3.6/site-packages/django/test/runner.py", line 99, in _confirm_picklable

pickle.loads(pickle.dumps(obj))
AttributeError: Can't pickle local object 'convert_exception_to_response.<locals>.inner'
