tgcf icon indicating copy to clipboard operation
tgcf copied to clipboard

AttributeError: module 'streamlit' has no attribute 'experimental_rerun'

Open urbenx opened this issue 1 year ago β€’ 12 comments

When I try to run the script I get this, any solutions?:

File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit\runtime\scriptrunner\exec_code.py", line 88, in exec_func_with_error_handling result = func() ^^^^^^ File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 579, in code_to_exec exec(code, module.dict) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\tgcf\web_ui\pages\5_πŸƒ_Run.py", line 102, in st.experimental_rerun() ^^^^^^^^^^^^^^^^^^^^^

urbenx avatar Nov 24 '24 22:11 urbenx

i have the same problem please help

AttributeError: module 'streamlit' has no attribute 'experimental_rerun' Traceback: File "C:\Users\Admin\my-tgcf.venv\lib\site-packages\streamlit\runtime\scriptrunner\exec_code.py", line 88, in exec_func_with_error_handling result = func() File "C:\Users\Admin\my-tgcf.venv\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 579, in code_to_exec exec(code, module.dict) File "C:\Users\Admin\my-tgcf.venv\Lib\site-packages\tgcf\web_ui\pages\3_πŸ”—_Connections.py", line 112, in st.experimental_rerun()

ferelking242 avatar Nov 30 '24 12:11 ferelking242

Same here:

File "C:\Temp\my-tgcf.venv\Lib\site-packages\streamlit\runtime\scriptrunner\exec_code.py", line 88, in exec_func_with_error_handling result = func() ^^^^^^ File "C:\Temp\my-tgcf.venv\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 579, in code_to_exec exec(code, module.dict) File "C:\Temp\my-tgcf.venv\Lib\site-packages\tgcf\web_ui\pages\5_πŸƒ_Run.py", line 102, in st.experimental_rerun() ^^^^^^^^^^^^^^^^^^^^^

JorgaWetzel avatar Dec 10 '24 17:12 JorgaWetzel

+1

kpbll avatar Dec 13 '24 16:12 kpbll

+1

s0ldi3r4 avatar Dec 19 '24 05:12 s0ldi3r4

+1 Getting the same error running Python 3.10 in Ubuntu 24.04

2024-12-22 14:12:41.969 Uncaught app execution Traceback (most recent call last): File "/home//my-tgcf/.venv/lib/python3.10/site-packages/tgcf/web_ui/pages/5_πŸƒ_Run.py", line 68, in os.kill(CONFIG.pid, signal.SIGCONT) ProcessLookupError: [Errno 3] No such process

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home//my-tgcf/.venv/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 88, in exec_func_with_error_handling result = func() File "/home//my-tgcf/.venv/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 579, in code_to_exec exec(code, module.dict) File "/home//my-tgcf/.venv/lib/python3.10/site-packages/tgcf/web_ui/pages/5_πŸƒ_Run.py", line 75, in st.experimental_rerun() AttributeError: module 'streamlit' has no attribute 'experimental_rerun'

storm1637 avatar Dec 22 '24 13:12 storm1637

ran into this as well, it needs a lesser verison of steamlit to work as that specific command is no longer in steamlit >1.37.0

run pip uninstall steamlit pip install steamlit==1.17.0 pip install "altair<5"

wfreq avatar Jan 01 '25 01:01 wfreq

ran into this as well, it needs a lesser verison of steamlit to work as that specific command is no longer in steamlit >1.37.0

run pip uninstall steamlit pip install steamlit==1.17.0 pip install "altair<5"

This was helpful advice though it's streamlit instead of steamlit. Running these commands fixed the errors I was getting though unfortunately it isn't forwarding anything even though I'm very confident I have everything configured correctly. I tried both the user as the bot forwarding option. Both aren't working with two basic test channels. I think this program has had it's time.

storm1637 avatar Jan 01 '25 16:01 storm1637

ran into this as well, it needs a lesser verison of steamlit to work as that specific command is no longer in steamlit >1.37.0

run pip uninstall steamlit pip install steamlit==1.17.0 pip install "altair<5"

Γ‡a marche pas qui a une solution

ferelking242 avatar Jan 01 '25 17:01 ferelking242

ran into this as well, it needs a lesser verison of steamlit to work as that specific command is no longer in steamlit >1.37.0 run pip uninstall steamlit pip install steamlit==1.17.0 pip install "altair<5"

This was helpful advice though it's streamlit instead of steamlit. Running these commands fixed the errors I was getting though unfortunately it isn't forwarding anything even though I'm very confident I have everything configured correctly. I tried both the user as the bot forwarding option. Both aren't working with two basic test channels. I think this program has had it's time.

I have the same problème do you have a solution

ferelking242 avatar Jan 01 '25 17:01 ferelking242

I fixed this by stopping the UI, changing all instances in the code from st.experimental_rerun to st.rerun, and then running it again. If you bump into the issue again on the run page just do the same thing in the run page code. The error gives you the location of the issue in the files. If you made some other changes you may need to run pip install tgcf again too.

Also keep in mind you need to press run and have it running for the bot to work.

NathajiM avatar Jan 03 '25 23:01 NathajiM

I fixed this by stopping the UI, changing all instances in the code from st.experimental_rerun to st.rerun, and then running it again. If you bump into the issue again on the run page just do the same thing in the run page code. The error gives you the location of the issue in the files. If you made some other changes you may need to run pip install tgcf again too.

Also keep in mind you need to press run and have it running for the bot to work.

pls ho can i do it ? https://t.me/FK_MASTER1 my telegram

ferelking242 avatar Jan 03 '25 23:01 ferelking242

For anyone wondering how to solve this error. (windows running wsl) Simply go to file manager the to linux section (near this pc) Navigate through the path shown before error msg For example if the following is shown

Traceback (most recent call last): File "/home//my-tgcf/.venv/lib/python3.10/site-packages/tgcf/web_ui/pages/5_πŸƒ_Run.py", line 68, in os.kill(CONFIG.pid, signal.SIGCONT) ProcessLookupError: [Errno 3] No such process

Make sure ui is stopped before making the below changes In linux section go to home, then my-tgcf, then .venv, etc... Follow path until you see 6 or so *.py files. Modify run.py,connections.py and plugins.py by opening in notepad or any other plain-text editor Replace st.experimental_rerun with st.rerun save file from files section or hit ctrl+s Do this from the three files mentioned. Run tgcf-web in environment var again It should work

1k-7 avatar Apr 17 '25 02:04 1k-7