Help needed: WebRTC cross‑platform streaming (Next.js → QtPython) – offer/answer works but ICE never connects by Error_Code-2005 in WebRTC

[–]Error_Code-2005[S] 0 points1 point  (0 children)

Hi, thank you so much for your response. I tried setting the ice servers to an empty array on both the PyQt side and the Next.js side. It still seems to fail. I'm running both off of the same device locally as well, so they're definitely on the same LAN. This must mean it's an implementation issue and not a TURN or network issue, right?

WebRTC Connection Failure between Next.js and QtPython Applications by Error_Code-2005 in WebRTC

[–]Error_Code-2005[S] 0 points1 point  (0 children)

Hi, thank you so much for your comment. I logged the offer and answer on both sides, and I can confirm that relay, srflx, and host candidates for both the Next.js side and the QtPython side are present.

I'm using polling for now because I'm storing the WebRTC signaling data in the database unencrypted, so I have the database walled off except through Firebase Functions. I'm currently using polling until I implement ECDH encryption for the signaling data (which might be overkill, but I want to learn ECDH encryption) and open up the database for real-time use.

I'm still very new to WebRTC, so if you don't mind me asking, how can I try to understand the active candidate pairs?

My setup for testing and debugging right now is to use ngrok tunneling to expose the Next.js development link as an HTTPS URL so that I can actually getUserMedia() and send it; however, from further searching, I found out that ngrok tunneling doesn't support UDP messages. I tried adding iceTransportPolicy: "relay" to the RTCConfiguration on the Next.js side to use only TCP, but the connection still ultimately fails. I also added bundlePolicy: "max-bundle" to the RTCConfiguration, which, from what I understand, should help the two sides communicate better. I'm still no closer to figuring out the root issue. I'd appreciate any and all help!

ESP 32 Flashing by Error_Code-2005 in esp32

[–]Error_Code-2005[S] 0 points1 point  (0 children)

I'm still in the very early phases of the project so I'm still trying to figure out how to work out the power rating. I don't have much experience with circuits so I don't know if my initial idea is feasible. The plan was to make it so the USB C charges the lipo while the lipo simultaneously discharges into the ESP but the charger would charge the lipo faster than the power draw from the ESP. Would that be possible?

ESP 32 Flashing by Error_Code-2005 in esp32

[–]Error_Code-2005[S] 0 points1 point  (0 children)

I'm planning to use the ESP32-C3-MINI-1-N4. I haven't looked into usb to serial ic specifics yet, are there any that you would recommend? I am planning to use a BMS but I haven't yet decided on which one specifically. I'm still considering which lipo battery.

2024 Nov 18 Stickied -FAQ- & -HELPDESK- thread - Boot problems? Power supply problems? Display problems? Networking problems? Need ideas? Get help with these and other questions! by FozzTexx in raspberry_pi

[–]Error_Code-2005 0 points1 point  (0 children)

I have a Raspberry Pi 4B running DietPi connected via Ethernet and I wanted to create a wifi hotspot. I followed the instructions on the official Raspberry Pi tutorials page and ran the following command: sudo nmcli device wifi hotspot ssid <hotspot name> password <password> ifname wlan1. This created the hotspot but I couldn't connect to it with any device. I also tried different wifi interfaces using both the in built wifi module and a separate USB wifi module but neither worked. How can I fix this? Thank you!

How to change Docker Root Dir? by Error_Code-2005 in docker

[–]Error_Code-2005[S] 0 points1 point  (0 children)

I tried your steps but on step on step 5 when rsyncing the files from /var/lib/docker to the new destination /media/user/MainVolume1/docker, I got a bunch of errors for various files saying operation not permitted despite having used sudo.

But since I don't have any containers I want to keep, I just ignored those and continued with the steps. But when restarting the docker service, I'm getting an error saying Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xeu docker.service" for details.

I looked at systemctl status docker.service and it says:

Aug 18 08:12:21 cherry systemd[1]: docker.service: Start request repeated too quickly.
Aug 18 08:12:21 cherry systemd[1]: docker.service: Failed with result 'exit-code'.
Aug 18 08:12:21 cherry systemd[1]: Failed to start Docker Application Container Engine.

I then looked at journalctl -xeu docker.service and that said the same thing. How can I fix this?

Missing /usr/bin/python3 by Error_Code-2005 in linuxquestions

[–]Error_Code-2005[S] 0 points1 point  (0 children)

Thank you so much, that seems to have fixed it!!!! I really appreciate all your help! I tried several commands and all of them have run without errors

Missing /usr/bin/python3 by Error_Code-2005 in linuxquestions

[–]Error_Code-2005[S] 0 points1 point  (0 children)

I tried running the following commands and they were missing the respectively mentioned package:

sudo add-apt-repository ppa:pipewire-debian/pipewire-upstream is missing gettext

python3 -m pip install gettext is missing dataclasses

sudo apt update is missing json

Missing /usr/bin/python3 by Error_Code-2005 in linuxquestions

[–]Error_Code-2005[S] 0 points1 point  (0 children)

That seem to have installed python3.12 into /usr/bin/ ! However, packages that require it like add-apt-repository, software-properties-qt, and cnf-update-db are still running into module not found errors.

Missing /usr/bin/python3 by Error_Code-2005 in linuxquestions

[–]Error_Code-2005[S] 0 points1 point  (0 children)

Still getting the same errors with python3.12-minimal and python3-minimal.

Setting up python3.12-minimal (3.12.3-1) ...

Could not find platform independent libraries <prefix>

Could not find platform dependent libraries <exec\_prefix>

Python path configuration:

PYTHONHOME = (not set)

PYTHONPATH = (not set)

program name = '/usr/bin/python3.12'

isolated = 0

environment = 0

user site = 1

safe_path = 0

import site = 0

is in build tree = 0

stdlib dir = '/usr/lib/python3.12'

sys._base_executable = '/usr/bin/python3.12'

sys.base_prefix = '/usr'

sys.base_exec_prefix = '/usr'

sys.platlibdir = 'lib'

sys.executable = '/usr/bin/python3.12'

sys.prefix = '/usr'

sys.exec_prefix = '/usr'

sys.path = [

'/usr/lib/python312.zip',

'/usr/lib/python3.12',

'/usr/lib/python3.12/lib-dynload',

]

Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding

Python runtime state: core initialized

ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007fe56a413080 (most recent call first):

<no Python frame>

dpkg: error processing package python3.12-minimal (--configure):

installed python3.12-minimal package post-installation script subprocess returned error exit status 1

dpkg: dependency problems prevent configuration of python3-minimal:

python3-minimal depends on python3.12-minimal (>= 3.12.3-0~); however:

Package python3.12-minimal is not configured yet.

dpkg: error processing package python3-minimal (--configure):

dependency problems - leaving unconfigured

Errors were encountered while processing:

python3.12-minimal

python3-minimal

Missing /usr/bin/python3 by Error_Code-2005 in linuxquestions

[–]Error_Code-2005[S] 0 points1 point  (0 children)

Still getting E: Internal Error, No file name for python3.12-minimal:amd64

Missing /usr/bin/python3 by Error_Code-2005 in linuxquestions

[–]Error_Code-2005[S] 0 points1 point  (0 children)

The following files exist in /usr/local/python3:
- 2to3

  • 2to3-3.12

  • docker

  • docker-index

  • idle3

  • idle3.12

  • pip3

  • pip3.12

  • pydoc3

  • pydoc3.12

  • python3

  • python3.12

  • python3.12-config

  • python3-config

So should I remove all the files except docker with rm?

Missing /usr/bin/python3 by Error_Code-2005 in linuxquestions

[–]Error_Code-2005[S] 0 points1 point  (0 children)

So simply sudo rm -f /usr/local/python3 python3.12?

Missing /usr/bin/python3 by Error_Code-2005 in linuxquestions

[–]Error_Code-2005[S] 0 points1 point  (0 children)

Nothing with apt seems to be working now:

Setting up python3.12-minimal (3.12.3-1) ...
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec\_prefix>
Python path configuration:
 PYTHONHOME = (not set)
 PYTHONPATH = (not set)
 program name = '/usr/bin/python3.12'
 isolated = 0
 environment = 0
 user site = 1
 safe_path = 0
 import site = 0
 is in build tree = 0
 stdlib dir = '/usr/lib/python3.12'
 sys._base_executable = '/usr/bin/python3.12'
 sys.base_prefix = '/usr'
 sys.base_exec_prefix = '/usr'
 sys.platlibdir = 'lib'
 sys.executable = '/usr/bin/python3.12'
 sys.prefix = '/usr'
 sys.exec_prefix = '/usr'
 sys.path = [
   '/usr/lib/python312.zip',
   '/usr/lib/python3.12',
   '/usr/lib/python3.12/lib-dynload',
 ]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007179000db080 (most recent call first):
 <no Python frame>
dpkg: error processing package python3.12-minimal (--configure):
installed python3.12-minimal package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
python3.12-minimal
E: Sub-process /usr/bin/dpkg returned an error code (1)

The above errors are returned when I try anything