Forum in maintenance, we will back soon 🙂
following YouTube video
my name is Russ, I followed one of the videos on YouTube and it is possible I may have missed something.
But here is what happens for me streamlit loads up in the browser just fine
and seems to be working, but when I put in the keyword and press start i get the following error, and this is with none of the boxes on the left checked for api use can you help me? I am running Win.10 with latest python update thanks. Also if this is the wrong area to post this please let me know 🙂
Russ
You can now view your Streamlit app in your browser.
Local URL: http://localhost:8501
Network URL: http://10.0.0.206:8501
Failed after 3 attempts due to: Connection error.
Failed after 3 attempts due to: Connection error.
Failed after 3 attempts due to: Connection error.
Failed after 3 attempts due to: Connection error.
2024-09-09 15:00:34.809 Uncaught app exception
Traceback (most recent call last):
File "C:\Users\major\OneDrive\Keyword-Research-Graph-main\venv\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 589, in _run_script
exec(code, module.__dict__)
File "C:\Users\major\OneDrive\Keyword-Research-Graph-main\ui.py", line 157, in <module>
main()
File "C:\Users\major\OneDrive\Keyword-Research-Graph-main\ui.py", line 127, in main
st.session_state.nodes, st.session_state.edges = generate_subtopics_tree(
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\major\OneDrive\Keyword-Research-Graph-main\ui.py", line 27, in generate_subtopics_tree
subtopics = get_topic_children(topic,child_topics_count)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\major\OneDrive\Keyword-Research-Graph-main\helpers.py", line 49, in get_topic_children
return response.sub_topics
^^^^^^^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'sub_topics'
this error is probably due to API access. did you set the API keys in the .env file?
@majortonic The same error happened with me yesterday but in a different application. The main script was without streamlit and it worked perfectly but when i deploed it using streamlit it kep giving me Failed after 3 attempts due to: Connection error. For all fields that used API keys.
So, i tried creating a virtual environment and run it again, and it worked. Try it and let me know what happens.