iwonbigbro / gsync

RSync for Google Drive - GSync
Other
238 stars 50 forks source link

Syntax Error when installing #64

Open DrTron opened 10 years ago

DrTron commented 10 years ago

Hi,

I'm trying to install gsync on my debian testing box (python 2.7.5) and am getting the following errors. Even though the setup says "successfully installed", these syntax errors come up again when running gsync. What could I have done wrong?

Running setup.py install for gsync changing mode of build/scripts-3.3/gsync from 644 to 755 File "/usr/local/lib/python3.3/dist-packages/libgsync/sync/init.py", line 15 totalBytesSent = 0L ^ SyntaxError: invalid syntax

  File "/usr/local/lib/python3.3/dist-packages/libgsync/sync/file/__init__.py", line 50
    except Exception, e:
                    ^
SyntaxError: invalid syntax

  File "/usr/local/lib/python3.3/dist-packages/libgsync/sync/file/local/__init__.py", line 60
    except OSError, e:
                  ^
SyntaxError: invalid syntax

  File "/usr/local/lib/python3.3/dist-packages/libgsync/crawler.py", line 152
    except KeyboardInterrupt, e:
                            ^
SyntaxError: invalid syntax

  File "/usr/local/lib/python3.3/dist-packages/libgsync/output.py", line 82
    self.bytesWritten = 0L
                         ^
SyntaxError: invalid syntax

  File "/usr/local/lib/python3.3/dist-packages/libgsync/drive/__init__.py", line 287
    os.mkdir(configdir, 0700)
                           ^
SyntaxError: invalid token

  File "/usr/local/lib/python3.3/dist-packages/libgsync/drive/mimetypes.py", line 17
    except Exception, e:
                    ^
SyntaxError: invalid syntax

changing mode of /usr/local/bin/gsync to 755

Successfully installed gsync Cleaning up...

xsbr commented 10 years ago

@DrTron, are you using Python 3.x? gsync only works with 2.x version

Take a look into "exception" syntax differences: https://docs.python.org/3/howto/pyporting.html#capturing-the-currently-raised-exception