seung-lab / python-task-queue

Asynchronous serverless task queue with timed leasing of tasks. Threaded implementations for SQS and local filesystem.
BSD 3-Clause "New" or "Revised" License
36 stars 9 forks source link

exception error #9

Closed xiuliren closed 6 years ago

xiuliren commented 6 years ago

version 0.4 python 3.6

>>> from taskqueue import TaskQueue
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/anaconda3/lib/python3.6/site-packages/taskqueue.py", line 99
    except BaseException, e:
                        ^
SyntaxError: invalid syntax
xiuliren commented 6 years ago

It is my local python configuration problem. system python 3.5 and anaconda 3.6 is fighting... removing anaconda solved the error. But if there is indeed an exception happening, it probably will have this error rather than showing the real exception. We should remove the BaseException,?

nkemnitz commented 6 years ago

I have no idea where this line 99 or BaseException is coming from. It's not in the current taskqueue.py, nor is it in the one tagged for version 0.4.0:

xiuliren commented 6 years ago

hmm, I installed it by `pip install taskqueue'

nkemnitz commented 6 years ago

Ah, wrong package. Use pip install task-queue. (dash)