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

Camera Emulator does not start #1

Open
amunchet opened this issue Sep 10, 2019 · 2 comments
Open

Camera Emulator does not start #1

amunchet opened this issue Sep 10, 2019 · 2 comments

Comments

@amunchet
Copy link
Owner

Camera emulator does not start.

[2019-09-10 20:19:17,622] INFO in emulator: serving
cameraemulator_1         | Exception in thread Thread-3:
cameraemulator_1         | Traceback (most recent call last):
cameraemulator_1         |   File "/usr/local/lib/python3.6/threading.py", line 916, in _bootstrap_inner
cameraemulator_1         |     self.run()
cameraemulator_1         |   File "/usr/local/lib/python3.6/threading.py", line 864, in run
cameraemulator_1         |     self._target(*self._args, **self._kwargs)
cameraemulator_1         |   File "/home/appuser/app/emulator.py", line 47, in gen_serve_upload
cameraemulator_1         |     self.serve(file_path)
cameraemulator_1         |   File "/home/appuser/app/emulator.py", line 29, in serve
cameraemulator_1         |     copyfile(file_path, dest)
cameraemulator_1         |   File "/usr/local/lib/python3.6/shutil.py", line 121, in copyfile
cameraemulator_1         |     with open(dst, 'wb') as fdst:
cameraemulator_1         | FileNotFoundError: [Errno 2] No such file or directory: '/home/appuser/app/generated-image/image.jpg'

Also, no cameras are displayed:

image

@amunchet
Copy link
Owner Author

A possibly related issue is this from backend:

displayserverbackend_1   |  * Debug mode: on
displayserverbackend_1   |  * Running on http://0.0.0.0:10001/ (Press CTRL+C to quit)
displayserverbackend_1   |  * Restarting with stat

displayserverbackend_1 | WebSocket transport not available. Install eventlet or gevent and
gevent-websocket for improved performance.

displayserverbackend_1   |  * Debugger is active!

@marcello-dev
Copy link

marcello-dev commented Sep 11, 2019

This should be fixed with the pull request #3

FYI click on "IPCamera" in the navigation bar to add/remove/edit cameras. Or click on the "Go Back" button to see the images from the cameras. When you add a new camera, it will take up to one minute for it to display images.

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

2 participants