DPDK usage discussions
 help / color / mirror / Atom feed
From: "Wiles, Keith" <keith.wiles@intel.com>
To: Uditha Bandara <ubndra@gmail.com>
Cc: "users@dpdk.org" <users@dpdk.org>
Subject: Re: [dpdk-users] pktgen run.py error: NameError: name 'false' is not	defined
Date: Wed, 25 Jul 2018 00:21:50 +0000	[thread overview]
Message-ID: <6B159EFC-DEB6-431A-AEAD-CA8E41CBB8EB@intel.com> (raw)
In-Reply-To: <CALPy68MSyyprzOcmOZM9OKMCKDOMveMSO7z5yPyj3aiBOwC=+w@mail.gmail.com>



> On Jul 24, 2018, at 6:25 PM, Uditha Bandara <ubndra@gmail.com> 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 <module>
>    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 <module>
> 

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

       reply	other threads:[~2018-07-25  0:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CALPy68MSyyprzOcmOZM9OKMCKDOMveMSO7z5yPyj3aiBOwC=+w@mail.gmail.com>
2018-07-25  0:21 ` Wiles, Keith [this message]
2018-07-25  4:45   ` Uditha Bandara
2018-07-25  5:59     ` Uditha Bandara
2018-07-25 14:55       ` Wiles, Keith
2018-07-25 14:57       ` Wiles, Keith
2018-07-25 14:53   ` Wiles, Keith

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6B159EFC-DEB6-431A-AEAD-CA8E41CBB8EB@intel.com \
    --to=keith.wiles@intel.com \
    --cc=ubndra@gmail.com \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).