Deployment failed,cython problem

  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
  Downloading pystan-2.0.1.1.tar.gz (16.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 16.9/16.9 MB 65.6 MB/s eta 0:00:00[2022-05-30 08:00:50.377440] 
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'error'
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      Cython>=0.19 and NumPy are required.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
WARNING: You are using pip version 22.0.3; however, version 22.1.1 is available.
You should consider upgrading via the '/home/appuser/venv/bin/python -m pip install --upgrade pip' command.
Checking if Streamlit is installed

────────────────────────────────────────────────────────────────────────────────────────

[08:01:35] ❗️ installer returned a non-zero exit code
[08:01:35] ❗️ Error during processing dependencies! Please fix the error and push an update, or try restarting the app.
[08:03:12] ❗️ Streamlit server consistently failed status checks
[08:03:12] ❗️ Please fix the errors, push an update to the git repo, or reboot the app.

Can ANyone help to find the error??

Please post a link to your public github repo.

The link To My GitHub

First of all, clean up your requirements.txt file, you only need these libraries there:

numpy
streamlit
opencv-python-headless
tensorflow-cpu
keras
streamlit-webrtc

Done.

New Error log

omGeneratedFile()
TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
 1. Downgrade the protobuf package to 3.20.x or lower.
 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
[17:57:59] ❗️ error restarting streamlit: exit status 7: output: streamlit: ERROR (not running)
streamlit: ERROR (spawn error)
[17:57:59] ❗️ Error during processing dependencies! Please fix the error and push an update, or try restarting the app.
[17:59:36] ❗️ Streamlit server consistently failed status checks
[17:59:36] ❗️ Please fix the errors, push an update to the git repo, or reboot

I have configured it.but the webcam is not working.

https://share.streamlit.io/anirbanpatragithub/face_emotion_recognition/main/app.py

Can You Tell Why???

  File "/app/face_emotion_recognition/app.py", line 75, in main
    webrtc_streamer(key="example", video_transformer_factory=VideoTransformer)
  File "/home/appuser/venv/lib/python3.9/site-packages/streamlit_webrtc/__init__.py", line 135, in webrtc_streamer
    component_value: Union[Dict, None] = _component_func(
  File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/components/v1/components.py", line 81, in __call__
    return self.create_instance(*args, default=default, key=key, **kwargs)
  File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/components/v1/components.py", line 123, in create_instance
    raise StreamlitAPIException(
streamlit.errors.StreamlitAPIException: To use Custom Components in Streamlit, you need to install
PyArrow. Unfortunately, PyArrow does not yet support Python 3.9.

You can either switch to Python 3.8 with an environment manager like PyEnv, or stay on 3.9 by
[installing Streamlit with conda](https://discuss.streamlit.io/t/note-installation-issues-with-python-3-9-and-streamlit/6946):

`conda install -c conda-forge streamlit`

THanks for your help.
YOur gave me the will to experiment and research.
Thanks a lot.

2022-05-31 05:02:56.403 Track audio received
2022-05-31 05:02:56.403 Track video received
2022-05-31 05:02:56.404 Add a input video track <aiortc.rtcrtpreceiver.RemoteStreamTrack object at 0x7f521029e250> to output track with video_transformer <class 'streamlit_webrtc.transform.AsyncVideoTransformTrack'>
2022-05-31 05:02:56.404 Add the video track with transfomer to <aiortc.rtcpeerconnection.RTCPeerConnection object at 0x7f52103e2490>
2022-05-31 05:02:56.432 Connection(0) Check CandidatePair(('10.12.64.33', 37224) -> ('192.168.43.103', 33353)) State.FROZEN -> State.WAITING
2022-05-31 05:02:56.432 ICE connection state is checking
2022-05-31 05:02:56.432 Connection(0) Check CandidatePair(('10.12.64.33', 37224) -> ('192.168.43.103', 33353)) State.WAITING -> State.IN_PROGRESS
2022-05-31 05:03:59.984 Connection(0) Check CandidatePair(('10.12.64.33', 37224) -> ('192.168.43.103', 33353)) State.IN_PROGRESS -> State.FAILED
2022-05-31 05:03:59.984 Connection(0) ICE failed
2022-05-31 05:03:59.985 ICE connection state is failed
2022-05-31 05:03:59.986 ICE connection state is closed
2022-05-31 05:24:16.403 Track audio received
2022-05-31 05:24:16.403 Track video received
2022-05-31 05:24:16.403 Add a input video track <aiortc.rtcrtpreceiver.RemoteStreamTrack object at 0x7f5208752430> to output track with video_transformer <class 'streamlit_webrtc.transform.AsyncVideoTransformTrack'>
2022-05-31 05:24:16.404 Add the video track with transfomer to <aiortc.rtcpeerconnection.RTCPeerConnection object at 0x7f5210053970>
2022-05-31 05:24:16.431 Connection(2) Check CandidatePair(('10.12.64.33', 41607) -> ('192.168.43.103', 32938)) State.FROZEN -> State.WAITING
2022-05-31 05:24:16.432 ICE connection state is checking
2022-05-31 05:24:16.432 Connection(2) Check CandidatePair(('10.12.64.33', 41607) -> ('192.168.43.103', 32938)) State.WAITING -> State.IN_PROGRESS
2022-05-31 05:25:19.972 Connection(2) Check CandidatePair(('10.12.64.33', 41607) -> ('192.168.43.103', 32938)) State.IN_PROGRESS -> State.FAILED

I have worked on the last error and fixed it.But now I am facing this error.Can YOU please guide me in right direction??

Thanks for your help.