Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is Python 2.7 Supported? #62

Open
MarkRoddy opened this issue Mar 3, 2020 · 1 comment
Open

Is Python 2.7 Supported? #62

MarkRoddy opened this issue Mar 3, 2020 · 1 comment

Comments

@MarkRoddy
Copy link

Per the README:

Requires Docker and Python 2.7 or 3.5+.

However, after a pip install on Python 2.7 (system Python via Ubuntu 16.04,):

$ docker-make --list
Traceback (most recent call last):
  File "/usr/local/bin/docker-make", line 7, in <module>
    from dockermake.__main__ import main
  File "/usr/local/lib/python2.7/dist-packages/dockermake/__main__.py", line 23, in <module>
    from . import cli, utils, staging
  File "/usr/local/lib/python2.7/dist-packages/dockermake/utils.py", line 24, in <module>
    from . import errors
  File "/usr/local/lib/python2.7/dist-packages/dockermake/errors.py", line 90
    print(dockerfile, file=dff)
                          ^
SyntaxError: invalid syntax

I noticed that metafiles (setup.py, codeship-*.yml, etc) only reference Python 3.x, and I wanted to confirm that 2.7 is officially supported before digging deeper into this problem.

@MarkRoddy
Copy link
Author

I'm seeing syntax errors under a Python 3.5 installation (stock Ubuntu too) as well:

$ docker-make --list
Traceback (most recent call last):
  File "/usr/local/bin/docker-make", line 7, in <module>
    from dockermake.__main__ import main
  File "/usr/local/lib/python3.5/dist-packages/dockermake/__main__.py", line 24, in <module>
    from .imagedefs import ImageDefs
  File "/usr/local/lib/python3.5/dist-packages/dockermake/imagedefs.py", line 167
    **kwargs,
            ^
SyntaxError: invalid syntax

I can provide additional details if that helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant