From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com [209.85.208.170]) by dpdk.org (Postfix) with ESMTP id 4132F98 for ; Wed, 25 Jul 2018 07:59:31 +0200 (CEST) Received: by mail-lj1-f170.google.com with SMTP id r13-v6so5615656ljg.10 for ; Tue, 24 Jul 2018 22:59:31 -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=hWQ9yG7Dy8oiR0I5Ps41jrnvdZIGsx+wLfgurped6tU=; b=oK0nZnoYHWk627Io1Gbz+N4FSMJ5oZLRbtOZJybiLzLeHS9/7j+u3ySI0ePm5BEx1h u7cvigwV72XTuxlGzZEXPD1a/l1IQmkXxQO1N4opQqN9C9LVSEppJBIlgmC1V8Pq04r5 Rnxj3exyD8uqRscZvi//+lpREz9ciuUfa4pt4mr60Ktri+YUJv/59vTDmCnm4hGiVEQ1 jb6i2KWZdqenGw454B736ZZxEl3UTyYv4bvFPWEF7cL7e2+16bF+U/R8Z3fEBP52l5to nZ2GGm2h9kUtJB8daMWD/SXX5RQogkOZjoQKq2ov1vTmFHarNiC1cJ1/UJuvF2dOOTwM zzVA== 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=hWQ9yG7Dy8oiR0I5Ps41jrnvdZIGsx+wLfgurped6tU=; b=PT05WSZza4zov0p9rT6qyyYrKAia1MjNdW9sx8JfJfl4RNSnd3Nd5TZ0dL6cAEEwiY tu/NwC/yiTfkjshcLPKBWA90uFe1BdkQ5Cf47lZ8P/EeGXBcFh+3YyCVQhUayLrpWVQq /J3fqMp0k0vtq3454Zg6mMpK+zf6xSCq7KMFCA7uXTCPXqvZ/hBBkUWk1ZXZ9Km/aDdz C+lcUn6yob0OorsQ5H8xYgRQcMoXc0mp+BMF2frwfaF98tBb+kVGWwyJVCxDck3O/DfC /eTu5mok453ftwZ4kBT89/mzRw3oEvvyQZ6ZUQBTcOWLwTpJltgJgDAxR1+OvttNUEBG Mm5g== X-Gm-Message-State: AOUpUlG7nDZvCnAOSF+76iZMK5ZQjbZ8vNa/uSGlVTbhpN8aa6t83N6+ mNJilp/ZlezCVlAXhdmFlu976gGgctCyRxl7QaWrkbz33pU7Pg== X-Google-Smtp-Source: AAOMgpdfkiIASxyQfxTDTmYO1LDHXno6TnksT8SiImf/N0D97QsbjGxttwbQcSsLucBboMSc4UZvdquPjNooXkhmVtQ= X-Received: by 2002:a2e:9bc9:: with SMTP id w9-v6mr13694560ljj.33.1532498370879; Tue, 24 Jul 2018 22:59:30 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a2e:302:0:0:0:0:0 with HTTP; Tue, 24 Jul 2018 22:59:30 -0700 (PDT) In-Reply-To: References: <6B159EFC-DEB6-431A-AEAD-CA8E41CBB8EB@intel.com> From: Uditha Bandara Date: Wed, 25 Jul 2018 15:59:30 +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 05:59:31 -0000 Hi, Just identified that the problem goes away if the following file within is deleted. /pktgen-dpdk/style/call_Uncrustify.cfg 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 = 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 >> >> >