Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kick up the python api . it push a error message #178

Open
elohffa opened this issue Jul 18, 2024 · 1 comment
Open

kick up the python api . it push a error message #178

elohffa opened this issue Jul 18, 2024 · 1 comment

Comments

@elohffa
Copy link

elohffa commented Jul 18, 2024

Hi , I got a problem when kick up the api and I got this message , can u help take a look

python api.py
Traceback (most recent call last):
File "/home/xxx/Documents/Repolocal/poe-api-wrapper/poe_api_wrapper/openai/api.py", line 7, in
from poe_api_wrapper.openai import helpers
ModuleNotFoundError: No module named 'poe_api_wrapper.openai'

@KA4I
Copy link

KA4I commented Jul 27, 2024

Hi I had the same problem, but I managed to fix it go in /poe-api-wrapper/poe_api_wrapper/openai/api.py file and line 7 and 8 should become from this:

from poe_api_wrapper.openai import helpers
from poe_api_wrapper.openai.type import *

To this:
import helpers
from type import *

Basically you need to remove poe_api_wrapper.openai as you are already in that directory and when you run python api.py it tries to look for these modules in "/Repolocal/poe-api-wrapper/poe_api_wrapper/openai/poe_api_wrapper/openai" when in fact they are in "/Repolocal/poe-api-wrapper/poe_api_wrapper/openai/".

Hope it helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants