panda-re / panda

Platform for Architecture-Neutral Dynamic Analysis
https://panda.re
Other
2.45k stars 475 forks source link

Missing colorama dependency in container #1487

Closed lacraig2 closed 4 months ago

lacraig2 commented 4 months ago

The return of #1482: Likely just needs colorama added back in.

luke:~/workspace/penguin$ docker run -it pandare/panda /bin/bash
root@ba53030e0fb8:/# wget https://raw.githubusercontent.com/panda-re/panda/dev/panda/python/examples/asid.py
--2024-04-01 21:25:12--  https://raw.githubusercontent.com/panda-re/panda/dev/panda/python/examples/asid.py
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.110.133, 185.199.109.133, 185.199.108.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.110.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 801 [text/plain]
Saving to: 'asid.py'

asid.py                            100%[===============================================================>]     801  --.-KB/s    in 0s      

2024-04-01 21:25:12 (60.4 MB/s) - 'asid.py' saved [801/801]

root@ba53030e0fb8:/# python3 asid.py 
Traceback (most recent call last):
  File "asid.py", line 14, in <module>
    from pandare import Panda
  File "/usr/local/lib/python3.8/dist-packages/pandare/__init__.py", line 13, in <module>
    from .panda import Panda, blocking
  File "/usr/local/lib/python3.8/dist-packages/pandare/panda.py", line 34, in <module>
    from .utils import progress, warn, make_iso, debug, blocking, GArrayIterator, plugin_list, find_build_dir, rr2_recording, rr2_contains_member
  File "/usr/local/lib/python3.8/dist-packages/pandare/utils.py", line 6, in <module>
    from colorama import Fore, Style
ModuleNotFoundError: No module named 'colorama'
root@ba53030e0fb8:/# pip install colorama
Collecting colorama
  Downloading colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB)
Downloading colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Installing collected packages: colorama
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
pandare 0.1.2.0 requires protobuf>=4.25.1, but you have protobuf 3.6.1 which is incompatible.
Successfully installed colorama-0.4.6
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv