You are not logged in.

#1 2014-11-12 18:45:30

doblerone
Member
Registered: 2011-12-08
Posts: 215

[SOLVED] python-requests installation error

I looked for in the wiki but I didn't find anything related.

I tried to install this package:

pip install requests
Requirement already satisfied (use --upgrade to upgrade): requests in /usr/lib/python3.4/site-packages
Cleaning up...

I tried with the --upgrade flag as it was suggested:

pip install requests --upgrade
Downloading/unpacking requests from https://pypi.python.org/packages/2.7/r/requests/requests-2.4.3-py2.py3-none-any.whl#md5=0a66a9c4c22272680430fbb9fb4ca34f
  Downloading requests-2.4.3-py2.py3-none-any.whl (459kB): 459kB downloaded
Installing collected packages: requests
  Found existing installation: requests 2.2.1
    Uninstalling requests:
Cleaning up...
Exception:
Traceback (most recent call last):                                                            
  File "/usr/lib/python3.4/shutil.py", line 522, in move                                      
    os.rename(src, real_dst)                                                                  
OSError: [Errno 18] Invalid cross-device link: '/usr/lib/python3.4/site-packages/requests-2.2.1.dist-info/DESCRIPTION.rst' -> '/tmp/pip-vsgqlvli-uninstall/usr/lib/python3.4/site-packages/requests-2.2.1.dist-info/DESCRIPTION.rst'                                                      

During handling of the above exception, another exception occurred:                           

Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib/python3.4/site-packages/pip/commands/install.py", line 283, in run
    requirement_set.install(install_options, global_options, root=options.root_path)
  File "/usr/lib/python3.4/site-packages/pip/req.py", line 1431, in install
    requirement.uninstall(auto_confirm=True)
  File "/usr/lib/python3.4/site-packages/pip/req.py", line 598, in uninstall
    paths_to_remove.remove(auto_confirm)
  File "/usr/lib/python3.4/site-packages/pip/req.py", line 1836, in remove
    renames(path, new_path)
  File "/usr/lib/python3.4/site-packages/pip/util.py", line 295, in renames
    shutil.move(old, new)
  File "/usr/lib/python3.4/shutil.py", line 535, in move
    os.unlink(src)
PermissionError: [Errno 13] Permission denied: '/usr/lib/python3.4/site-packages/requests-2.2.1.dist-info/DESCRIPTION.rst'

Storing debug log for failure in /home/david/.pip/pip.log

And here it is the error log:

Getting page https://pypi.python.org/simple/requests/
URLs to search for versions for requests in /usr/lib/python3.4/site-packages:
* https://pypi.python.org/simple/requests/
Analyzing links from page https://pypi.python.org/simple/requests/
  Found link https://pypi.python.org/packages/2.7/r/requests/requests-2.0.0-py2.py3-none-any.whl#md5=6af9c16dbddd2fc751ae4f1606d041e8 (from https://pypi.python.org/simple/requests/), version: 2.0.0
  Found link https://pypi.python.org/packages/2.7/r/requests/requests-2.0.1-py2.py3-none-any.whl#md5=d524f9a38a29efe1732fd130e5ebe433 (from https://pypi.python.org/simple/requests/), version: 2.0.1
  Found link https://pypi.python.org/packages/2.7/r/requests/requests-2.1.0-py2.py3-none-any.whl#md5=0848cbc0cc7edd150cb8d6ddc25ca906 (from https://pypi.python.org/simple/requests/), version: 2.1.0
  Found link https://pypi.python.org/packages/2.7/r/requests/requests-2.2.0-py2.py3-none-any.whl#md5=8f989615bb0d276d5f3158e7efab494c (from https://pypi.python.org/simple/requests/), version: 2.2.0
  Found link https://pypi.python.org/packages/2.7/r/requests/requests-2.2.1-py2.py3-none-any.whl#md5=1e38addb978e50bd86f62bda53956b03 (from https://pypi.python.org/simple/requests/), version: 2.2.1
  Found link https://pypi.python.org/packages/2.7/r/requests/requests-2.3.0-py2.py3-none-any.whl#md5=f2d850fd48fc10a93aa03d69b87b96b4 (from https://pypi.python.org/simple/requests/), version: 2.3.0
  Found link https://pypi.python.org/packages/2.7/r/requests/requests-2.4.0-py2.py3-none-any.whl#md5=47948d2fb3f2aa04235e6f637814b226 (from https://pypi.python.org/simple/requests/), version: 2.4.0
  Found link https://pypi.python.org/packages/2.7/r/requests/requests-2.4.1-py2.py3-none-any.whl#md5=19d5413dc71309e4fb1f8103b8eb99ce (from https://pypi.python.org/simple/requests/), version: 2.4.1
  Found link https://pypi.python.org/packages/2.7/r/requests/requests-2.4.2-py2.py3-none-any.whl#md5=f49f34b1fcdef6b557964deea1a80cf3 (from https://pypi.python.org/simple/requests/), version: 2.4.2
  Found link https://pypi.python.org/packages/2.7/r/requests/requests-2.4.3-py2.py3-none-any.whl#md5=0a66a9c4c22272680430fbb9fb4ca34f (from https://pypi.python.org/simple/requests/), version: 2.4.3
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.10.0.tar.gz#md5=c90a48af18eb4170dbe4832c1104440c (from https://pypi.python.org/simple/requests/), version: 0.10.0
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.10.1.tar.gz#md5=699147d2143bff95238befa58980b912 (from https://pypi.python.org/simple/requests/), version: 0.10.1
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.10.2.tar.gz#md5=47c3cf85a0112d423137b43989663bef (from https://pypi.python.org/simple/requests/), version: 0.10.2
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.10.3.tar.gz#md5=a055af00593f4828c3becd0ccfab503f (from https://pypi.python.org/simple/requests/), version: 0.10.3
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.10.4.tar.gz#md5=5e465e9e739bcc9f71935ca4e9706168 (from https://pypi.python.org/simple/requests/), version: 0.10.4
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.10.6.tar.gz#md5=c889401445de3cbbac98509208a73b83 (from https://pypi.python.org/simple/requests/), version: 0.10.6
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.10.7.tar.gz#md5=a3ac9d431981dcfd592fd0f35c499e4a (from https://pypi.python.org/simple/requests/), version: 0.10.7
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.10.8.tar.gz#md5=0fc89a30eef76b2393cbc7ebace91750 (from https://pypi.python.org/simple/requests/), version: 0.10.8
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.11.1.tar.gz#md5=c903c32a0e1f04889e693da8e9c71872 (from https://pypi.python.org/simple/requests/), version: 0.11.1
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.11.2.tar.gz#md5=5acd23600c897bf1560dca18005b428c (from https://pypi.python.org/simple/requests/), version: 0.11.2
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.12.0.tar.gz#md5=c38bacf4d6a065f3c47463e63efdfb5a (from https://pypi.python.org/simple/requests/), version: 0.12.0
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.12.1.tar.gz#md5=fe9e0515d09733d0eb9e2031c03401b2 (from https://pypi.python.org/simple/requests/), version: 0.12.1
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.13.0.tar.gz#md5=7d41e51c273806456faab61370d5147e (from https://pypi.python.org/simple/requests/), version: 0.13.0
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.13.1.tar.gz#md5=31a08091feeefe60817e45122d933219 (from https://pypi.python.org/simple/requests/), version: 0.13.1
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.13.2.tar.gz#md5=fac5635391778e2394a411d37e69ae5e (from https://pypi.python.org/simple/requests/), version: 0.13.2
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.13.3.tar.gz#md5=54387d7df6c69580b906dcb5a2bd0724 (from https://pypi.python.org/simple/requests/), version: 0.13.3
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.13.4.tar.gz#md5=286cd3352509691e81c520accc5b9e48 (from https://pypi.python.org/simple/requests/), version: 0.13.4
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.13.5.tar.gz#md5=805fd122b4cfd224e15ff2f5288c5ba0 (from https://pypi.python.org/simple/requests/), version: 0.13.5
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.13.6.tar.gz#md5=9ea0f38cc4bf444be5a4c90f127211f2 (from https://pypi.python.org/simple/requests/), version: 0.13.6
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.13.7.tar.gz#md5=9212044f915d44fe3010cb923c0e08e5 (from https://pypi.python.org/simple/requests/), version: 0.13.7
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.13.8.tar.gz#md5=d01596bd344db94763b2e4dfaa7bc7b9 (from https://pypi.python.org/simple/requests/), version: 0.13.8
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.13.9.tar.gz#md5=66d52b8f47be517fc91a6e18d6b9ce82 (from https://pypi.python.org/simple/requests/), version: 0.13.9
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.14.0.tar.gz#md5=a809c747e4f09b92147721ebc3e23dd6 (from https://pypi.python.org/simple/requests/), version: 0.14.0
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.14.1.tar.gz#md5=3de30600072cbc7214ae342d1d08aa46 (from https://pypi.python.org/simple/requests/), version: 0.14.1
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.14.2.tar.gz#md5=488508ba3e8270992ad5b3fb54d364ca (from https://pypi.python.org/simple/requests/), version: 0.14.2
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.2.0.tar.gz#md5=637ae94cb6f2f1d9ea9020293055964a (from https://pypi.python.org/simple/requests/), version: 0.2.0
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.2.1.tar.gz#md5=7e9590f3985ece46fc8306e906b458c7 (from https://pypi.python.org/simple/requests/), version: 0.2.1
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.2.2.tar.gz#md5=a703489b1a4a650698ddcf84857360c6 (from https://pypi.python.org/simple/requests/), version: 0.2.2
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.2.3.tar.gz#md5=102243646fc0cffdc82269f4bb5c6d5d (from https://pypi.python.org/simple/requests/), version: 0.2.3
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.2.4.tar.gz#md5=62dbe8cf12bc1ccd03776e74f59e9ef6 (from https://pypi.python.org/simple/requests/), version: 0.2.4
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.3.0.tar.gz#md5=aa1306575a78ba8b5e625dd2645d2ef0 (from https://pypi.python.org/simple/requests/), version: 0.3.0
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.3.1.tar.gz#md5=3f4701e2ab414cd7018804a70328c527 (from https://pypi.python.org/simple/requests/), version: 0.3.1
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.3.2.tar.gz#md5=bde777f4c5b7bbb09033901c443962b3 (from https://pypi.python.org/simple/requests/), version: 0.3.2
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.3.3.tar.gz#md5=84c762c116617ba4dd03c19e2b61eb53 (from https://pypi.python.org/simple/requests/), version: 0.3.3
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.3.4.tar.gz#md5=55152cc2b135bc8989dc4fa279295f8b (from https://pypi.python.org/simple/requests/), version: 0.3.4
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.4.0.tar.gz#md5=77a7a7edd54169c6fa7ace49dcb0b20c (from https://pypi.python.org/simple/requests/), version: 0.4.0
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.4.1.tar.gz#md5=812ff0ce63d14f7b940bacd880d54ee0 (from https://pypi.python.org/simple/requests/), version: 0.4.1
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.5.0.tar.gz#md5=6dfdc1688217d774d524e056ec6605a6 (from https://pypi.python.org/simple/requests/), version: 0.5.0
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.5.1.tar.gz#md5=33a6e65d6a4e5b2d91df76256f607b81 (from https://pypi.python.org/simple/requests/), version: 0.5.1
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.6.0.tar.gz#md5=235e9fb6bfd71a48c0f00c0d5aef8896 (from https://pypi.python.org/simple/requests/), version: 0.6.0
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.6.1.tar.gz#md5=07770334d48bd69ede1cc28cd0dd7680 (from https://pypi.python.org/simple/requests/), version: 0.6.1
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.6.2.tar.gz#md5=0583bb5393b9cfcb022dc2aef7d6ffc8 (from https://pypi.python.org/simple/requests/), version: 0.6.2
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.6.3.tar.gz#md5=35a954ae85b358e498fb0e602f1dce9d (from https://pypi.python.org/simple/requests/), version: 0.6.3
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.6.4.tar.gz#md5=e0eec314178ad9a7bb14f2ec32f35ba3 (from https://pypi.python.org/simple/requests/), version: 0.6.4
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.6.5.tar.gz#md5=52f8bc956e027c8a0eb2684f6928169d (from https://pypi.python.org/simple/requests/), version: 0.6.5
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.6.6.tar.gz#md5=2180dacebc0e30ba730d083739907af6 (from https://pypi.python.org/simple/requests/), version: 0.6.6
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.7.0.tar.gz#md5=83a1a7d79218756efd19b254eeb6b1f0 (from https://pypi.python.org/simple/requests/), version: 0.7.0
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.7.1.tar.gz#md5=4821c6902d8e83c910c69c6492388e5f (from https://pypi.python.org/simple/requests/), version: 0.7.1
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.7.2.tar.gz#md5=03eb97ed6aacb4102fd434bbfc13ce17 (from https://pypi.python.org/simple/requests/), version: 0.7.2
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.7.3.tar.gz#md5=267f6f7d1109775d24a288f798e3ab4a (from https://pypi.python.org/simple/requests/), version: 0.7.3
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.7.4.tar.gz#md5=c015765399b8c1e309c84ade0d38f07b (from https://pypi.python.org/simple/requests/), version: 0.7.4
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.7.5.tar.gz#md5=9a12281a811ca25d347d806c456d96f1 (from https://pypi.python.org/simple/requests/), version: 0.7.5
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.7.6.tar.gz#md5=728b21bf3914d69a4ff1012c66d9b6ba (from https://pypi.python.org/simple/requests/), version: 0.7.6
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.8.0.tar.gz#md5=64dc0095cb645aa7f0083957950d524d (from https://pypi.python.org/simple/requests/), version: 0.8.0
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.8.1.tar.gz#md5=6135f837fbd113fc62904c60dcc5c70d (from https://pypi.python.org/simple/requests/), version: 0.8.1
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.8.2.tar.gz#md5=bdbbd7f45688e23e87eec52835959943 (from https://pypi.python.org/simple/requests/), version: 0.8.2
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.8.3.tar.gz#md5=93e4cd27ab646fb613a926fede1cc4f5 (from https://pypi.python.org/simple/requests/), version: 0.8.3
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.8.4.tar.gz#md5=642e5c70250989e4feda9c50be57b100 (from https://pypi.python.org/simple/requests/), version: 0.8.4
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.8.5.tar.gz#md5=5f2975ee9e57f4ea000e5a3f50fc85d1 (from https://pypi.python.org/simple/requests/), version: 0.8.5
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.8.6.tar.gz#md5=21b03926ab38417a704ebce57972571a (from https://pypi.python.org/simple/requests/), version: 0.8.6
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.8.7.tar.gz#md5=e4d4ee3a90396908bd04b50bf2136617 (from https://pypi.python.org/simple/requests/), version: 0.8.7
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.8.8.tar.gz#md5=bfb182cfd3ed839b97744c553b87f502 (from https://pypi.python.org/simple/requests/), version: 0.8.8
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.8.9.tar.gz#md5=ff5b3bf5bc3ad19930d3f3afe51f182b (from https://pypi.python.org/simple/requests/), version: 0.8.9
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.9.0.tar.gz#md5=5f6f03ec76f68a7a3f35120ab5a6c589 (from https://pypi.python.org/simple/requests/), version: 0.9.0
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.9.1.tar.gz#md5=8ed4667edb5d57945b74a9137adbb8bd (from https://pypi.python.org/simple/requests/), version: 0.9.1
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.9.2.tar.gz#md5=65b36d99a4d2f78a22f08c95d2475e33 (from https://pypi.python.org/simple/requests/), version: 0.9.2
  Found link https://pypi.python.org/packages/source/r/requests/requests-0.9.3.tar.gz#md5=b13b6fbfa8fc3fc3c25bae300748053f (from https://pypi.python.org/simple/requests/), version: 0.9.3
  Found link https://pypi.python.org/packages/source/r/requests/requests-1.0.0.tar.gz#md5=099c9035c4b30a7ae5484b1beabc7407 (from https://pypi.python.org/simple/requests/), version: 1.0.0
  Found link https://pypi.python.org/packages/source/r/requests/requests-1.0.1.tar.gz#md5=2e938f26f2bdf2899862c751bfa7eff5 (from https://pypi.python.org/simple/requests/), version: 1.0.1
  Found link https://pypi.python.org/packages/source/r/requests/requests-1.0.2.tar.gz#md5=e5c1a5a5472cd61f144743dd25a2a29f (from https://pypi.python.org/simple/requests/), version: 1.0.2
  Found link https://pypi.python.org/packages/source/r/requests/requests-1.0.3.tar.gz#md5=a3169a33973d4b5b51843ead01c5e999 (from https://pypi.python.org/simple/requests/), version: 1.0.3
  Found link https://pypi.python.org/packages/source/r/requests/requests-1.0.4.tar.gz#md5=0b7448f9e1a077a7218720575003a1b6 (from https://pypi.python.org/simple/requests/), version: 1.0.4
  Found link https://pypi.python.org/packages/source/r/requests/requests-1.1.0.tar.gz#md5=a0158815af244c32041a3147ee09abf3 (from https://pypi.python.org/simple/requests/), version: 1.1.0
  Found link https://pypi.python.org/packages/source/r/requests/requests-1.2.0.tar.gz#md5=22af2682233770e5468a986f451c51c0 (from https://pypi.python.org/simple/requests/), version: 1.2.0
  Found link https://pypi.python.org/packages/source/r/requests/requests-1.2.1.tar.gz#md5=4d019670b94b17e329007d64e67e045e (from https://pypi.python.org/simple/requests/), version: 1.2.1
  Found link https://pypi.python.org/packages/source/r/requests/requests-1.2.2.tar.gz#md5=1f655ab7f2aa7447a1657ed69786f436 (from https://pypi.python.org/simple/requests/), version: 1.2.2
  Found link https://pypi.python.org/packages/source/r/requests/requests-1.2.3.tar.gz#md5=adbd3f18445f7fe5e77f65c502e264fb (from https://pypi.python.org/simple/requests/), version: 1.2.3
  Found link https://pypi.python.org/packages/source/r/requests/requests-2.0.0.tar.gz#md5=856fc825c17483e25fd55db115028e3f (from https://pypi.python.org/simple/requests/), version: 2.0.0
  Found link https://pypi.python.org/packages/source/r/requests/requests-2.0.1.tar.gz#md5=38e61c2856d2ba2782286730241975e6 (from https://pypi.python.org/simple/requests/), version: 2.0.1
  Found link https://pypi.python.org/packages/source/r/requests/requests-2.1.0.tar.gz#md5=28543001831f46b1ff40686ebc027deb (from https://pypi.python.org/simple/requests/), version: 2.1.0
  Found link https://pypi.python.org/packages/source/r/requests/requests-2.2.0.tar.gz#md5=4d2e17221d478ece045e2e81cdb177f5 (from https://pypi.python.org/simple/requests/), version: 2.2.0
  Found link https://pypi.python.org/packages/source/r/requests/requests-2.2.1.tar.gz#md5=ac27081135f58d1a43e4fb38258d6f4e (from https://pypi.python.org/simple/requests/), version: 2.2.1
  Found link https://pypi.python.org/packages/source/r/requests/requests-2.3.0.tar.gz#md5=7449ffdc8ec9ac37bbcd286003c80f00 (from https://pypi.python.org/simple/requests/), version: 2.3.0
  Found link https://pypi.python.org/packages/source/r/requests/requests-2.4.0.tar.gz#md5=99b830d1afe2e5920adbea0fe3120948 (from https://pypi.python.org/simple/requests/), version: 2.4.0
  Found link https://pypi.python.org/packages/source/r/requests/requests-2.4.1.tar.gz#md5=931461f761c70708c46ea65b7889da58 (from https://pypi.python.org/simple/requests/), version: 2.4.1
  Found link https://pypi.python.org/packages/source/r/requests/requests-2.4.2.tar.gz#md5=a2476d2dd83a0520847f216ce0b5f9d1 (from https://pypi.python.org/simple/requests/), version: 2.4.2
  Found link https://pypi.python.org/packages/source/r/requests/requests-2.4.3.tar.gz#md5=02214b3a179e445545de4b7a98d3dd17 (from https://pypi.python.org/simple/requests/), version: 2.4.3
Using version 2.4.3 (newest of versions: 2.4.3, 2.4.3, 2.4.2, 2.4.2, 2.4.1, 2.4.1, 2.4.0, 2.4.0, 2.3.0, 2.3.0, 2.2.1, 2.2.1, 2.2.1, 2.2.0, 2.2.0, 2.1.0, 2.1.0, 2.0.1, 2.0.1, 2.0.0, 2.0.0, 1.2.3, 1.2.2, 1.2.1, 1.2.0, 1.1.0, 1.0.4, 1.0.3, 1.0.2, 1.0.1, 1.0.0, 0.14.2, 0.14.1, 0.14.0, 0.13.9, 0.13.8, 0.13.7, 0.13.6, 0.13.5, 0.13.4, 0.13.3, 0.13.2, 0.13.1, 0.13.0, 0.12.1, 0.12.0, 0.11.2, 0.11.1, 0.10.8, 0.10.7, 0.10.6, 0.10.4, 0.10.3, 0.10.2, 0.10.1, 0.10.0, 0.9.3, 0.9.2, 0.9.1, 0.9.0, 0.8.9, 0.8.8, 0.8.7, 0.8.6, 0.8.5, 0.8.4, 0.8.3, 0.8.2, 0.8.1, 0.8.0, 0.7.6, 0.7.5, 0.7.4, 0.7.3, 0.7.2, 0.7.1, 0.7.0, 0.6.6, 0.6.5, 0.6.4, 0.6.3, 0.6.2, 0.6.1, 0.6.0, 0.5.1, 0.5.0, 0.4.1, 0.4.0, 0.3.4, 0.3.3, 0.3.2, 0.3.1, 0.3.0, 0.2.4, 0.2.3, 0.2.2, 0.2.1, 0.2.0)
Downloading/unpacking requests from https://pypi.python.org/packages/2.7/r/requests/requests-2.4.3-py2.py3-none-any.whl#md5=0a66a9c4c22272680430fbb9fb4ca34f
  Downloading from URL https://pypi.python.org/packages/2.7/r/requests/requests-2.4.3-py2.py3-none-any.whl#md5=0a66a9c4c22272680430fbb9fb4ca34f
Installing collected packages: requests
  Found existing installation: requests 2.2.1
    Uninstalling requests:
      Removing file or directory /usr/lib/python3.4/site-packages/requests-2.2.1.dist-info/DESCRIPTION.rst
Cleaning up...
  Removing temporary dir /tmp/pip_build_david...
Exception:
Traceback (most recent call last):
  File "/usr/lib/python3.4/shutil.py", line 522, in move
    os.rename(src, real_dst)
OSError: [Errno 18] Invalid cross-device link: '/usr/lib/python3.4/site-packages/requests-2.2.1.dist-info/DESCRIPTION.rst' -> '/tmp/pip-j0hlidnw-uninstall/usr/lib/python3.4/site-packages/requests-2.2.1.dist-info/DESCRIPTION.rst'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib/python3.4/site-packages/pip/commands/install.py", line 283, in run
    requirement_set.install(install_options, global_options, root=options.root_path)
  File "/usr/lib/python3.4/site-packages/pip/req.py", line 1431, in install
    requirement.uninstall(auto_confirm=True)
  File "/usr/lib/python3.4/site-packages/pip/req.py", line 598, in uninstall
    paths_to_remove.remove(auto_confirm)
  File "/usr/lib/python3.4/site-packages/pip/req.py", line 1836, in remove
    renames(path, new_path)
  File "/usr/lib/python3.4/site-packages/pip/util.py", line 295, in renames
    shutil.move(old, new)
  File "/usr/lib/python3.4/shutil.py", line 535, in move
    os.unlink(src)
PermissionError: [Errno 13] Permission denied: '/usr/lib/python3.4/site-packages/requests-2.2.1.dist-info/DESCRIPTION.rst'

Some help would be appreciated smile

Last edited by doblerone (2014-11-14 19:08:03)

Offline

#2 2014-11-14 05:30:53

hbunke
Member
Registered: 2014-11-14
Posts: 1

Re: [SOLVED] python-requests installation error

It seems you don't have write permissions for Python's site-packages directory. Try

sudo pip install requests --upgrade

or su to root.

Offline

#3 2014-11-14 05:54:15

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,070

Re: [SOLVED] python-requests installation error

It looks like you already have requests installed, maybe from the python-requests package in Community? Why are you trying to use pip instead?

Offline

#4 2014-11-14 19:07:43

doblerone
Member
Registered: 2011-12-08
Posts: 215

Re: [SOLVED] python-requests installation error

Scimmia wrote:

It looks like you already have requests installed, maybe from the python-requests package in Community? Why are you trying to use pip instead?

Because I always get the same error when I update my system. It was related with the "imup" package from AUR. I uninstalled, updated and reinstalled again and now everything is as it should be.

Thanks!!

Offline

Board footer

Powered by FluxBB