1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| $ scrapy startproject tutorial
Traceback (most recent call last):
File "/usr/bin/scrapy", line 4, in <module>
execute()
File "/usr/lib/pymodules/python2.7/scrapy/cmdline.py", line 121, in execute
cmds = _get_commands_dict(settings, inproject)
File "/usr/lib/pymodules/python2.7/scrapy/cmdline.py", line 45, in _get_commands_dict
cmds = _get_commands_from_module('scrapy.commands', inproject)
File "/usr/lib/pymodules/python2.7/scrapy/cmdline.py", line 28, in _get_commands_from_module
for cmd in _iter_command_classes(module):
File "/usr/lib/pymodules/python2.7/scrapy/cmdline.py", line 19, in _iter_command_classes
for module in walk_modules(module_name):
File "/usr/lib/pymodules/python2.7/scrapy/utils/misc.py", line 66, in walk_modules
submod = __import__(fullpath, {}, {}, [''])
File "/usr/lib/pymodules/python2.7/scrapy/commands/deploy.py", line 13, in <module>
from w3lib.form import encode_multipart
File "/usr/lib/python2.7/dist-packages/w3lib/form.py", line 2, in <module>
if six.PY2:
AttributeError: 'module' object has no attribute 'PY2'
|