0 Replies
a year ago
what's opus
a year ago
you think?
Error stack:
ERROR:discord.ext.voice_recv.reader:Error processing rtp packet
Traceback (most recent call last):
File "/opt/venv/lib/python3.11/site-packages/discord/ext/voice_recv/reader.py", line 423, in callback
self.router.feed_rtp(_packet)
File "/opt/venv/lib/python3.11/site-packages/discord/ext/voice_recv/opus.py", line 77, in feed_rtp
decoder = self._get_decoder(packet.ssrc)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/venv/lib/python3.11/site-packages/discord/ext/voice_recv/opus.py", line 72, in _get_decoder
decoder = self.decoders.setdefault(ssrc, PacketDecoder(self.sink, ssrc))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/venv/lib/python3.11/site-packages/discord/ext/voice_recv/opus.py", line 206, in __init__
self._decoder: Optional[Decoder] = None if sink.wants_opus() else Decoder()
^^^^^^^^^
File "/opt/venv/lib/python3.11/site-packages/discord/opus.py", line 420, in __init__
_OpusStruct.get_opus_version()
File "/opt/venv/lib/python3.11/site-packages/discord/opus.py", line 332, in get_opus_version
raise OpusNotLoaded()
a year ago
how do you install opus?
I don't know. I'm still trying to figure out why the script works locally, but not in Railway. This is currently the error stack.
I'm wondering opus is something natively installed in my computer but not in railway? But it shouldn't be if we're using virtualenv, right?
a year ago
probably a system library
sudo apt-get install libopus0
here's how to install it. can I add this to railway during build process? 🤔
do I need https://nixpacks.com/docs/configuration/file maybe?
a year ago
add a nixpacks.toml file to your project with this in it -
[phases.setup]
aptPkgs = ['...', 'libopus0']