Re: [PATCH nft v4] tests: py: fix python3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, May 24, 2019 at 09:46:05PM +0200, Pablo Neira Ayuso wrote:
> On Fri, May 24, 2019 at 09:36:00PM +0200, Pablo Neira Ayuso wrote:
> > On Thu, May 23, 2019 at 11:56:22PM +0530, Shekhar Sharma wrote:
> > > This version of the patch converts the file into python3 and also uses
> > > .format() method to make the print statments cleaner.
> > 
> > Applied, thanks.
> 
> Hm.
> 
> I'm hitting this here after applying this:
> 
> # python nft-test.py
> Traceback (most recent call last):
>   File "nft-test.py", line 17, in <module>
>     from nftables import Nftables
> ImportError: No module named nftables

Did you build nftables --with-python-bin ? The error can occur if you
built nftables against a different python version. e.g. built for
python3, but the "python" executable is python2.



[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux