AttributeError: module 'streamlit' has no attribute 'experimental_rerun'
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
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
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
+1
+1
+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
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
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"
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.
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
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
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.
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
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