wimleers / fileconveyor

File Conveyor is a daemon written in Python to detect, process and sync files. In particular, it's designed to sync files to CDNs. Amazon S3 and Rackspace Cloud Files, as well as any Origin Pull or (S)FTP Push CDN, are supported. Originally written for my bachelor thesis at Hasselt University in Belgium.
https://wimleers.com/fileconveyor
The Unlicense
341 stars 95 forks source link

DeprecationWarning: (from sets import Set, ImmutableSet) #174

Closed rootameen closed 9 years ago

rootameen commented 9 years ago

I'm having this error when running arbitrator.py:

root@node [~/src/fileconveyor/fileconveyor]# python arbitrator.py /root/src/fileconveyor/fileconveyor/filter.py:10: DeprecationWarning: the sets module is deprecated from sets import Set, ImmutableSet Traceback (most recent call last): File "arbitrator.py", line 31, in from transporters.transporter import Transporter, ConnectionError File "/root/src/fileconveyor/fileconveyor/transporters/transporter.py", line 10, in from django.core.files.storage import Storage File "/usr/lib/python2.6/site-packages/django/init.py", line 1, in from django.utils.version import get_version File "/usr/lib/python2.6/site-packages/django/utils/version.py", line 7, in from django.utils.lru_cache import lru_cache File "/usr/lib/python2.6/site-packages/django/utils/lru_cache.py", line 28 fasttypes = {int, str, frozenset, type(None)}, ^

SyntaxError: invalid syntax

Please assist.

rootameen commented 9 years ago

Solution: Use Python 2.7+