From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com [209.85.208.171]) by dpdk.org (Postfix) with ESMTP id 9B81D98 for ; Wed, 25 Jul 2018 06:45:10 +0200 (CEST) Received: by mail-lj1-f171.google.com with SMTP id y17-v6so5486262ljy.8 for ; Tue, 24 Jul 2018 21:45:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ipHHPsvhzalJ7MB34vBR12NKJv1CfGW2gpueyRUq3RQ=; b=GrOjxBWx2ZxNW4USFDlxBofWMbO4Zju1SfGRPPwoYNjzJe41PsnJumJ+syMDgrgU8s uGAApSMCBinKxCH+IEOSZRcU9HbVokrkZ9MnvZQzXPfBhc6Tl6ApbyVHtiRIVGQ+PwNp LUF4dcohVHMyOlIsGh+beazpUe8ySbttQ3Qxwu3Lu7d20TpdK9nMw3bFcR96P4PhgFuZ xqPE1TbJdH4F3fHFEL+V5zSZfTda2JU1xmtXrE582NGY4ldgKvUyqtzphYl2k8MazmP7 qmxZio/pHuJhtn++eaV0PITIxqzyW/2VafH6P794K/Itok9ydg9LM4B8ux0EpTksCQiC QMIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ipHHPsvhzalJ7MB34vBR12NKJv1CfGW2gpueyRUq3RQ=; b=V1jcplPLqDIuBdNWjlbeJMJc3aWJlUwYArBYBgx/vhdS8CgfO8wbGW69u/ruFYPBHJ gAMG2ew+svic4b+5FhepRHHtwx5BBuVCmpNCsRTM7vQfGn0T+x5i1L7+aNxFzO2Efqoe gaLlwRD+ezRAzS0vWDESsqVbrzo89fFKzUaKLAecJhugl7eGzbOnIV1oAH0c+NysbHbT lCm+uGyewYGleDQx9pWoF+9BB7Jpat8nvm0+gMzekNKp8cCHTUm+K/b75pq3Ahy1QEYD 2gNMDGAYlrXA4J/gXSziK4bhrjNkKUphOwk2iDxeOfZuBqRsxHx3x9N7HsupmTk1PgXN T9oA== X-Gm-Message-State: AOUpUlG7eeVCuosT4U7ZfKuasOqx800XEF3ROibh5PTEMItmV4BFib/6 l9r00FWpjGzCTDNS8T1w71jdtlGXlQXOhC/a8b0= X-Google-Smtp-Source: AAOMgpd0gRcknY1y0uEUCC+o+/JDvgTyfKPvtauM2PsMTilmnH8BKGSZyCTY+JfL4va/jMfUb0zzf5ljozZ1SKya3CE= X-Received: by 2002:a2e:1781:: with SMTP id 1-v6mr13615649ljx.76.1532493910178; Tue, 24 Jul 2018 21:45:10 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a2e:302:0:0:0:0:0 with HTTP; Tue, 24 Jul 2018 21:45:09 -0700 (PDT) In-Reply-To: <6B159EFC-DEB6-431A-AEAD-CA8E41CBB8EB@intel.com> References: <6B159EFC-DEB6-431A-AEAD-CA8E41CBB8EB@intel.com> From: Uditha Bandara Date: Wed, 25 Jul 2018 14:45:09 +1000 Message-ID: To: "Wiles, Keith" Cc: "users@dpdk.org" Content-Type: text/plain; charset="UTF-8" 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 04:45:11 -0000 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 = load_cfg(cfg_file) > > File "./tools/run.py", line 119, in load_cfg > > cfg = imp.load_source('cfg', '', f) > > File "", line 1, in > > > > I normally only run pktgen on Ubuntu systems and currently 18.04, which > makes 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 > >