Welcome to Portkey Forum

Updated 8 months ago

Modulenotfounderror: no module named 'portkey_ai._vendor.openai.lib'

At a glance
ModuleNotFoundError: No module named 'portkey_ai._vendor.openai.lib'

Hi,
Did we launch any new version of the library? I am not sure if it is backward compatible.
S
v
7 comments
Plain Text
from portkey_ai import AsyncPortkey

File "/usr/local/lib/python3.11/site-packages/portkey_ai/__init__.py", line 3, in <module>

from ._vendor import openai

File "/usr/local/lib/python3.11/site-packages/portkey_ai/_vendor/openai/__init__.py", line 11, in <module>

from ._client import (

File "/usr/local/lib/python3.11/site-packages/portkey_ai/_vendor/openai/_client.py", line 11, in <module>

from . import resources, _exceptions

File "/usr/local/lib/python3.11/site-packages/portkey_ai/_vendor/openai/resources/__init__.py", line 3, in <module>

from .beta import (

File "/usr/local/lib/python3.11/site-packages/portkey_ai/_vendor/openai/resources/beta/__init__.py", line 3, in <module>

from .beta import (

File "/usr/local/lib/python3.11/site-packages/portkey_ai/_vendor/openai/resources/beta/beta.py", line 5, in <module>

from .threads import (

File "/usr/local/lib/python3.11/site-packages/portkey_ai/_vendor/openai/resources/beta/threads/__init__.py", line 3, in <module>

from .runs import (

File "/usr/local/lib/python3.11/site-packages/portkey_ai/_vendor/openai/resources/beta/threads/runs/__init__.py", line 3, in <module>

from .runs import (

File "/usr/local/lib/python3.11/site-packages/portkey_ai/_vendor/openai/resources/beta/threads/runs/runs.py", line 41, in <module>

from .....lib.streaming import (

ModuleNotFoundError: No module named 'portkey_ai._vendor.openai.lib'


It was all working fine till few hours ago.
Any tips to debug this?
Hey @Siddharth Bulia - Can you please run pip install again?
You will have to clear local package cache
Is this resolved now?
Yeah, seems to have worked now.
but what exactly what was the issue?
We released v1.6.0 for the SDK which had some issues. So we reverted that version in couple of minutes. But you already installed the package in that duration.
Add a reply
Sign up and join the conversation on Discord