Skip to content

Module Not Found Error #11

@shavilya

Description

@shavilya

After running the src/components/data_ingestion.py , It gives ModuleNotFoundError : no module name 'src' , have tried every fix from bard , maily :

  1. import os

os.environ['PYTHONPATH'] = os.path.dirname(file) + '/src'

from src.exception import CustomException

2.import shutil

shutil.move('src', 'my_project/src')

from my_project.src.exception import CustomException

but haven't got it resolved.

Also , I am using miniconda env .
Can anyone let me know how to fix it ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions