Dropbox installation failed and corrupts pip3

I am running Python 3.4.2 on Raspbian Jessie on Pi3

pip3 works fine until I try:

sudo pip3 install dropbox

      

What gives:

Downloading/unpacking dropbox
Requirement already satisfied (use --upgrade to upgrade): urllib3 in /usr/lib/python3/dist-packages (from dropbox)
Requirement already satisfied (use --upgrade to upgrade): six>=1.3.0 in /usr/lib/python3/dist-packages (from dropbox)
Downloading/unpacking requests>=2.5.1,!=2.6.1 (from dropbox)
Downloading/unpacking idna>=2.5,<2.6 (from requests>=2.5.1,!=2.6.1->dropbox)
Downloading/unpacking certifi>=2017.4.17 (from requests>=2.5.1,!=2.6.1->dropbox)
Downloading/unpacking chardet>=3.0.2,<3.1.0 (from requests>=2.5.1,!=2.6.1->dropbox)
Installing collected packages: dropbox, requests, idna, certifi, chardet
  Found existing installation: requests 2.4.3
    Not uninstalling requests at /usr/lib/python3/dist-packages, owned by OS
  Found existing installation: chardet 2.3.0
    Not uninstalling chardet at /usr/lib/python3/dist-packages, owned by OS
Successfully installed dropbox requests idna certifi chardet
Cleaning up...

      

After that pip3 (but not pip) is now corrupted and just started:

sudo pip3 

      

you receive the following error message:

/usr/local/lib/python3.4/dist-packages/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.9.1) or chardet (3.0.4) doesn't match a supported version!
  RequestsDependencyWarning)
Traceback (most recent call last):
  File "/usr/bin/pip3", line 9, in <module>
    load_entry_point('pip==1.5.6', 'console_scripts', 'pip3')()
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 356, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2476, in load_entry_point
    return ep.load()
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2190, in load
    ['__name__'])
  File "/usr/lib/python3/dist-packages/pip/__init__.py", line 74, in <module>
    from pip.vcs import git, mercurial, subversion, bazaar  # noqa
  File "/usr/lib/python3/dist-packages/pip/vcs/mercurial.py", line 9, in <module>
    from pip.download import path_to_url
  File "/usr/lib/python3/dist-packages/pip/download.py", line 22, in <module>
    import requests, six
  File "/usr/local/lib/python3.4/dist-packages/requests/__init__.py", line 90, in <module>
    from urllib3.exceptions import DependencyWarning
ImportError: cannot import name 'DependencyWarning'

      

I have installed many other packages from source including ffmpeg, gstreamer 1.10.5, opencv 3.2.0, so I suspect this process is to blame, but only trying to install Dropbox using pip3 corruptts pip3.

Any help with this issue would be appreciated.

+3


source to share


2 answers


@mdasari Thanks for a ton of your help. I am running Python 3.4.2, so I used easy_install3 to uninstall and reinstall pip as you suggested. This time the dropbox seems to be installed correctly (haven't tested it yet), but pip3 is corrupted again and gives me the same error as before. However, after rebooting, the error went away and pip3 is fine. For others, this is exactly what I did to fix the problem (again, I'm using Python 3.4.2):



sudo apt-get remove python-pip

sudo apt-get autoremove

sudo easy_install3 -U pip

sudo pip3 install dropbox

reboot

      

+3


source


I think the problem is with pip, not Dropbox. Have you tried uninstalling the current version and reinstalling it?

apt-get remove python-pip
easy_install-3.5 -U pip

      



You can see previous issues here and here

+1


source







All Articles