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

BACKEND deployment DEAD: No module named 'cv' #65

Closed
LordBrud opened this issue May 4, 2023 · 5 comments
Closed

BACKEND deployment DEAD: No module named 'cv' #65

LordBrud opened this issue May 4, 2023 · 5 comments
Assignees
Labels
important This is important!

Comments

@LordBrud
Copy link
Contributor

LordBrud commented May 4, 2023

  File "/app/main.py", line 2, in <module>
    from api import router
  File "/app/api/router.py", line 4, in <module>
    import core.scanner as scanner
  File "/app/core/scanner.py", line 9, in <module>
    from cv.DigitRecognizer import DigitRecognizer
ModuleNotFoundError: No module named 'cv'
@LordBrud
Copy link
Contributor Author

LordBrud commented May 4, 2023

CV Teil müsste irgendwie im backend sein. Docker wird ja nur über backend Ordner builded

@LordBrud LordBrud changed the title BACKEND DEAD: No module named 'cv' BACKEND deployment DEAD: No module named 'cv' May 4, 2023
@LordBrud LordBrud added the important This is important! label May 4, 2023
@LordBrud
Copy link
Contributor Author

LordBrud commented May 5, 2023

see also #74

@Re4LyZed
Copy link
Contributor

Re4LyZed commented May 6, 2023

@LordBrud issue should now be resolved with the merge pull request #75, please take a look on your side

@LordBrud
Copy link
Contributor Author

LordBrud commented May 7, 2023

https://3es-api.bhendel.io/ is still unavailable.

Backend Pod seems to be (kind of) healthy.

Pod log is filled with Tensorflow complaining about the hardware and a worker timeout

[2023-05-06 09:28:57 +0000] [7] [INFO] Booting worker with pid: 7
[2023-05-06 09:28:57 +0000] [8] [INFO] Booting worker with pid: 8
2023-05-06 09:30:13.709842: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
2023-05-06 09:30:13.710287: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
[2023-05-06 09:30:57 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:7)
[2023-05-06 09:30:57 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:8)
[2023-05-06 09:30:58 +0000] [1] [WARNING] Worker with pid 7 was terminated due to signal 6
[2023-05-06 09:30:58 +0000] [1] [WARNING] Worker with pid 8 was terminated due to signal 6

@Re4LyZed not sure what the worker is, maybe the backend server?

logs-from-backend-in-backend-85d8c6969d-6825v.log

@bugohoss12
Copy link
Contributor

Issue "TF-TRT Warning: Could not find TensorRT" is presumably due to missing pip package. When we need to install too many dependencies i prefere to split the backend from the cv part.

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

No branches or pull requests

5 participants