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

UnboundLocalError: local variable 'uploaded_file' referenced before assignment #1

Open
johnfelipe opened this issue Jun 8, 2023 · 1 comment

Comments

@johnfelipe
Copy link

johnfelipe commented Jun 8, 2023

  File "/usr/local/lib/python3.8/dist-packages/streamlit/scriptrunner/script_runner.py", line 475, in _run_script
	exec(code, module.__dict__)
  File "/root/LazySlides/LazySlides/app.py", line 375, in <module>
	main()
  File "/root/LazySlides/LazySlides/app.py", line 311, in main
	with open(os.path.join("videof",uploaded_file.name),"wb") as f:
UnboundLocalError: local variable 'uploaded_file' referenced before assignment

and

UnboundLocalError: local variable 'uploaded_file' referenced before assignment
Traceback:
File "/usr/local/lib/python3.8/dist-packages/streamlit/scriptrunner/script_runner.py", line 475, in _run_script
	exec(code, module.__dict__)
File "/root/LazySlides/LazySlides/app.py", line 375, in <module>
	main()
File "/root/LazySlides/LazySlides/app.py", line 311, in main
	with open(os.path.join("videof",uploaded_file.name),"wb") as f:

how solved?

@SuryaCreatX
Copy link
Owner

I guess I missed a file. The file is videof. This file converts videos to ppt. You can refer pptx python library for the conversion.
Ill make sure ill rectify this error asap!!!
Thanks for letting me know. Have a great day.

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

2 participants