You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
After the command :
$ docker build -t sooty .
$ docker run --rm -it sooty
I have the error message :
Traceback (most recent call last):
File "/app/Sooty.py", line 20, in
import strictyaml
File "/usr/local/lib/python3.7/site-packages/strictyaml/init.py", line 2, in
from strictyaml.parser import load
File "/usr/local/lib/python3.7/site-packages/strictyaml/parser.py", line 21, in
from ruamel.yaml.compat import PY2
ImportError: cannot import name 'PY2' from 'ruamel.yaml.compat' (/usr/local/lib/python3.7/site-packages/ruamel/yaml/compat.py)
Reproduction Steps
Steps to reproduce the behavior:
Docker version
$ docker -v
Docker version 27.3.1, build ce12230
Additional context
I think the issue may be solve manualy (I am not a python / docker expert) if you downgrade the ruamel.yaml
$ docker run --rm -it sooty /bin/bash
root@c1c59e030321:/app#
root@c1c59e030321:/app# pip install 'ruamel.yaml<=0.15.94'
Collecting ruamel.yaml<=0.15.94
Downloading ruamel.yaml-0.15.94-cp37-cp37m-manylinux1_x86_64.whl (647 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 647.9/647.9 kB 34.5 MB/s eta 0:00:00
Installing collected packages: ruamel.yaml
Attempting uninstall: ruamel.yaml
Found existing installation: ruamel.yaml 0.18.6
[...]
root@c1c59e030321:/app# python Sooty.py
Cant install Win32com package
Config.yaml not found. Check the example config file and rename to 'config.yaml'.
Describe the bug
After the command :
$ docker build -t sooty .
$ docker run --rm -it sooty
I have the error message :
Traceback (most recent call last):
File "/app/Sooty.py", line 20, in
import strictyaml
File "/usr/local/lib/python3.7/site-packages/strictyaml/init.py", line 2, in
from strictyaml.parser import load
File "/usr/local/lib/python3.7/site-packages/strictyaml/parser.py", line 21, in
from ruamel.yaml.compat import PY2
ImportError: cannot import name 'PY2' from 'ruamel.yaml.compat' (/usr/local/lib/python3.7/site-packages/ruamel/yaml/compat.py)
Reproduction Steps
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what was expected to happen.
Screenshots
Desktop Operating System:
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=24.04
DISTRIB_CODENAME=noble
DISTRIB_DESCRIPTION="Ubuntu 24.04.1 LTS"
$ docker -v
Docker version 27.3.1, build ce12230
Additional context
I think the issue may be solve manualy (I am not a python / docker expert) if you downgrade the ruamel.yaml
$ docker run --rm -it sooty /bin/bash
root@c1c59e030321:/app#
root@c1c59e030321:/app# pip install 'ruamel.yaml<=0.15.94'
Collecting ruamel.yaml<=0.15.94
Downloading ruamel.yaml-0.15.94-cp37-cp37m-manylinux1_x86_64.whl (647 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 647.9/647.9 kB 34.5 MB/s eta 0:00:00
Installing collected packages: ruamel.yaml
Attempting uninstall: ruamel.yaml
Found existing installation: ruamel.yaml 0.18.6
[...]
root@c1c59e030321:/app# python Sooty.py
Cant install Win32com package
Config.yaml not found. Check the example config file and rename to 'config.yaml'.
@@@@@@ @@@@@@ @@@@@@ @@@@@@@ @@@ @@@
@@@@@@@ @@@@@@@@ @@@@@@@@ @@@@@@@ @@@ @@@
!@@ @@! @@@ @@! @@@ @@! @@! !@@
!@! !@! @!@ !@! @!@ !@! !@! @!!
!!@@!! @!@ !@! @!@ !@! @!! !@!@!
!!@!!! !@! !!! !@! !!! !!! @!!!
!:! !!: !!! !!: !!! !!: !!:
!:! :!: !:! :!: !:! :!: :!:
:::: :: ::::: :: ::::: :: :: ::
:: : : : : : : : : : :
The SOC Analyst's all-in-one tool to automate and speed up workflow
Press Enter to continue..
I hope this may help
The text was updated successfully, but these errors were encountered: