livekit / python-sdks

LiveKit real-time and server SDKs for Python
https://docs.livekit.io
Apache License 2.0
80 stars 26 forks source link

Cannot import livekit version 0.4.6 #78

Closed TheNha closed 9 months ago

TheNha commented 9 months ago

Hi. I installed livekit version 0.4.6, but when I used face_landmark.py in examples, I got an error.

(python-sdks) livekit@ubuntu:~/Projects/python-sdks$ python examples/face_landmark/face_landmark.py Traceback (most recent call last): File "examples/face_landmark/face_landmark.py", line 12, in from livekit import rtc File "/home/livekit/Projects/python-sdks/lib/python3.8/site-packages/livekit/init.py", line 28, in from .audio_frame import AudioFrame File "/home/livekit/Projects/python-sdks/lib/python3.8/site-packages/livekit/audio_frame.py", line 17, in from ._ffi_client import FfiHandle, ffi_client File "/home/livekit/Projects/python-sdks/lib/python3.8/site-packages/livekit/_ffi_client.py", line 25, in from ._utils import Queue File "/home/livekit/Projects/python-sdks/lib/python3.8/site-packages/livekit/_utils.py", line 27, in class Queue(asyncio.Queue[T]): TypeError: 'type' object is not subscriptable

I'm using ubuntu version 20.04, and python version 3.8.10. Please help me. Thank you.