2

Mac OS X 10.11.4 で Google Chrome を使用しています。ライブラリからこの例を実行しようとしています。Python 3.5では機能しないmpld3と読みましたが、mpld3

このmpld3プロジェクトは、Python 2.6-2.7 および 3.3-3.4 と互換性があります。

そこで、以下を使用して 3.4 環境を作成しました。

conda create -n py34 python=3.4 anaconda

スクリプトを実行すると、次のエラーが表示されます。

Exception happened during processing of request from ('127.0.0.1', 52484)
Traceback (most recent call last):
  File "/Users/Neill/anaconda/envs/py34/lib/python3.4/socketserver.py", line 305, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/Users/Neill/anaconda/envs/py34/lib/python3.4/socketserver.py", line 331, in process_request
    self.finish_request(request, client_address)
  File "/Users/Neill/anaconda/envs/py34/lib/python3.4/socketserver.py", line 344, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/Users/Neill/anaconda/envs/py34/lib/python3.4/socketserver.py", line 673, in __init__
    self.handle()
  File "/Users/Neill/anaconda/envs/py34/lib/python3.4/http/server.py", line 401, in handle
    self.handle_one_request()
  File "/Users/Neill/anaconda/envs/py34/lib/python3.4/http/server.py", line 389, in handle_one_request
    method()
  File "/Users/Neill/anaconda/envs/py34/lib/python3.4/site-packages/mpld3/_server.py", line 38, in do_GET
    self.wfile.write("<html><head>"
  File "/Users/Neill/anaconda/envs/py34/lib/python3.4/socket.py", line 398, in write
    return self._sock.send(b)
TypeError: 'str' does not support the buffer interface

の最新バージョンmpld3がインストールされていることも確認しました。ローカル サーバーは空白のページを表示します。Chrome の開発者ツールもエラーを報告しません。問題が何であるかを知っている人はいますか?

4

0 に答える 0