FS#74154 - [scapy] Missing ipython or python-prompt_toolkit as optional depends

Attached to Project: Community Packages
Opened by yjun (yjun) - Friday, 18 March 2022, 04:19 GMT
Last edited by Antonio Rojas (arojas) - Saturday, 02 September 2023, 18:32 GMT
Task Type General Gripe
Category Packages
Status Closed
Assigned To Felix Yan (felixonmars)
Levente Polyak (anthraxx)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
from terminal type `scapy` to start interactive mode.

The explore() function provides a GUI for viewing and selecting protocol layers.

However it doesn't work.

See below.

```
>>> explore()
<frozen importlib._bootstrap>:914: ImportWarning: _SixMetaPathImporter.find_spec() not found; falling back to find_module()
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/scapy/packet.py", line 2126, in explore
import prompt_toolkit
ModuleNotFoundError: No module named 'prompt_toolkit'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/usr/lib/python3.10/site-packages/scapy/packet.py", line 2128, in explore
raise ImportError("prompt_toolkit is not installed ! "
ImportError: prompt_toolkit is not installed ! You may install IPython, which contains it, via `pip install ipython`
>>>
```

Additional info:
* package version(s)
scapy 2.4.5-4
python-scapy 2.4.5-4

Steps to reproduce:
This task depends upon

Closed by  Antonio Rojas (arojas)
Saturday, 02 September 2023, 18:32 GMT
Reason for closing:  Fixed
Additional comments about closing:  python-scapy 2.5.0-4

Loading...