-1

My directory structure is fine, this is like a simple overview:

project_root/
├── your_script.py
├── services/
│   ├── api/
│   │   ├── openAI.py
│   ├── hardware/
│   │   ├── input_sound_handler.py
│   │   ├── output_sound_handler.py

These lines of code dont work:

from services.api.openAI import OpenAIAPI
from services.hardware.input_sound_handler import InputSoundHandler
from services.hardware.output_sound_handler import OutputSoundHandler

for some reason, I still have these issues:

import "services.api.openAI" could not be resolved
import "services.hardware.input_sound_handler" could not be resolved
import "services.hardware.output_sound_handler" could not be resolved

would appreciate any help

I created a .env file with my APIKEY and imported openai and os I also tried creating __init__.py files

0 Answers0