From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 771983237 for ; Wed, 25 Jul 2018 16:55:05 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Jul 2018 07:55:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,401,1526367600"; d="scan'208,217";a="57086703" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga007.fm.intel.com with ESMTP; 25 Jul 2018 07:55:01 -0700 Received: from fmsmsx117.amr.corp.intel.com ([169.254.3.3]) by FMSMSX108.amr.corp.intel.com ([169.254.9.10]) with mapi id 14.03.0319.002; Wed, 25 Jul 2018 07:55:01 -0700 From: "Wiles, Keith" To: Uditha Bandara CC: "users@dpdk.org" Thread-Topic: [dpdk-users] pktgen run.py error: NameError: name 'false' is not defined Thread-Index: AQHUI9JHMsWrdzL0+kiU3D0i/2JuzKSf5wEAgACVngA= Date: Wed, 25 Jul 2018 14:55:00 +0000 Message-ID: References: <6B159EFC-DEB6-431A-AEAD-CA8E41CBB8EB@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.254.3.8] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] pktgen run.py error: NameError: name 'false' is not defined X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jul 2018 14:55:06 -0000 On Jul 25, 2018, at 12:59 AM, Uditha Bandara > wrote: Hi, Just identified that the problem goes away if the following file within is deleted. /pktgen-dpdk/style/call_Uncrustify.cfg Yes, it is safe to delete that file. I do not understand how that file woul= d effect anything. Is it safe to delete this file? Thanks and Regards, Uditha On Wed, Jul 25, 2018 at 2:45 PM, Uditha Bandara > wrote: Hi Keith, Thanks for the information. I'm using latest version of Pktgen cloned on 24th July 2018 via: git clone git://dpdk.org/apps/pktgen-dpdk My python version is 2.7.12 I upgraded to 2.7.15 but observed the same errors. RTE_SDK and RTE_TARGET environment variables are set as explained on http://pktgen-dpdk.readthedocs.io/en/latest/getting_started.html Thanks, Uditha On Wed, Jul 25, 2018 at 10:21 AM, Wiles, Keith > wrote: > On Jul 24, 2018, at 6:25 PM, Uditha Bandara > wrote: > > Hi, > > I'm trying to install Pktgen on a system running Linux Mint 18.1 Serena. > I followed the steps given in: Which version of Pktgen are you using, seems like the latest version. > > http://pktgen-dpdk.readthedocs.io/en/latest/getting_started.html > > When I executed "./tools/run.py -s default" I am getting the following > error. > > uditha@udithapc ~/sandbox/pktgen/pktgen-dpdk $ ./tools/run.py -s default >>>> sdk '/home/uditha/sandbox/pktgen/dpdk', target > 'x86_64-native-linuxapp-gcc' > Traceback (most recent call last): > File "./tools/run.py", line 361, in > main() > File "./tools/run.py", line 358, in main > setup_cfg(cfg_file) > File "./tools/run.py", line 219, in setup_cfg > cfg =3D load_cfg(cfg_file) > File "./tools/run.py", line 119, in load_cfg > cfg =3D imp.load_source('cfg', '', f) > File "", line 1, in > I normally only run pktgen on Ubuntu systems and currently 18.04, which mak= es me believe it could the version of python you are running. I am running python 2.7.15. On my machine the same command works and false is nowhere in the code, must= be a Python variable type. Do you have your RTE_SDK and RTE_TARGET environment variables set? > NameError: name 'false' is not defined > > I have tried cleaning up the files and a re-install but getting the same > error. Does any of the config files needed to be edited before this step? > > Thanks in advance! > > Regards, > Uditha Regards, Keith Regards, Keith