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

No module named 'ChatApp' #37

Open
dhgouveia2 opened this issue Dec 14, 2023 · 3 comments
Open

No module named 'ChatApp' #37

dhgouveia2 opened this issue Dec 14, 2023 · 3 comments

Comments

@dhgouveia2
Copy link

dhgouveia2 commented Dec 14, 2023

when trying to execute the ChatApp/app.py from Windows powershell

$ python ChatApp/app.py

I got the following error.

Traceback (most recent call last):
  File "C:\Llama-2-Onnx\ChatApp\app.py", line 6, in <module>
    from interface.hddr_llama_onnx_interface import LlamaOnnxInterface
  File "C:\Llama-2-Onnx\ChatApp\interface\hddr_llama_onnx_interface.py", line 12, in <module>
    from ChatApp.app_modules.utils import (
ModuleNotFoundError: No module named 'ChatApp'

Dependencies have been installed

cd .\ChatApp
pip install -r requirements.txt
$ python -V
Python 3.10.6
@Nancyberry31
Copy link

#37
Uploading Screenshot_20231113-155858~2.jpg…

@meetrais
Copy link
Collaborator

meetrais commented Jan 4, 2024

when trying to execute the ChatApp/app.py from Windows powershell

$ python ChatApp/app.py

I got the following error.

Traceback (most recent call last):
  File "C:\Llama-2-Onnx\ChatApp\app.py", line 6, in <module>
    from interface.hddr_llama_onnx_interface import LlamaOnnxInterface
  File "C:\Llama-2-Onnx\ChatApp\interface\hddr_llama_onnx_interface.py", line 12, in <module>
    from ChatApp.app_modules.utils import (
ModuleNotFoundError: No module named 'ChatApp'

Dependencies have been installed

cd .\ChatApp
pip install -r requirements.txt
$ python -V
Python 3.10.6

I resolved this error by removing "ChatApp." where ever its referred.

For example, Change This -> from ChatApp.app_modules.utils import

To -> from app_modules.utils import

@IanLeeClaxton
Copy link
Collaborator

To resolve you will need to do the following:

Windows:
SET PYTHONPATH=.

Mac/Linux
export PYTHONPATH=.

This should be added to the documentation or fixed in the project via config

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

4 participants