You are not logged in.

#1 2016-02-10 10:57:09

vollekannehoschi
Member
Registered: 2015-03-08
Posts: 29

[SOLVED] pip2 error after upgrading python2-pip and other packages

Hi,

I  upgraded my system on 2016/01/31 which upgraded also some python packages. After upgrading I get the following error when running just `pip2`:

~ > pip2
Traceback (most recent call last):
  File "/usr/bin/pip2", line 9, in <module>
    load_entry_point('pip==8.0.2', 'console_scripts', 'pip')()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 547, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2719, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2379, in load
    return self.resolve()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2385, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python2.7/site-packages/pip/__init__.py", line 15, in <module>
    from pip.vcs import git, mercurial, subversion, bazaar  # noqa
  File "/usr/lib/python2.7/site-packages/pip/vcs/mercurial.py", line 9, in <module>
    from pip.download import path_to_url
  File "/usr/lib/python2.7/site-packages/pip/download.py", line 38, in <module>
    from pip._vendor import requests, six
  File "/usr/lib/python2.7/site-packages/pip/_vendor/requests/__init__.py", line 53, in <module>
    from .packages.urllib3.contrib import pyopenssl
  File "/usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/contrib/pyopenssl.py", line 54, in <module>
    import OpenSSL.SSL
  File "/usr/lib/python2.7/site-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import rand, crypto, SSL
  File "/usr/lib/python2.7/site-packages/OpenSSL/rand.py", line 11, in <module>
    from OpenSSL._util import (
  File "/usr/lib/python2.7/site-packages/OpenSSL/_util.py", line 6, in <module>
    from cryptography.hazmat.bindings.openssl.binding import Binding
  File "/usr/lib/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 68, in <module>
    error=-1)
  File "/usr/lib/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 57, in wrapper
    ffi.def_extern(name=name, **kwargs)(func)
AttributeError: 'CompiledFFI' object has no attribute 'def_extern'

I don't know not much about Python, only installed these packages as dependencies. So I don't understand what this error is all about and need help to figure out if the package is just broken or it is something in my system. I downgraded all listed packages to its versions before the upgrade and it works great.

Python related package changes:
-ipython 4.0.0-4
+ipython 4.0.1-1
-python-packaging 15.3-2
+python-packaging 16.0-1
-python-pip 7.1.2-2
+python-pip 8.0.2-1
-python-pygments 2.0.2-3
-python-pytest 2.8.5-1
-python-pyzmq 15.1.0-1
+python-pygments 2.1-1
+python-pyparsing 2.0.7-1
+python-pytest 2.8.7-1
+python-pyzmq 15.2.0-1
-python-setuptools 1:19.2-1
+python-setuptools 1:19.6.2-1
-python-urllib3 1.13.1-1
-python-websocket-client 0.34.0-1
+python-urllib3 1.14-1
+python-websocket-client 0.35.0-1
-python2-beaker 1.7.0-3
+python2-beaker 1.8.0-1
-python2-cffi 1.4.2-1
+python2-cffi 1.5.0-1
-python2-cryptography 1.1.2-1
+python2-cryptography 1.2.2-1
-python2-futures 3.0.3-1
+python2-futures 3.0.4-1
-python2-keyring 5.7.1-1
+python2-keyring 8.2-1
-python2-msgpack 0.4.6-3
+python2-msgpack 0.4.7-1
-python2-packaging 15.3-2
+python2-packaging 16.0-1
-python2-pip 7.1.2-2
+python2-pip 8.0.2-1
-python2-pygments 2.0.2-3
+python2-pygments 2.1-1
+python2-pyparsing 2.0.7-1
-python2-pytest 2.8.5-1
+python2-pytest 2.8.7-1
-python2-rsa 3.2.3-1
-python2-setuptools 1:19.2-1
+python2-rsa 3.3-1
+python2-setuptools 1:19.6.2-1
-python2-urllib3 1.13.1-1
+python2-urllib3 1.14-1
-python2-websocket-client 0.34.0-1
+python2-websocket-client 0.35.0-1

Last edited by vollekannehoschi (2016-03-01 09:05:10)

Offline

#2 2016-02-10 19:38:16

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] pip2 error after upgrading python2-pip and other packages

Some of those packages are out of date, try a full pacman -Syu because it works fine here.

I have:

python2-pip 8.0.2-1
python2-setuptools 1:20.0-1
python2-packaging 16.2-1

You have:

python2-pip 8.0.2-1
python2-setuptools 1:19.6.2-1
python2-packaging 16.0-1

Last edited by eschwartz (2016-02-10 19:41:13)


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#3 2016-03-01 08:31:54

vollekannehoschi
Member
Registered: 2015-03-08
Posts: 29

Re: [SOLVED] pip2 error after upgrading python2-pip and other packages

Just in case this was not clear, but I do always a full pacman upgrade. I tried to update today with the same error sad
Here are the current versions:

    Package changes:
    -openssh 7.1p2-1
    +openssh 7.2p1-1
    -python-packaging 15.3-2
    +python-packaging 16.5-1
    -python-pip 7.1.2-2
    +python-pip 8.0.3-1
    -python-pygments 2.0.2-3
    +python-pygments 2.1.1-1
    -python-pytest 2.8.5-1
    -python-pyzmq 15.1.0-1
    +python-pytest 2.8.7-1
    +python-pyzmq 15.2.0-1
    -python-setuptools 1:19.2-1
    +python-setuptools 1:20.2.2-1
    -python-urllib3 1.13.1-1
    -python-websocket-client 0.34.0-1
    +python-urllib3 1.14-1
    +python-websocket-client 0.35.0-1
    -python2-beaker 1.7.0-3
    +python2-beaker 1.8.0-1
    -python2-cffi 1.4.2-1
    +python2-cffi 1.5.2-1
    -python2-cryptography 1.1.2-1
    +python2-cryptography 1.2.2-1
    -python2-futures 3.0.3-1
    +python2-futures 3.0.5-1
    -python2-keyring 5.7.1-1
    +python2-keyring 8.4.1-1
    -python2-msgpack 0.4.6-3
    +python2-msgpack 0.4.7-1
    -python2-packaging 15.3-2
    +python2-packaging 16.5-1
    -python2-pip 7.1.2-2
    +python2-pip 8.0.3-1
    -python2-pygments 2.0.2-3
    +python2-pygments 2.1.1-1
    -python2-pytest 2.8.5-1
    +python2-pytest 2.8.7-1
    -python2-rsa 3.2.3-1
    -python2-setuptools 1:19.2-1
    +python2-rsa 3.3-1
    +python2-setuptools 1:20.2.2-1
    -python2-urllib3 1.13.1-1
    +python2-urllib3 1.14-1
    -python2-websocket-client 0.34.0-1
    +python2-websocket-client 0.35.0-1

pip3 works fine by the way.

Offline

#4 2016-03-01 09:01:55

vollekannehoschi
Member
Registered: 2015-03-08
Posts: 29

Re: [SOLVED] pip2 error after upgrading python2-pip and other packages

It works now after removing the AUR package 'gcalcli'

Offline

Board footer

Powered by FluxBB