Advertisement
Guest User

discord.py - discord.opus.OpusNotLoaded

a guest
Aug 29th, 2019
4,068
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. If you are getting this Python error (excerpt) with discord.py:
  2.  
  3. raise OpusNotLoaded()
  4. discord.opus.OpusNotLoaded
  5.  
  6. Solve it by adding this in your script:
  7.  
  8. import ctypes
  9. import ctypes.util
  10.  
  11. print("ctypes - Find opus:")
  12. a = ctypes.util.find_library('opus')
  13. print(a)
  14.  
  15. print("Discord - Load Opus:")
  16. b = discord.opus.load_opus(a)
  17. print(b)
  18.  
  19. print("Discord - Is loaded:")
  20. c = discord.opus.is_loaded()
  21. print(c)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement