Hi
Hope someone can help. Ran pip install --upgrade --user scrapy, all good until cleaning up then:
Exception:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py", line 283, in run
requirement_set.install(install_options, global_options, root=options.root_path)
File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 1431, in install
requirement.uninstall(auto_confirm=True)
File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 598, in uninstall
paths_to_remove.remove(auto_confirm)
File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 1836, in remove
renames(path, new_path)
File "/usr/local/lib/python2.7/dist-packages/pip/util.py", line 295, in renames
shutil.move(old, new)
File "/usr/lib/python2.7/shutil.py", line 303, in move
os.unlink(src)
OSError: [Errno 13] Permission denied: '/usr/local/bin/easy_install'
Storing debug log for failure in /home/richyvk/.pip/pip.log
now scrapy --version gives me:
Traceback (most recent call last):
File "/home/richyvk/.local/bin/scrapy", line 11, in <module>
sys.exit(execute())
File "/home/richyvk/.local/lib/python2.7/site-packages/scrapy/cmdline.py", line 122, in execute
cmds = _get_commands_dict(settings, inproject)
File "/home/richyvk/.local/lib/python2.7/site-packages/scrapy/cmdline.py", line 46, in _get_commands_dict
cmds = _get_commands_from_module('scrapy.commands', inproject)
File "/home/richyvk/.local/lib/python2.7/site-packages/scrapy/cmdline.py", line 29, in _get_commands_from_module
for cmd in _iter_command_classes(module):
File "/home/richyvk/.local/lib/python2.7/site-packages/scrapy/cmdline.py", line 20, in _iter_command_classes
for module in walk_modules(module_name):
File "/home/richyvk/.local/lib/python2.7/site-packages/scrapy/utils/misc.py", line 68, in walk_modules
submod = import_module(fullpath)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/home/richyvk/.local/lib/python2.7/site-packages/scrapy/commands/bench.py", line 3, in <module>
from scrapy.tests.mockserver import MockServer
File "/home/richyvk/.local/lib/python2.7/site-packages/scrapy/tests/mockserver.py", line 6, in <module>
from twisted.internet import reactor, defer, ssl
File "/home/richyvk/.local/lib/python2.7/site-packages/twisted/internet/ssl.py", line 59, in <module>
from OpenSSL import SSL
File "/home/richyvk/.local/lib/python2.7/site-packages/OpenSSL/__init__.py", line 8, in <module>
from OpenSSL import rand, crypto, SSL
File "/home/richyvk/.local/lib/python2.7/site-packages/OpenSSL/rand.py", line 11, in <module>
from OpenSSL._util import (
File "/home/richyvk/.local/lib/python2.7/site-packages/OpenSSL/_util.py", line 3, in <module>
from cryptography.hazmat.bindings.openssl.binding import Binding
File "/home/richyvk/.local/lib/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 60, in <module>
class Binding(object):
File "/home/richyvk/.local/lib/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 108, in Binding
libraries=_get_libraries(sys.platform)
File "/home/richyvk/.local/lib/python2.7/site-packages/cryptography/hazmat/bindings/utils.py", line 97, in build_ffi_for_binding
extra_link_args=extra_link_args,
File "/home/richyvk/.local/lib/python2.7/site-packages/cryptography/hazmat/bindings/utils.py", line 105, in build_ffi
ffi = FFI()
File "/home/richyvk/.local/lib/python2.7/site-packages/cffi/api.py", line 52, in __init__
from . import cparser, model
File "/home/richyvk/.local/lib/python2.7/site-packages/cffi/cparser.py", line 7, in <module>
import pycparser
ImportError: No module named pycparser
Any ideas what I've done wrong here??