jegesh / python-sqs-listener

A simple wrapper for boto3 for listening, and sending, to an AWS SQS queue
Other
154 stars 72 forks source link

Changes prompted by errors on multiple systems in system installs and virtual env. #17

Closed MPlugInSpace closed 5 years ago

MPlugInSpace commented 6 years ago

The error is below.

Traceback (most recent call last):                                                                                                                       File "./my_daemon.py", line 67, in <module>
    main()
  File "./my_daemon.py", line 59, in main
    daemon.start()
  File "/usr/local/lib/python3.5/dist-packages/sqs_listener/daemon.py", line 98, in start
    self.daemonize()
  File "/usr/local/lib/python3.5/dist-packages/sqs_listener/daemon.py", line 60, in daemonize
    so = open(self.stdout, 'a+')
OSError: [Errno 29] Illegal seek
jegesh commented 6 years ago

Is this standard practice? I don't really have the time at the moment to look into best practices of writing to stdout, but it seems a bit strange to be truncating it with 'w' flag. Maybe there's another way to solve the problem you experienced?

posix4e commented 5 years ago

Let's close this for now. I don't think this is useful anymore

MPlugInSpace commented 5 years ago

That's fair, I should have done it earlier.

Thanks

On March 11, 2019 11:31:11 AM EDT, Alex Newman notifications@github.com wrote:

Let's close this for now. I don't think this is useful anymore

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/jegesh/python-sqs-listener/pull/17#issuecomment-471588298