question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pip 6.0.8 AttributeError when upgrading to 6.1.1 in virtualenv

See original GitHub issue

Windows 7, Python 3.4.3, updated pip in base. Created virtualenv, saw that it was still on pip 6.0.8

Activated venv, ran python -m pip install pip -U

log:

Installing collected packages: pip
  Found existing installation: pip 6.0.8
    Uninstalling pip-6.0.8:
      Successfully uninstalled pip-6.0.8

  Rolling back uninstall of pip
...
     result = finder(distlib_package).find(name).bytes
 AttributeError: 'NoneType' object has no attribute 'bytes'

However, next time I run pip -V, it reports pip 6.1.1, so what is the effect of the error?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:2
  • Comments:37 (6 by maintainers)

github_iconTop GitHub Comments

11reactions
Tset-Noitamotuacommented, Aug 28, 2015

Same sh** with pip 7.1.0 with Python 2.7 on Window 7 64bit - see below.

BUT HAPPILY easy_install -U pip did it for me and upgraded to 7.1.2 😃

H:\>pip install -U pip
You are using pip version 7.1.0, however version 7.1.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
Collecting pip
  Using cached pip-7.1.2-py2.py3-none-any.whl
Installing collected packages: pip
  Found existing installation: pip 7.1.0
    Uninstalling pip-7.1.0:
      Successfully uninstalled pip-7.1.0
  Rolling back uninstall of pip
Exception:
Traceback (most recent call last):
  File "c:\python27\lib\site-packages\pip-7.1.0-py2.7.egg\pip\basecommand.py", line 223, in main
    status = self.run(options, args)
  File "c:\python27\lib\site-packages\pip-7.1.0-py2.7.egg\pip\commands\install.py", line 299, in run
    root=options.root_path,
  File "c:\python27\lib\site-packages\pip-7.1.0-py2.7.egg\pip\req\req_set.py", line 646, in install
    **kwargs
  File "c:\python27\lib\site-packages\pip-7.1.0-py2.7.egg\pip\req\req_install.py", line 813, in install
    self.move_wheel_files(self.source_dir, root=root)
  File "c:\python27\lib\site-packages\pip-7.1.0-py2.7.egg\pip\req\req_install.py", line 1008, in move_wheel_files
    isolated=self.isolated,
  File "c:\python27\lib\site-packages\pip-7.1.0-py2.7.egg\pip\wheel.py", line 449, in move_wheel_files
    generated.extend(maker.make(spec))
  File "c:\python27\lib\site-packages\pip-7.1.0-py2.7.egg\pip\_vendor\distlib\scripts.py", line 323, in make
    self._make_script(entry, filenames, options=options)
  File "c:\python27\lib\site-packages\pip-7.1.0-py2.7.egg\pip\_vendor\distlib\scripts.py", line 227, in _make_script
    self._write_script(scriptnames, shebang, script, filenames, ext)
  File "c:\python27\lib\site-packages\pip-7.1.0-py2.7.egg\pip\_vendor\distlib\scripts.py", line 163, in _write_script
    launcher = self._get_launcher('t')
  File "c:\python27\lib\site-packages\pip-7.1.0-py2.7.egg\pip\_vendor\distlib\scripts.py", line 302, in _get_launcher
    result = finder(distlib_package).find(name).bytes
AttributeError: 'NoneType' object has no attribute 'bytes'
5reactions
AbdullahRazacommented, Jan 20, 2016

easy_install -U pip worked for me . Thanks 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error upgrading pip in virtualenv in Windows - Stack Overflow
It happening because your os didn't give the permission to create virtualenvironment. You can solve it by opening powershell administrative ...
Read more >
Release History — virtualenv 20.17.2.dev2+g6845f6f ...
Upgrade embedded pip to 22.2 from 22.1.2 and setuptools to 63.2.0 from 62.6.0 ... Fix AttributeError: 'bool' object has no attribute 'error' when...
Read more >
pip Documentation - Read the Docs
4. In a --system-site-packages virtualenv, pip will not install a package that conflicts with a package in the virtualenv site-packages.
Read more >
pip 0.6.2 - PyPI
Simple to define fixed sets of requirements and reliably reproduce a set of packages. pip is complementary with virtualenv, and it is encouraged...
Read more >
virtualenv(1) — Arch manual pages
install (bootstrap) seed packages (one or more of pip, setuptools, wheel) in the created virtual environment,; install activation scripts into the binary ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found