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 with python after upgrading all pip packages[nothing works!] #4620

Closed
its0x08 opened this issue Jul 13, 2017 · 2 comments
Closed

error with python after upgrading all pip packages[nothing works!] #4620

its0x08 opened this issue Jul 13, 2017 · 2 comments
Labels
auto-locked Outdated issues that have been locked by automation kind: crash For situations where pip crashes type: support User Support

Comments

@its0x08
Copy link

its0x08 commented Jul 13, 2017

  • Pip version:
    not sure(after i execute pip it shows me an error!)
  • Python version:
    Python 2.7.13
  • Operating system:
    Linux kali 4.9.0-kali4-amd64 No instructions for how to install pip #1 SMP Debian 4.9.30-2kali1 (2017-06-22) x86_64 GNU/Linux

Description:

i did upgrade of every pip package and after a restart nothing seem to work!

root@kali:~/Desktop/scripts# pip
Traceback (most recent call last):
  File "/usr/local/bin/pip", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3037, in <module>
    @_call_aside
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3021, in _call_aside
    f(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3065, in _initialize_master_working_set
    for dist in working_set
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3065, in <genexpr>
    for dist in working_set
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2595, in activate
    declare_namespace(pkg)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2163, in declare_namespace
    _handle_ns(packageName, path_item)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2098, in _handle_ns
    loader.load_module(packageName)
  File "/usr/lib/python2.7/pkgutil.py", line 246, in load_module
    mod = imp.load_module(fullname, self.file, self.filename, self.etc)
  File "/usr/local/lib/python2.7/dist-packages/google-1.9.3-py2.7.egg/google/__init__.py", line 49, in <module>
    from bs4 import BeautifulSoup
  File "/usr/local/lib/python2.7/dist-packages/bs4/__init__.py", line 30, in <module>
    from .builder import builder_registry, ParserRejectedMarkup
  File "/usr/local/lib/python2.7/dist-packages/bs4/builder/__init__.py", line 314, in <module>
    from . import _html5lib
  File "/usr/local/lib/python2.7/dist-packages/bs4/builder/_html5lib.py", line 70, in <module>
    class TreeBuilderForHtml5lib(html5lib.treebuilders._base.TreeBuilder):
AttributeError: 'module' object has no attribute '_base'
root@kali:~/Desktop/scripts# 

@pradyunsg pradyunsg added kind: crash For situations where pip crashes type: support User Support labels Aug 6, 2017
@pradyunsg
Copy link
Member

It seems to me that the way you did the upgrade broke your installation (and your system too probably).

Could you post how you did an upgrade of all packages? There's no supported way of doing so, AFAIK.

@xavfernandez
Copy link
Member

With lack of answers, I'm closing it.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 3, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation kind: crash For situations where pip crashes type: support User Support
Projects
None yet
Development

No branches or pull requests

3 participants