earl / beanstalkc

A simple beanstalkd client library for Python
Apache License 2.0
457 stars 115 forks source link

when I run 'sudo pip install beanstalkc',sth wrong. #68

Closed yyyy777 closed 6 years ago

yyyy777 commented 7 years ago
Collecting beanstalkc
  Using cached beanstalkc-0.4.0.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-ubj0ksew/beanstalkc/setup.py", line 5, in <module>
        from beanstalkc import __version__ as src_version
      File "/tmp/pip-build-ubj0ksew/beanstalkc/beanstalkc.py", line 42
        except socket.error, err:
                           ^
    SyntaxError: invalid syntax

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-ubj0ksew/beanstalkc/

can u help me?

svisser commented 7 years ago

@fst034356 that syntax isn't valid in Python 3 but it is valid in Python 2.7.

This project is not yet compatible with Python 3.

yyyy777 commented 7 years ago

oh i see,thx