This message was deleted.
# helpdesk
s
This message was deleted.
a
does simply importing it break, or is there a specific code path that hits that problem?
g
simple importing
Copy code
┗ # docker run -ti python:3.8 bash
root@7dba7d5df541:/# pip install livekit
Collecting livekit
  Downloading livekit-0.4.6-py3-none-manylinux_2_28_x86_64.whl (7.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.3/7.3 MB 3.9 MB/s eta 0:00:00
Collecting protobuf>=3.1.0
  Downloading protobuf-4.24.4-cp37-abi3-manylinux2014_x86_64.whl (311 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 311.6/311.6 kB 4.8 MB/s eta 0:00:00
Collecting types-protobuf>=3.1.0
  Downloading types_protobuf-4.24.0.2-py3-none-any.whl (62 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.0/62.0 kB 4.5 MB/s eta 0:00:00
Collecting pyee>=11.0.0
  Downloading pyee-11.0.1-py3-none-any.whl (15 kB)
Collecting typing-extensions
  Downloading typing_extensions-4.8.0-py3-none-any.whl (31 kB)
Installing collected packages: types-protobuf, typing-extensions, protobuf, pyee, livekit
Successfully installed livekit-0.4.6 protobuf-4.24.4 pyee-11.0.1 types-protobuf-4.24.0.2 typing-extensions-4.8.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: <https://pip.pypa.io/warnings/venv>

[notice] A new release of pip is available: 23.0.1 -> 23.3
[notice] To update, run: pip install --upgrade pip
root@7dba7d5df541:/# python
Python 3.8.18 (default, Oct 12 2023, 10:33:20)
[GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import livekit
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.8/site-packages/livekit/__init__.py", line 31, in <module>
    from .audio_frame import AudioFrame
  File "/usr/local/lib/python3.8/site-packages/livekit/audio_frame.py", line 17, in <module>
    from ._ffi_client import FfiHandle, ffi_client
  File "/usr/local/lib/python3.8/site-packages/livekit/_ffi_client.py", line 25, in <module>
    from ._utils import Queue
  File "/usr/local/lib/python3.8/site-packages/livekit/_utils.py", line 27, in <module>
    class Queue(asyncio.Queue[T]):
TypeError: 'type' object is not subscriptable
>>>
Already tried different quickfixes but isn't that easy. What is the official position? Do you want to support 3.8 and this is a "bug"? or you want to move on and just support 3.9+ ?
a
Yeah, looks like we’re using generics, which were only introduced in 3.9. I’ll let the folks working on the Python SDK know and we’ll get back to you on this
🙌 1
ok we’re going to just support 3.9+. Jumping through hoops to use generics in 3.8 is too much of a hassle. Hopefully this doesn’t cause problems for you
g
It causes.. .but ce la vie 🙂 Thank you for the clarification!