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

unicode error #10503

Open
4 tasks done
madhukarjadhav736 opened this issue Feb 25, 2025 · 3 comments
Open
4 tasks done

unicode error #10503

madhukarjadhav736 opened this issue Feb 25, 2025 · 3 comments
Labels
priority:P4 status:confirmed Bug has been confirmed by the Streamlit team type:bug Something isn't working

Comments

@madhukarjadhav736
Copy link

madhukarjadhav736 commented Feb 25, 2025

Checklist

  • I have searched the existing issues for similar issues.
  • I added a very descriptive title to this issue.
  • I have provided sufficient information below to help reproduce this issue.

Summary

windows10 pro, python13.2, streamlit 1.40, error while importing heyoo module like...

.
.
.
there is no error if run with windows10 pro, python9/11, streamlit1.39/1.38

Reproducible Code Example

from heyoo import WhatsApp

Steps To Reproduce

No response

Expected Behavior

No response

Current Behavior

UnicodeEncodeError: 'utf-8' codec can't encode characters in position 155-156: surrogates not allowed
Traceback:
File "C:\Users\niramay\PycharmProjects\clinic.venv\Lib\site-packages\streamlit\runtime\scriptrunner\exec_code.py", line 121, in exec_func_with_error_handling
result = func()
File "C:\Users\niramay\PycharmProjects\clinic.venv\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 591, in code_to_exec
exec(code, module.dict)
~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\niramay\PycharmProjects\clinic\pages\zPrescription.py", line 23, in
import util
File "C:\Users\niramay\PycharmProjects\clinic\util.py", line 39, in
from heyoo import WhatsApp

Is this a regression?

  • Yes, this used to work in a previous version.

Debug info

  • Streamlit version:1.40
  • Python version:13.2
  • Operating System:windows10pro
  • Browser:chrome latest

Additional Information

No response

@madhukarjadhav736 madhukarjadhav736 added status:needs-triage Has not been triaged by the Streamlit team type:bug Something isn't working labels Feb 25, 2025
Copy link

If this issue affects you, please react with a 👍 (thumbs up emoji) to the initial post.

Your feedback helps us prioritize which bugs to investigate and address first.

Visits

@sfc-gh-lwilby sfc-gh-lwilby added status:confirmed Bug has been confirmed by the Streamlit team and removed status:needs-triage Has not been triaged by the Streamlit team labels Feb 25, 2025
@sfc-gh-lwilby
Copy link
Collaborator

Hi @madhukarjadhav736,

I've reproduced this issue and narrowed it down to python 3.13 with any version of Streamlit.

Are you able to use python 3.12.9 as a mitigation?

Laura

@madhukarjadhav736
Copy link
Author

madhukarjadhav736 commented Feb 25, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority:P4 status:confirmed Bug has been confirmed by the Streamlit team type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants