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

Error #13

Open
jwdinkel opened this issue Sep 14, 2023 · 0 comments
Open

Error #13

jwdinkel opened this issue Sep 14, 2023 · 0 comments

Comments

@jwdinkel
Copy link

Hello,

Can anybody help me with this error please?

The app.py created here in this notebook has a reference to::
https://github.com/aws-samples/amazon-bedrock-prompting/blob/main/auto_prompting/auto-prompting.ipynb
has a reference to this on line 2
from streamlit_chat import message

Here is the console output when running:

(venv) jason@JiMini auto_prompting % streamlit run app.py


  You can now view your Streamlit app in your browser.

  Local URL: http://localhost:8501
  Network URL: http://192.168.1.153:8501

  For better performance, install the Watchdog module:

  $ xcode-select --install
  $ pip install watchdog
            
2023-09-14 04:50:44.670 Uncaught app exception
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script
    exec(code, module.__dict__)
  File "/Users/jason/Downloads/content/amazon-bedrock-prompting/auto_prompting/app.py", line 2, in <module>
    from streamlit_chat import message
ModuleNotFoundError: No module named 'streamlit_chat'
2023-09-14 04:50:54.146 Uncaught app exception
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script
    exec(code, module.__dict__)
  File "/Users/jason/Downloads/content/amazon-bedrock-prompting/auto_prompting/app.py", line 2, in <module>
    from streamlit_chat import message
ModuleNotFoundError: No module named 'streamlit_chat'

Note that I do not see the streamlit_chat in the code downloaded from this repo, so perhaps I missed it?

Also, I tried to move forward with the example by simply replacing the import with a message of my choosing.
This causes other issues to appear in terms of dependencies and I noticed that the notebook does have the installation of dependencies commented out for the moment, so perhaps there are additional issues with this example that need to be addressed? If you have an example of how to make this streamlit example work on macos that uses AWS SSO login for credentials, that would be fantastic.

Thank you.

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

1 participant