1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Scrapy 1.1.1, Python 3.5.0 でNo module named 'twisted.enterprise'

Last updated at Posted at 2016-08-04

Python 2.7.11で動いていたSpiderをPython 3.5.0で走らせたらモジュールが参照できなかった。
ImportError: No module named 'twisted.enterprise'

Twistedの問題で解決はされてるっぽい
https://twistedmatrix.com/trac/ticket/8303

けどTwisted 16.3.0(2016/8/4時点で最新)には入ってないっぽい
https://pypi.python.org/pypi/Twisted/16.3.0

とりあえずソースをチェックアウトして使う。

$ pip list | grep Twisted
Twisted (16.3.0)
$ pip uninstall twisted
$ git clone -b trunk https://github.com/twisted/twisted.git
$ cd twisted
$ python setup.py install

Using /Users/nishikaw/.pyenv/versions/3.5.0/lib/python3.5/site-packages
Finished processing dependencies for Twisted==16.3.0

見た目は16.3.0のままだけどtwisted.enterpriseが参照できるようになった。
とりあえず次のバージョンがリリースされるまで。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?