Skip to content

Installed through dependencies "websocket" library doesn't work with Python 3 #174

@rutsky

Description

@rutsky

During pip install docker-py with Python 3 I'm getting following error:

  Running setup.py install for websocket-client
    changing mode of build/scripts-3.3/wsdump.py from 644 to 755
      File "/home/bob/env/lib/python3.3/site-packages/websocket.py", line 769
        except Exception, e:
                        ^
    SyntaxError: invalid syntax

Looks like this error is ignored and actually docker finishes it's installation and works afterwards, but if docker-py uses websocket library it's usage will fail.

According to websocket docs they have separate branch for Python 3: https://github.com/liris/websocket-client/tree/py3

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions