Python error when starting Trex-Console

136 views
Skip to first unread message

Pat White

unread,
Oct 7, 2021, 7:18:57 PM10/7/21
to TRex Traffic Generator

[root@trex-test v2.91]# ./trex-console

 

Using 'python3' as Python interpeter

 

Traceback (most recent call last):

  File "/usr/local/lib/python3.6/runpy.py", line 193, in _run_module_as_main

    "__main__", mod_spec)

  File "/usr/local/lib/python3.6/runpy.py", line 85, in _run_code

    exec(code, run_globals)

  File "/opt/trex/v2.91/automation/trex_control_plane/interactive/trex/console/trex_console.py", line 28, in <module>

    import readline

ModuleNotFoundError: No module named 'readline'


Besart Dollma

unread,
Oct 8, 2021, 2:31:03 AM10/8/21
to TRex Traffic Generator
Hi Patrick,
There seems to be a problem with your Python, 
The readline module should be included in Python, https://docs.python.org/3.9/library/readline.html#module-readline
Thanks, 

Reply all
Reply to author
Forward
0 new messages