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

TypeError: ImageMixin.image() got an unexpected keyword argument 'use_container_width' #15

Closed
jonmach opened this issue Jan 9, 2025 · 2 comments

Comments

@jonmach
Copy link

jonmach commented Jan 9, 2025

Seemed to install and start fine.

However, when either dragging a file, or browsing to load a file, the following comes up:

TypeError: ImageMixin.image() got an unexpected keyword argument 'use_container_width'

Traceback:
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 88, in exec_func_with_error_handling
result = func()
^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 579, in code_to_exec
exec(code, module.dict)
File "/Users/jon/dev/LLM/Ollama-OCR/src/ollama_ocr/app.py", line 247, in
main()
File "/Users/jon/dev/LLM/Ollama-OCR/src/ollama_ocr/app.py", line 164, in main
st.image(image, use_container_width=True, caption=uploaded_file.name)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/streamlit/runtime/metrics_util.py", line 410, in wrapped_func
result = non_optional_func(*args, **kwargs)

@bdqnaccphantianyang
Copy link

bdqnaccphantianyang commented Jan 11, 2025

Is it solved?

@bdqnaccphantianyang
Copy link

Solved, version issue

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

3 participants