Traceback (most recent call last):

 "./bin/doctest", line 54, in <module>
"blacklist": blacklist, "normal": options.normal})

 "/u/ameurer/sympy/sympy/utilities/runtests.py", line 307, in doctest
failed = not t.test()

 "/u/ameurer/sympy/sympy/utilities/runtests.py", line 702, in test
self.test_file(f)

 "/u/ameurer/sympy/sympy/utilities/runtests.py", line 725, in test_file
module = pdoctest._normalize_module(module)

 "/usr/lib/python2.6/doctest.py", line 203, in _normalize_module
return __import__(module, globals(), locals(), ["*"])

 "/u/ameurer/sympy/sympy/physics/quantum/circuitplot.py", line 24, in <module>
matplotlib = import_module('matplotlib', __import__kwargs={'fromlist':['pyplot']})

 "/u/ameurer/sympy/sympy/external/importtools.py", line 115, in import_module
mod = __import__(module, **__import__kwargs)

 "/usr/lib/python2.6/site-packages/matplotlib/pyplot.py", line 78, in <module>
new_figure_manager, draw_if_interactive, show = pylab_setup()

 "/usr/lib/python2.6/site-packages/matplotlib/backends/__init__.py", line 25, in pylab_setup
globals(),locals(),[backend_name])

 "/usr/lib/python2.6/site-packages/matplotlib/backends/backend_gtkagg.py", line 10, in <module>
from matplotlib.backends.backend_gtk import gtk, FigureManagerGTK, FigureCanvasGTK,\

 "/usr/lib/python2.6/site-packages/matplotlib/backends/backend_gtk.py", line 8, in <module>
import gtk; gdk = gtk.gdk

 "/usr/lib/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line 64, in <module>
_init()

 "/usr/lib/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line 52, in _init
_gtk.init_check()RuntimeError: could not open display
Traceback (most recent call last):


 "C:\Users\Admin\.conda\envs\PyTorchENV\lib\asyncio\runners.py", line 43, in run

return loop.run_until_complete(main)


 "C:\Users\Admin\.conda\envs\PyTorchENV\lib\asyncio\base_events.py", line 587, in run_until_complete

return future.result()


 "C:/1_repos/StockTrading/tdAmeritradeNWStream.py", line 43, in read_stream

await stream_client.login()


 "C:\Users\Admin\.conda\envs\PyTorchENV\lib\site-packages\tda\streaming.py", line 348, in login

assert r.status_code == httpx.codes.OK, r.raise_for_status()


 "C:\Users\Admin\.conda\envs\PyTorchENV\lib\site-packages\httpx\_models.py", line 841, in raise_for_status

raise HTTPError(message, response=self)
httpx._exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.tdameritrade.com/v1/userprincipals?apikey=mykey_from_td_developer_api%40AMER.OAUTHAP&fields=streamerConnectionInfo%2CstreamerSubscriptionKeys
