Red5d / docker-autocompose

Generate a docker-compose yaml definition from a running container
1.76k stars 197 forks source link

That container is not available #64

Closed emawata closed 9 months ago

emawata commented 11 months ago

Hi, What version of python do you need to run correctly? I receive the following error.

  File "autocompose.py", line 148
    print("That container is not available.", file=sys.stderr)
                                                  ^
SyntaxError: invalid syntax

I use Python 3.8.10 in Ubuntu 20.04.

Any helps?

Red5d commented 11 months ago

Are you sure it's actually being executed with python3 and not 2? Sometimes the default for the "python" command is 2 and "python3" needs to be specified. That syntax is definitely valid for python 3.x