Skip to content

Win11 Livekit Server - ImportError: cannot import name 'api' from 'livekit' (unknown location) #302

@macazaga

Description

@macazaga

Describe the bug
After following the guide for 01 in Windows I runned the command:
poetry run 01 --server livekit --qr --expose

And powershell / cmd shows the following:
Using python3.11 (3.11.9)
⠴ Traceback (most recent call last):
File "", line 1, in
File "C:\Users\maca1\Miniconda3\Lib\importlib_init_.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 995, in exec_module
File "", line 488, in _call_with_frames_removed
File "M:\oi\01\software\main.py", line 17, in
from livekit import api
ImportError: cannot import name 'api' from 'livekit' (unknown location)

Screenshots
image

Desktop:

  • OS: Windows 11
  • Python Version: 3.11.9

Additional context
I also tried running the light server:
poetry run 01 --server light

And returns the same error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions