blockdiagシリーズのseqdiagとactdiagが、[Errno 10060]のダウンロードエラーでeasy_installのインストールに失敗する
easy_installを使用して、blockdiag シリーズを一式試そうとしたら、
一部がダンロードに失敗した。
ツール | インストール |
---|---|
ブロック図 (blockdiag コマンド) | 成功 |
シーケンス図 (seqdiag コマンド) | 失敗 |
アクティビティ図 (actdiag コマンド) | 失敗 |
論理ネットワーク図 (nwdiag コマンド) | 成功 |
VMware 上のUbuntuからだと全部正常にインストールできた。
Windowsからだと、数時間間を置いて試したが、seqdiag、actdiagが失敗した。
教えてもらったtaballのurlを指定する方式だと正常にインストールできたのでメモ。
現象
- seqdiag
[C:\]easy_install seqdiag Searching for seqdiag Reading http://pypi.python.org/simple/seqdiag/ Reading http://blockdiag.com/ Reading https://blockdiag.com/ Download error: [Errno 10060] 接続済みの呼び出し先が一定の時間を過ぎても正しく応答しなかったため、接続できませんでした。または接続済みのホストが応答しなかったため、確立された接続は失敗しました。 -- Some packages may not be found! error: Error
- actdiag
[C:\]easy_install actdiag Searching for actdiag Reading http://pypi.python.org/simple/actdiag/ Reading https://bitbucket.org/tk0miya/actdiag Reading http://blockdiag.com/ Reading https://blockdiag.com/ Download error: [Errno 10060] 接続済みの呼び出し先が一定の時間を過ぎても正しく応答しなかったため、接続できませんでした。または接続済みのホストが応答しなかったため、確立された接続は失敗しました。 -- Some packages may not be found! error: Error
英語のエラーメッセージだとこうかな。
Download error: [Errno 11004] getaddrinfo failed -- Some packages may not be found!
対処
以下のようにURLを指定してインストール
easy_install URL
URLは、下記のpypiのサイトのページ下部に記載されてるtar.gzのURLを指定する
http://pypi.python.org/pypi/seqdiag/
http://pypi.python.org/pypi/actdiag/
[C:\]easy_install http://pypi.python.org/packages/source/s/seqdiag/seqdiag-0.7.5.tar.gz#md5=12340058136575076b77ac2315af2723 Downloading http://pypi.python.org/packages/source/s/seqdiag/seqdiag-0.7.5.tar.gz#md5=12340058136575076b77ac2315af2723 Processing seqdiag-0.7.5.tar.gz Running seqdiag-0.7.5\setup.py -q bdist_egg --dist-dir c:\users\orange~1\appdata\local\temp\easy_install-oeukl0\seqdiag-0.7.5\egg-dist-tmp-mpxmet zip_safe flag not set; analyzing archive contents... seqdiag.tests.test_generate_diagram: module references __file__ seqdiag.tests.test_pep8: module references __file__ seqdiag.tests.utils: module references __file__ Adding seqdiag 0.7.5 to easy-install.pth file Installing seqdiag-script.py script to c:\usr\opt\python\Python273\Scripts Installing seqdiag.exe script to c:\usr\opt\python\Python273\Scripts Installing seqdiag.exe.manifest script to c:\usr\opt\python\Python273\Scripts Installed c:\usr\opt\python\python273\lib\site-packages\seqdiag-0.7.5-py2.7.egg Processing dependencies for seqdiag==0.7.5 Finished processing dependencies for seqdiag==0.7.5
[C:\]easy_install http://pypi.python.org/packages/source/a/actdiag/actdiag-0.3.4.tar.gz#md5=02c810365357d70e13bc0eae995ec79b Downloading http://pypi.python.org/packages/source/a/actdiag/actdiag-0.3.4.tar.gz#md5=02c810365357d70e13bc0eae995ec79b Processing actdiag-0.3.4.tar.gz Running actdiag-0.3.4\setup.py -q bdist_egg --dist-dir c:\users\orange~1\appdata\local\temp\easy_install-qu9svi\actdiag-0.3.4\egg-dist-tmp-txd9u0 warning: no files found matching '*.diag' under directory 'examples' zip_safe flag not set; analyzing archive contents... actdiag.tests.test_pep8: module references __file__ Adding actdiag 0.3.4 to easy-install.pth file Installing actdiag-script.py script to c:\usr\opt\python\Python273\Scripts Installing actdiag.exe script to c:\usr\opt\python\Python273\Scripts Installing actdiag.exe.manifest script to c:\usr\opt\python\Python273\Scripts Installed c:\usr\opt\python\python273\lib\site-packages\actdiag-0.3.4-py2.7.egg Processing dependencies for actdiag==0.3.4 Finished processing dependencies for actdiag==0.3.4
原因
同じ所から持ってきてるそうなので、なんでurlを指定する方式でうまくいくのか不明。
環境
- OS
- Windows 7 Home premium
- x64
Sphinx&blockdiagを使ってみる -東京湾岸で働くエンジニアのブログ
ブログが書かれたのが2012/03/05なので、たまに発生するのかな。。。
Windowsだけで。
Pythonistaなら自力解決できるのもしれないが、僕には分からなかった。
(そもそもeasy_installを使わない?)
まぁ、同じようにハマった人が、ググってこのページにたどり着いて、解決の役に立てばいいかな。