Repository navigation
Closed
Description
Hi !
We're having a global failure in all our tests that depend on python-can, since the release of 3.1.0 a few hours ago (we use python-can as part of our CAN implementation on secdev/scapy). The package installation fail during PyPi setup.
I was able to reproduce locally:
gpotter@vmg:~/github/scapy$ pip install python-can
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.
Collecting python-can
Using cached https://files.pythonhosted.org/packages/02/01/133f113b9914b26891f0c13be61823872f9216ab0fa1859f6f1b7a15c122/python_can-3.1.0-py2.py3-none-any.whl
Collecting wrapt~=1.10 (from python-can)
Using cached https://files.pythonhosted.org/packages/67/b2/0f71ca90b0ade7fad27e3d20327c996c6252a2ffe88f50a95bba7434eda9/wrapt-1.11.1.tar.gz
Collecting windows-curses (from python-can)
Could not find a version that satisfies the requirement windows-curses (from python-can) (from versions: )
No matching distribution found for windows-curses (from python-can)I tried with PyPI 9.0.1 (installed by default) and 19.0.3 (latest), with the same results. It also fails on both Python 2.7 and Python 3.X releases (as our tests show)
I'll be trying out stuff in the meanwhile,
Thanks for reading !
Some background data:
gpotter@vmg:~/github/scapy$ uname -a
Linux vmg 4.15.0-45-generic #48-Ubuntu SMP Tue Jan 29 16:27:25 UTC 2019 i686 i686 i686 GNU/Linux
gpotter@vmg:~/github/scapy$ lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic
A sample of our tests failing on travis-CI:
https://travis-ci.org/secdev/scapy/builds/497754293
It's pretty mysterious :/ I don't really see any recent change that would break it that badly :/
Reacted by Alex Kryvdyk
Activity
[-]Broken Install - Release 3.1.0[/-][+]Broken Install - PyPI Release 3.1.0[/+]felixdivo commentedon Feb 24, 2019
windows-cursesis still on PyPi: https://pypi.org/project/windows-curses/felixdivo commentedon Feb 24, 2019
And it works on our Windows builds: https://ci.appveyor.com/project/hardbyte/python-can/builds/22606096/job/81689cpva238ul9f#L78. And our linux builds do not install it https://ci.appveyor.com/project/hardbyte/python-can/builds/22606096/job/81689cpva238ul9f#L78. Why do your Unix builds even install that?
gpotter2 commentedon Feb 24, 2019
Our unix builds call
python -m pip install python-canIf you try that on a Unix machine right now, It will fail as the above (having python-can uninstalled first)
gpotter2 commentedon Feb 24, 2019
Update:
git bisectstates that eb8ee51 is causing the issue. I could replicate: it works before this commit.It seems odd, might be a bug withing PyPI itself
hardbyte commentedon Feb 24, 2019
Replicated on linux:
I found a relevant comment on stackoverflow but I'm still not sure what needs to change to support wheels.
hardbyte commentedon Feb 24, 2019
So I built the release last night using Python 3.5 and the
wheelpackage v0.29.0 wasn't up to date. I've just rebuilt with Python 3.7 with the latest setuptools, pip and wheel packages.Available on pypi:
pip install -U python-can==3.1.1rc1gpotter2 commentedon Feb 24, 2019
@hardbyte Thanks for the update !
I can confirm it fixes the issue. It would be great to have a release though, so that we don't have to update the versions manually.
gpotter2 commentedon Feb 25, 2019
I see 3.1.1 was released . Fixes the issue
Thanks for your quick support
https://pypi.org/project/python-can/3.1.1/
mpena2099 commentedon Oct 10, 2020
Hi! I think this bug is "active" again:
$ pip3 install python-can
$ pip3 install python-can==3.1.1
meyerrap commentedon Jun 2, 2021
Can confirm last comment.
Version 3.3.3 seems to install just fine, still. 3.3.4 is broken again
felixdivo commentedon Jun 2, 2021
I'd propose just failing forward to the next release, 4.0.0 is coming up and a dev release it already available.
MarkColeH-D commentedon Oct 28, 2021
I just ran into this, too. From what I can tell windows_curses is not supported by python 3.10

I had to uninstall python 3.10 and install 3.9
Then it worked.
felixdivo commentedon Oct 28, 2021
Ah yes, this also came up in #1143