* Pip dependency problem with b4
@ 2020-03-23 14:47 James Bottomley
2020-03-23 15:00 ` Konstantin Ryabitsev
0 siblings, 1 reply; 6+ messages in thread
From: James Bottomley @ 2020-03-23 14:47 UTC (permalink / raw)
To: Konstantin Ryabitsev; +Cc: users, tools
This is on a vanilla ubuntu 19.10 system with a fresh install. After
doing
apt-get install python-pip
pip-install b4
I get this
jejb@amdmilan1:~/git/linux-build$ b4 --help
Traceback (most recent call last):
File "/home/jejb/.local/bin/b4", line 6, in <module>
from b4.command import cmd
File "/home/jejb/.local/lib/python2.7/site-packages/b4/__init__.py",
line 11, in <module>
import email.policy
ImportError: No module named policy
Which looks like a missing dependency pip should have installed.
James
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Pip dependency problem with b4
2020-03-23 14:47 Pip dependency problem with b4 James Bottomley
@ 2020-03-23 15:00 ` Konstantin Ryabitsev
2020-03-23 15:03 ` [kernel.org users] " James Bottomley
0 siblings, 1 reply; 6+ messages in thread
From: Konstantin Ryabitsev @ 2020-03-23 15:00 UTC (permalink / raw)
To: James Bottomley; +Cc: users, tools
On Mon, Mar 23, 2020 at 07:47:39AM -0700, James Bottomley wrote:
> This is on a vanilla ubuntu 19.10 system with a fresh install. After
> doing
>
> apt-get install python-pip
> pip-install b4
>
> I get this
>
> jejb@amdmilan1:~/git/linux-build$ b4 --help
> Traceback (most recent call last):
> File "/home/jejb/.local/bin/b4", line 6, in <module>
> from b4.command import cmd
> File "/home/jejb/.local/lib/python2.7/site-packages/b4/__init__.py",
^^^^^^^^^
Sorry, please use python 3.
-K
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [kernel.org users] Pip dependency problem with b4
2020-03-23 15:00 ` Konstantin Ryabitsev
@ 2020-03-23 15:03 ` James Bottomley
2020-03-23 15:13 ` Konstantin Ryabitsev
0 siblings, 1 reply; 6+ messages in thread
From: James Bottomley @ 2020-03-23 15:03 UTC (permalink / raw)
To: Konstantin Ryabitsev; +Cc: users, tools
On Mon, 2020-03-23 at 11:00 -0400, Konstantin Ryabitsev wrote:
> On Mon, Mar 23, 2020 at 07:47:39AM -0700, James Bottomley wrote:
> > This is on a vanilla ubuntu 19.10 system with a fresh
> > install. After
> > doing
> >
> > apt-get install python-pip
> > pip-install b4
> >
> > I get this
> >
> > jejb@amdmilan1:~/git/linux-build$ b4 --help
> > Traceback (most recent call last):
> > File "/home/jejb/.local/bin/b4", line 6, in <module>
> > from b4.command import cmd
> > File "/home/jejb/.local/lib/python2.7/site-
> > packages/b4/__init__.py",
>
> ^^^^^^^^^
> Sorry, please use python 3.
I can fix it manually, but pip should have said ... it does for most
other packages.
james
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [kernel.org users] Pip dependency problem with b4
2020-03-23 15:03 ` [kernel.org users] " James Bottomley
@ 2020-03-23 15:13 ` Konstantin Ryabitsev
2020-03-23 16:56 ` Jason Gunthorpe
0 siblings, 1 reply; 6+ messages in thread
From: Konstantin Ryabitsev @ 2020-03-23 15:13 UTC (permalink / raw)
To: James Bottomley; +Cc: users, tools
On Mon, Mar 23, 2020 at 08:03:45AM -0700, James Bottomley wrote:
> > > jejb@amdmilan1:~/git/linux-build$ b4 --help
> > > Traceback (most recent call last):
> > > File "/home/jejb/.local/bin/b4", line 6, in <module>
> > > from b4.command import cmd
> > > File "/home/jejb/.local/lib/python2.7/site-
> > > packages/b4/__init__.py",
> >
> > ^^^^^^^^^
> > Sorry, please use python 3.
>
> I can fix it manually, but pip should have said ... it does for most
> other packages.
I've added python_requires='>=3.6' to the proper place, so 0.3.4 will do
the right thing.
Best regards,
-K
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [kernel.org users] Pip dependency problem with b4
2020-03-23 15:13 ` Konstantin Ryabitsev
@ 2020-03-23 16:56 ` Jason Gunthorpe
2020-03-23 17:08 ` Konstantin Ryabitsev
0 siblings, 1 reply; 6+ messages in thread
From: Jason Gunthorpe @ 2020-03-23 16:56 UTC (permalink / raw)
To: Konstantin Ryabitsev; +Cc: James Bottomley, users, tools
On Mon, Mar 23, 2020 at 11:13:33AM -0400, Konstantin Ryabitsev wrote:
> On Mon, Mar 23, 2020 at 08:03:45AM -0700, James Bottomley wrote:
> > > > jejb@amdmilan1:~/git/linux-build$ b4 --help
> > > > Traceback (most recent call last):
> > > > File "/home/jejb/.local/bin/b4", line 6, in <module>
> > > > from b4.command import cmd
> > > > File "/home/jejb/.local/lib/python2.7/site-
> > > > packages/b4/__init__.py",
> > >
> > > ^^^^^^^^^
> > > Sorry, please use python 3.
> >
> > I can fix it manually, but pip should have said ... it does for most
> > other packages.
>
> I've added python_requires='>=3.6' to the proper place, so 0.3.4 will do
> the right thing.
Unrelated, but when using pip to install b4 into a virtual env
directly from git (not via some pip cloud) it blows up as setup.py
imports b4, and b4 imports all kinds of stuff..
Jason
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [kernel.org users] Pip dependency problem with b4
2020-03-23 16:56 ` Jason Gunthorpe
@ 2020-03-23 17:08 ` Konstantin Ryabitsev
0 siblings, 0 replies; 6+ messages in thread
From: Konstantin Ryabitsev @ 2020-03-23 17:08 UTC (permalink / raw)
To: Jason Gunthorpe; +Cc: James Bottomley, users, tools
On Mon, Mar 23, 2020 at 01:56:52PM -0300, Jason Gunthorpe wrote:
> > I've added python_requires='>=3.6' to the proper place, so 0.3.4
> > will do the right thing.
>
> Unrelated, but when using pip to install b4 into a virtual env
> directly from git (not via some pip cloud) it blows up as setup.py
> imports b4, and b4 imports all kinds of stuff..
Well, this page is a hoot:
https://packaging.python.org/guides/single-sourcing-package-version/
Anyway, I switched to using to what is hopefully the least terrible way
of doing it.
-K
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-03-23 17:08 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-23 14:47 Pip dependency problem with b4 James Bottomley
2020-03-23 15:00 ` Konstantin Ryabitsev
2020-03-23 15:03 ` [kernel.org users] " James Bottomley
2020-03-23 15:13 ` Konstantin Ryabitsev
2020-03-23 16:56 ` Jason Gunthorpe
2020-03-23 17:08 ` Konstantin Ryabitsev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).