qpython
qpython copied to clipboard
PIP cannot upgrade package
I'm using PIP to install a package and it works well unless I add the --upgrade tag. It seems PIP cannot uninstall the previous version of the package.
Here is the almost full log :
------------------------------------------------------------
/data/user/0/org.qpython.qpy/files/bin/pip run on Sun Mar 11 20:42:55 2018
Downloading/unpacking youtube-dl
Getting page https://pypi.python.org/simple/youtube_dl
URLs to search for versions for youtube-dl:
* https://pypi.python.org/simple/youtube_dl/
Getting page https://pypi.python.org/simple/youtube_dl/
Analyzing links from page https://pypi.python.org/simple/youtube-dl/
Found link https://pypi.python.org/packages/00/5a/0177cdaf4611a1f5721c59e4425c5bac81985878db181fcd3df62b55f069/youtube_dl-2016.6.11.tar.gz#md5=de74eea108a02f37dbffdbe9273189f5 (from https://pypi.python.org/simple/youtube-dl/), version: 2016.6.11
Found link https://pypi.python.org/packages/00/64/31aea43bedfc6fed895f16e02770823454d8d98145fd48bab5a5409d9af6/youtube_dl-2016.01.01.tar.gz#md5=c3704305506c5ac5727ea466adbf8beb (from https://pypi.python.org/simple/youtube-dl/), version: 2016.01.01
[1368 same lines ...]
Skipping link https://pypi.python.org/packages/ff/d2/9f759d39198d56ea7e23b05e3c06e2fe1e913927ce4719088a53075357fc/youtube_dl-2014.11.09-py2.py3-none-any.whl#md5=9548f65f4de9b176f4c03648a67a3e97 (from https://pypi.python.org/simple/youtube-dl/); unknown archive format: .whl
Using version 2018.3.10 (newest of versions: 2018.3.10, 2018.3.3, [...], 2013.01.13, 2012.02.22)
Downloading from URL https://pypi.python.org/packages/74/6f/6813f6354195aacaf1bcfb9cea500db21c42e6787fb8d1709ff4ba7c632d/youtube_dl-2018.3.10.tar.gz#md5=ea5c77794f1ef0b97344a0fffd689f03 (from https://pypi.python.org/simple/youtube-dl/)
Running setup.py egg_info for package youtube-dl
running egg_info
creating pip-egg-info/youtube_dl.egg-info
writing pip-egg-info/youtube_dl.egg-info/PKG-INFO
writing top-level names to pip-egg-info/youtube_dl.egg-info/top_level.txt
writing dependency_links to pip-egg-info/youtube_dl.egg-info/dependency_links.txt
writing entry points to pip-egg-info/youtube_dl.egg-info/entry_points.txt
writing manifest file 'pip-egg-info/youtube_dl.egg-info/SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
reading manifest file 'pip-egg-info/youtube_dl.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'pip-egg-info/youtube_dl.egg-info/SOURCES.txt'
Installing collected packages: youtube-dl
Found existing installation: youtube-dl 2018.03.03
Uninstalling youtube-dl:
Removing file or directory /data/data/org.qpython.qpy/files/bin/youtube-dl
Exception:
Traceback (most recent call last):
File "/data/user/0/org.qpython.qpy/files/lib/python2.7/site-packages/pip/basecommand.py", line 126, in main
self.run(options, args)
File "/data/user/0/org.qpython.qpy/files/lib/python2.7/site-packages/pip/commands/install.py", line 228, in run
requirement_set.install(install_options, global_options)
File "/data/user/0/org.qpython.qpy/files/lib/python2.7/site-packages/pip/req.py", line 1090, in install
requirement.uninstall(auto_confirm=True)
File "/data/user/0/org.qpython.qpy/files/lib/python2.7/site-packages/pip/req.py", line 476, in uninstall
paths_to_remove.remove(auto_confirm)
File "/data/user/0/org.qpython.qpy/files/lib/python2.7/site-packages/pip/req.py", line 1392, in remove
renames(path, new_path)
File "/data/user/0/org.qpython.qpy/files/lib/python2.7/site-packages/pip/util.py", line 248, in renames
shutil.move(old, new)
File "/data/user/0/org.qpython.qpy/files/lib/python27.zip/shutil.py", line 302, in move
copy2(src, real_dst)
File "/data/user/0/org.qpython.qpy/files/lib/python27.zip/shutil.py", line 131, in copy2
copystat(src, dst)
File "/data/user/0/org.qpython.qpy/files/lib/python27.zip/shutil.py", line 98, in copystat
os.utime(dst, (st.st_atime, st.st_mtime))
OSError: [Errno 1] Operation not permitted: '/storage/emulated/0/qpython/cache/pip-RvfC7k-uninstall/data/data/org.qpython.qpy/files/bin/youtube-dl'