Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BlockingIOError: [Errno 35] Resource temporarily unavailable #43

Open
sleekmike opened this issue Jan 28, 2020 · 2 comments
Open

BlockingIOError: [Errno 35] Resource temporarily unavailable #43

sleekmike opened this issue Jan 28, 2020 · 2 comments

Comments

@sleekmike
Copy link

Hello,
I am trying to run a Flask App in which tendo was used, I have installed tendo successfully but when I try to run the app I get the error below:

  • Environment: production
    WARNING: This is a development server. Do not use it in a production deployment.
    Use a production WSGI server instead.
  • Debug mode: on
  • Running on http://0.0.0.0:8080/ (Press CTRL+C to quit)
  • Restarting with stat
    Another instance is already running, quitting.
    Traceback (most recent call last):
    File "/Users/macbook/Desktop/securityPI/pi/lib/python3.7/site-packages/tendo/singleton.py", line 66, in init
    fcntl.lockf(self.fp, fcntl.LOCK_EX | fcntl.LOCK_NB)
    BlockingIOError: [Errno 35] Resource temporarily unavailable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/macbook/Desktop/securityPI/prgms/webPrgm.py", line 155, in
me = singleton.SingleInstance()
File "/Users/macbook/Desktop/securityPI/pi/lib/python3.7/site-packages/tendo/singleton.py", line 70, in init
raise SingleInstanceException()
tendo.singleton.SingleInstanceException

I am using a Mac running macOS Catalina 10.15 and python3.7

@liorp
Copy link
Collaborator

liorp commented Sep 29, 2022

Hi, I couldn't replicate your use case. Can you help me with some more information? The code, perhaps?

@sergem155
Copy link

sergem155 commented Jun 13, 2024

Same issue here, running a script from cron:

#!/usr/bin/python3
from tendo import singleton

def main(argv=None):
	# ensure single instance
	me = singleton.SingleInstance()
if __name__ == "__main__":
	sys.exit(main())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants