PyPI package update not upgradable - python

I have uploaded a module on PyPI and I had recently added version 0.2 of the module on PyPI.
When I try to upgrade the module using pip, I get an error.
~/Desktop pip install musicnow==0.2
Collecting musicnow==0.2
Could not find a version that satisfies the requirement musicnow==0.2 (from versions: 0.1)
No matching distribution found for musicnow==0.2
Even though on PyPI it shows that I have version 0.2
I use this command to upload upgrades of my module : $ python setup.py register sdist upload

Related

Verifying the Python package compatibility of PIP

Previously, I installed a specific Python package.
My Python environment was version 3.5.9, and the package I was going to install was as follows.
I have a NEXUS Repository
I upload and use python packages that I like to use in the repository.
I used it normally and uploaded additional latest versions of some packages.
After that, there was a Python package installation error.
↓ The following is the installation log of llvmlite
Collecting llvmlite>=0.28.0dev0 (from numba==0.43.1->-r /tmp/requirements.txt (line 6))
1 location(s) to search for versions of llvmlite:
* http://10.253.225.6:8081/repository/pypi-repo/simple/llvmlite/
Getting page http://10.253.225.6:8081/repository/pypi-repo/simple/llvmlite/
http://10.253.225.6:8081 "GET /repository/pypi-repo/simple/llvmlite/ HTTP/1.1" 200 2914
Analyzing links from page http://10.253.225.6:8081/repository/pypi-repo/simple/llvmlite/
Found link http://10.253.225.6:8081/repository/pypi-repo/packages/llvmlite/0.36.0/llvmlite-0.36.0.tar.gz#md5=0af63891993526bee21eaa408ce56cfe (from http://10.253.225.6:8081/repository/pypi-repo/simple/llvmlite/), version: 0.36.0
Found link http://10.253.225.6:8081/repository/pypi-repo/packages/llvmlite/0.28.0/llvmlite-0.28.0.tar.gz#md5=2e0b4586a8c8c1981ce49e837bf70781 (from http://10.253.225.6:8081/repository/pypi-repo/simple/llvmlite/), version: 0.28.0
Skipping link http://10.253.225.6:8081/repository/pypi-repo/packages/llvmlite/0.28.0/llvmlite-0.28.0-cp37-cp37m-manylinux1_x86_64.whl#md5=6588594ad55a67f248d31712a716654d (from http://10.253.225.6:8081/repository/pypi-repo/simple/llvmlite/); it is not compatible with this Python
Skipping link http://10.253.225.6:8081/repository/pypi-repo/packages/llvmlite/0.28.0/llvmlite-0.28.0-cp37-cp37m-manylinux1_i686.whl#md5=746127c2493947a8437bfe0c324ebc72 (from http://10.253.225.6:8081/repository/pypi-repo/simple/llvmlite/); it is not compatible with this Python
Skipping link http://10.253.225.6:8081/repository/pypi-repo/packages/llvmlite/0.28.0/llvmlite-0.28.0-cp36-cp36m-manylinux1_x86_64.whl#md5=10191b37db21e01beb0ee5895f12f85f (from http://10.253.225.6:8081/repository/pypi-repo/simple/llvmlite/); it is not compatible with this Python
Skipping link http://10.253.225.6:8081/repository/pypi-repo/packages/llvmlite/0.28.0/llvmlite-0.28.0-cp36-cp36m-manylinux1_i686.whl#md5=90ed888ae45fd95306646dcbb22d0a8f (from http://10.253.225.6:8081/repository/pypi-repo/simple/llvmlite/); it is not compatible with this Python
Found link http://10.253.225.6:8081/repository/pypi-repo/packages/llvmlite/0.28.0/llvmlite-0.28.0-cp35-cp35m-manylinux1_x86_64.whl#md5=7cef11f191acb58c5149bfad3ee9fd01 (from http://10.253.225.6:8081/repository/pypi-repo/simple/llvmlite/), version: 0.28.0
Skipping link http://10.253.225.6:8081/repository/pypi-repo/packages/llvmlite/0.28.0/llvmlite-0.28.0-cp35-cp35m-manylinux1_i686.whl#md5=108739fdcde2547d10d120ba405171c9 (from http://10.253.225.6:8081/repository/pypi-repo/simple/llvmlite/); it is not compatible with this Python
Skipping link http://10.253.225.6:8081/repository/pypi-repo/packages/llvmlite/0.28.0/llvmlite-0.28.0-cp27-cp27mu-manylinux1_x86_64.whl#md5=4ad41048e28167b63486edb1f0f40d56 (from http://10.253.225.6:8081/repository/pypi-repo/simple/llvmlite/); it is not compatible with this Python
Skipping link http://10.253.225.6:8081/repository/pypi-repo/packages/llvmlite/0.28.0/llvmlite-0.28.0-cp27-cp27mu-manylinux1_i686.whl#md5=f1c00bc8a7914303654a333f8f7f4508 (from http://10.253.225.6:8081/repository/pypi-repo/simple/llvmlite/); it is not compatible with this Python
Skipping link http://10.253.225.6:8081/repository/pypi-repo/packages/llvmlite/0.28.0/llvmlite-0.28.0-1-cp37-cp37m-manylinux1_x86_64.whl#md5=f1799c47f721b0655a8f5d42fdbcad6d (from http://10.253.225.6:8081/repository/pypi-repo/simple/llvmlite/); it is not compatible with this Python
Skipping link http://10.253.225.6:8081/repository/pypi-repo/packages/llvmlite/0.28.0/llvmlite-0.28.0-1-cp36-cp36m-manylinux1_x86_64.whl#md5=145fbb53ebc081144a3d775f0908f5a4 (from http://10.253.225.6:8081/repository/pypi-repo/simple/llvmlite/); it is not compatible with this Python
Found link http://10.253.225.6:8081/repository/pypi-repo/packages/llvmlite/0.28.0/llvmlite-0.28.0-1-cp35-cp35m-manylinux1_x86_64.whl#md5=41a71b4f6c607c1f00a89fa61e81e13f (from http://10.253.225.6:8081/repository/pypi-repo/simple/llvmlite/), version: 0.28.0
Skipping link http://10.253.225.6:8081/repository/pypi-repo/packages/llvmlite/0.28.0/llvmlite-0.28.0-1-cp27-cp27mu-manylinux1_x86_64.whl#md5=5ecda86d4835aae6f6d326c88d938e17 (from http://10.253.225.6:8081/repository/pypi-repo/simple/llvmlite/); it is not compatible with this Python
Using version 0.36.0 (newest of versions: 0.28.0, 0.36.0)
pip found that there were two versions of the installable package. (0.28.0, 0.36.0)
However, since 0.36.0 is a newer version, a message popped up saying that 0.36.0 will be
installed, and I installed 0.36.0 version.
Using version 0.36.0 (newest of versions: 0.28.0, 0.36.0)
As shown in the log above, llvmlit/0.36.0 of the first "Found link" should not be adopted.
The reason is that 0.36.0 can only be installed in Python 3.6.x versions or higher.
I wonder why pip recognized version 0.36.0 as an installable package.
That's why I tried to investigate pip's official github source code,
but I can't find which source code is the file that checks python package compatibility.
I want to see the source code verifying the Python package compatibility of PIP
Where and how can I find the source code where the pip checks the compatibility of the Python package?
(I want to analyze the source code accurately and know exactly why that package was adopted as an installable package.)
thank you

Unable to install pylint with pip in python 3.9

I am starting to use VS Code, but pylint is not installed and it gives me an error.
I try to install pylint using pip, but it gives me an error code.
Collecting pylint
Using cached pylint-2.6.0-py3-none-any.whl (325 kB)
Collecting astroid<=2.5,>=2.4.0
Using cached astroid-2.4.2-py3-none-any.whl (213 kB)
Collecting colorama
Using cached colorama-0.4.4-py2.py3-none-any.whl (16 kB)
Collecting isort<6,>=4.2.5
Using cached isort-5.6.4-py3-none-any.whl (98 kB)
Collecting lazy-object-proxy==1.4.*
Using cached lazy-object-proxy-1.4.3.tar.gz (34 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
WARNING: Requested lazy-object-proxy==1.4.* from https://files.pythonhosted.org/packages/07/3f/a3d687f83c7d44970f70ff0400677746c8860b11f0c08f6b4e07205f0cdc/lazy-object-proxy-1.4.3.tar.gz#sha256=f3900e8a5de27447acbf900b4750b0ddfd7ec1ea7fbaf11dfa911141bc522af0 (from astroid<=2.5,>=2.4.0->pylint), but installing version 0.0.0
ERROR: Requested lazy-object-proxy==1.4.* from https://files.pythonhosted.org/packages/07/3f/a3d687f83c7d44970f70ff0400677746c8860b11f0c08f6b4e07205f0cdc/lazy-object-proxy-1.4.3.tar.gz#sha256=f3900e8a5de27447acbf900b4750b0ddfd7ec1ea7fbaf11dfa911141bc522af0 (from astroid<=2.5,>=2.4.0->pylint) has different version in metadata: '0.0.0'```
This is a bug of pip for now, see https://github.com/pypa/pip/issues/9203. The pip does something wrong in its package-dependencies handling. And there is a workaround listed in this issue, use --use-deprecated=legacy-resolver. And be noted: This will work until we release pip 21.0.
So run pip install --use-deprecated=legacy-resolver pylint will resolve this problem. This works for me on win10, finally I got lazy-object-proxy 0.0.0 and pylint 2.6.0 installed, though 0.0.0 is kinda weird.
I had the same issues with Python 3.9 & Pylint.
Even when I tried the answers given here, nothing worked. I kept on getting Error messages.
All my issues where fixed by doing the following:
Uninstalled Python 3.9.1
Installed Python 3.7.9 - (Remember to click the box add to PATH)
Verifying Python Installation:
3.1 python --version, This should give you Python 3.7.9
If it doesn't and you get an Error, you need to configure your PATH, here is a video on how to fix that:
https://www.youtube.com/watch?v=vWxQG70GqT4&list=PL914uJ85wHwJ4WYvHEhPHSgG2oyi7Azat&index=11&ab_channel=KyleCook
Verifying pip Installation:
4.1 pip --version (I got another Error here again)
i.e.: ModuleNotFoundError: No module named 'pip' python3
I fixed that by:
4.1.1 python -m ensurepip
4.1.2 python -m pip install --upgrade pip
Ref: ModuleNotFoundError: No module named 'pip' python3
Install Pylint for Python 3.6+:
5.1 pip install pylint --upgrade
Ref: https://pypi.org/project/pylint/
This worked for me.

How do I install tables module to run?

I am trying to run some code written by a collaborator in Python 2 which requires the tables module. I have checked that tables is installed by importing it successfully in a Python 3 shell at the command line but when I do the same for Python 2, there is no module named tables.
All answers I have found so far don't seem to solve my issue, any ideas?
Cheers :)
Try download the package with
pip install tables==3.5.2 -- Python 2
Also, follow this issue on GitHub regarding this at #772
It's not recommended to use python2 as the end of its life on January
1st, 2020, Please consider visiting this documentation Migrating
from PyTables 2.x to 3.x
Use Command - pip install tables
C:\Python27\Scripts>pip.exe install tables
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting tables
Downloading https://files.pythonhosted.org/packages/84/86/34604cfd8e79d23ffef7f1c0ab134ddb98da572d0fcb9cb4631d5b47f549/tables-3.5.2-cp27-cp27m-win_amd64.whl (3.5MB)
|UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU| 3.5MB 787kB/s
Collecting numexpr>=2.6.2
Downloading https://files.pythonhosted.org/packages/45/d3/5997f8c7d48d4947665c7e7dfaabc3076da85390faf015288e39f242d520/numexpr-2.7.0-cp27-none-win_amd64.whl (106kB)
|UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU| 112kB 3.4MB/s
Requirement already satisfied: six>=1.9.0 in c:\python27\lib\site-packages (from tables) (1.12.0)
Requirement already satisfied: numpy>=1.9.3 in c:\python27\lib\site-packages (from tables) (1.16.5)
Collecting mock>=2.0
Downloading https://files.pythonhosted.org/packages/05/d2/f94e68be6b17f46d2c353564da56e6fb89ef09faeeff3313a046cb810ca9/mock-3.0.5-py2.py3-none-any.whl
Collecting funcsigs>=1; python_version < "3.3"
Downloading https://files.pythonhosted.org/packages/69/cb/f5be453359271714c01b9bd06126eaf2e368f1fddfff30818754b5ac2328/funcsigs-1.0.2-py2.py3-none-any.whl
Installing collected packages: numexpr, funcsigs, mock, tables
WARNING: The scripts pt2to3.exe, ptdump.exe, ptrepack.exe and pttree.exe are installed in 'c:\python27\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed funcsigs-1.0.2 mock-3.0.5 numexpr-2.7.0 tables-3.5.2
C:\Python27\Scripts>

Error: Failed building wheel for wxpython-phoenix while installing wx

I am trying to install wxpython (I have python 3.5.2(32Bit) and Windows 10(64Bit))
I tried :pip install wx and i get: Failed building wheel for wxpython-phoenix 2 times and then a big error line-->
I also tried installing Anaconda, but it did not help.How can I overcome the problem ?
There's a lot of questions about failed installations on windows, probably because the packages are compiled when installed, and sometimes the compilation fail when the compiler is not properly configured. I admit I decided to let the specialized people handle it.
As a nice workaround, you can grab the already built distribution at the official wxpython website located here:
Python 3.5 32/64 bit windows:
https://wxpython.org/Phoenix/snapshot-builds/wxPython_Phoenix-3.0.3.dev2700+c524ed1-cp35-cp35m-win_amd64.whl
https://wxpython.org/Phoenix/snapshot-builds/wxPython_Phoenix-3.0.3.dev2700+c524ed1-cp35-cp35m-win32.whl
just download the .whl file and do for example:
C:\python35\scripts\pip install wxPython_Phoenix-3.0.3.dev2700+c524ed1-cp35-cp35m-win_amd64.whl
For linux you need to go here first
https://extras.wxpython.org/wxPython4/extras/linux/gtk3/
Then grab your linux version and do the install.
(base) fsdfsdfd#linux:~/Downloads$ pip install wxPython-4.1.1-cp38-cp38-linux_x86_64.whl
Processing ./wxPython-4.1.1-cp38-cp38-linux_x86_64.whl
Requirement already satisfied: pillow in /home/orangel/miniconda3/lib/python3.8/site-packages (from wxPython==4.1.1) (8.1.2)
Requirement already satisfied: numpy; python_version >= "3.0" in /home/orangel/miniconda3/lib/python3.8/site-packages (from wxPython==4.1.1) (1.20.1)
Requirement already satisfied: six in /home/orangel/miniconda3/lib/python3.8/site-packages (from wxPython==4.1.1) (1.15.0)
Installing collected packages: wxPython
Successfully installed wxPython-4.1.1
if does not works, please try this
sudo apt install libwxgtk3.0-gtk3-dev

python pip instal apns 0.2.1

I'm trying to use apns-client 0.2.1 but I only get an error message.
22:56:01 $ pip install apnsclient==0.2.1
Collecting apnsclient==0.2.1
Could not find a version that satisfies the requirement apnsclient==0.2.1 (from versions: 0.1)
No matching distribution found for apnsclient==0.2.1
How can I install 0.2.1 version and then save it in requirements.txt? I need it in this way because my hosting use this file too.
The package is called apns-client, notice the dash.
pip install apns-client

Categories