OK, I think I see the problem. If you check out the docs for the Queue
constructor, they say:
The tempdir parameter indicates where temporary files should be stored.
The tempdir has to be located on the same disk as the enqueued data in
order to obtain atomic operations.
On PythonAnywhere, /tmp is a different partition (well, strictly speaking a different NFS share) to your home directory.
So what you need to do is create the queue so that both path
and tempdir
point to directories on the same disk. Aassuming that your path
is set to something like /home/SirTen/myqueue
-- that is, it's in your home directory -- you should create a directory for the temp stuff in your home directory (say, /home/SirTen/myqueue/tmp
), and then specify that as the tempdir
.