Skip to content

Forum in maintenance, we will back soon 🙂

following YouTube v...
 
Notifications
Clear all

following YouTube video

4 Posts
3 Users
0 Reactions
50 Views
(@majortonic)
Posts: 2
New Member
Topic starter
 

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'

 
Posted : 09/11/2024 10:06 pm
Hasan Aboul Hasan
(@admin)
Posts: 1253
Member Admin
 

this error is probably due to API access. did you set the API keys in the .env file?

 
Posted : 09/16/2024 2:41 pm
(@majortonic)
Posts: 2
New Member
Topic starter
 

@admin yes I signed up and used the rapid api 🙁 it's probably something I did I will try again from a clean slate and see if it happens again

 
Posted : 09/17/2024 8:08 pm
(@husein)
Posts: 531
Member Moderator
 

@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.

 
Posted : 09/18/2024 8:18 am
Share: