Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on installation with pip #105

Closed
pylint-bot opened this issue Jun 3, 2015 · 2 comments
Closed

Error on installation with pip #105

pylint-bot opened this issue Jun 3, 2015 · 2 comments
Labels

Comments

@pylint-bot
Copy link

Originally reported by: sebastien charret (BitBucket: SebCharret)


Hi all,

I try to install pylint on my virtualenv and I have the following error.

#!python

# pip3 install pylint
 Collecting pylint
  Using cached pylint-1.4.3-py2.py3-none-any.whl
 Collecting logilab-common>=0.53.0 (from pylint)
  Using cached logilab-common-0.63.2.tar.gz
    /usr/lib/python3.4/distutils/dist.py:260: UserWarning: Unknown distribution option: 'test_require'
      warnings.warn(msg)
    package init file './test/__init__.py' not found (or not a regular file)
Requirement already satisfied (use --upgrade to upgrade): six in /home/sebastien/.virtualenvs/pyMarket3.4/lib/python3.4/site-packages (from pylint)
Collecting astroid>=1.3.6 (from pylint)
  Exception:
  Traceback (most recent call last):
    File "/home/sebastien/.virtualenvs/pyMarket3.4/lib/python3.4/site-packages/pip/basecommand.py", line 232, in main
      status = self.run(options, args)
    File "/home/sebastien/.virtualenvs/pyMarket3.4/lib/python3.4/site-packages/pip/commands/install.py", line 339, in run
      requirement_set.prepare_files(finder)
    File "/home/sebastien/.virtualenvs/pyMarket3.4/lib/python3.4/site-packages/pip/req/req_set.py", line 333, in prepare_files
      upgrade=self.upgrade,
    File "/home/sebastien/.virtualenvs/pyMarket3.4/lib/python3.4/site-packages/pip/index.py", line 305, in find_requirement
      page = self._get_page(main_index_url, req)
    File "/home/sebastien/.virtualenvs/pyMarket3.4/lib/python3.4/site-packages/pip/index.py", line 783, in _get_page
      return HTMLPage.get_page(link, req, session=self.session)
    File "/home/sebastien/.virtualenvs/pyMarket3.4/lib/python3.4/site-packages/pip/index.py", line 872, in get_page
      "Cache-Control": "max-age=600",
    File "/home/sebastien/.virtualenvs/pyMarket3.4/lib/python3.4/site-packages/pip/_vendor/requests/sessions.py", line 473, in get
      return self.request('GET', url, **kwargs)
    File "/home/sebastien/.virtualenvs/pyMarket3.4/lib/python3.4/site-packages/pip/download.py", line 365, in request
      return super(PipSession, self).request(method, url, *args, **kwargs)
    File "/home/sebastien/.virtualenvs/pyMarket3.4/lib/python3.4/site-packages/pip/_vendor/requests/sessions.py", line 461, in request
      resp = self.send(prep, **send_kwargs)
    File "/home/sebastien/.virtualenvs/pyMarket3.4/lib/python3.4/site-packages/pip/_vendor/requests/sessions.py", line 573, in send
      r = adapter.send(request, **kwargs)
    File "/home/sebastien/.virtualenvs/pyMarket3.4/lib/python3.4/site-packages/pip/_vendor/cachecontrol/adapter.py", line 36, in send
      cached_response = self.controller.cached_request(request)
    File "/home/sebastien/.virtualenvs/pyMarket3.4/lib/python3.4/site-packages/pip/_vendor/cachecontrol/controller.py", line 100, in cached_request
      resp = self.serializer.loads(request, self.cache.get(cache_url))
    File "/home/sebastien/.virtualenvs/pyMarket3.4/lib/python3.4/site-packages/pip/_vendor/cachecontrol/serialize.py", line 62, in loads
      return getattr(self, "_loads_v{0}".format(ver))(request, data)
    File "/home/sebastien/.virtualenvs/pyMarket3.4/lib/python3.4/site-packages/pip/_vendor/cachecontrol/serialize.py", line 91, in _loads_v1
      body = io.BytesIO(cached["response"].pop("body"))
  TypeError: 'str' does not support the buffer interface

My os:
Linux version 3.13.0-53-generic (buildd@phianna) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #89-Ubuntu SMP Wed May 20 10:34:39 UTC 2015
Python: 3.4.0

Thanks for the help.


@pylint-bot
Copy link
Author

Original comment by Florian Bruhin (BitBucket: The-Compiler, GitHub: @The-Compiler?):


This looks like a pip rather than a astroid problem - it show that before astroid is even downloaded:

pypa/pip#2481
pypa/pip#2317
pypa/pip#2460

@pylint-bot
Copy link
Author

Original comment by sebastien charret (BitBucket: SebCharret):


@florian Bruhin You were right, it was a pip outdated problem. Thanks for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant