From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_NEOMUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 77393C04AB6 for ; Tue, 28 May 2019 13:32:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 48B1F20883 for ; Tue, 28 May 2019 13:32:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727057AbfE1NcZ (ORCPT ); Tue, 28 May 2019 09:32:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56506 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726620AbfE1NcY (ORCPT ); Tue, 28 May 2019 09:32:24 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0636F3087958; Tue, 28 May 2019 13:32:16 +0000 (UTC) Received: from egarver.localdomain (ovpn-122-200.rdu2.redhat.com [10.10.122.200]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7F6515D6A9; Tue, 28 May 2019 13:32:07 +0000 (UTC) Date: Tue, 28 May 2019 09:32:06 -0400 From: Eric Garver To: Pablo Neira Ayuso Cc: Shekhar Sharma , netfilter-devel@vger.kernel.org Subject: Re: [PATCH nft v4] tests: py: fix python3 Message-ID: <20190528133206.swz6y52fc7c2pp2c@egarver.localdomain> Mail-Followup-To: Eric Garver , Pablo Neira Ayuso , Shekhar Sharma , netfilter-devel@vger.kernel.org References: <20190523182622.386876-1-shekhar250198@gmail.com> <20190524193600.mx434k2r6if4dzqd@salvia> <20190524194605.y4gtny534yffs4hj@salvia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190524194605.y4gtny534yffs4hj@salvia> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Tue, 28 May 2019 13:32:24 +0000 (UTC) Sender: netfilter-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org 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 > 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.