UnicodeDecodeError when running reflex init
Describe the bug File "C:\Users\Usuario\anaconda3\envs\reflex\lib\concurrent\futures\thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) File "C:\Users\Usuario\anaconda3\envs\reflex\lib\site-packages\reflex\utils\prerequisites.py", line 338, in install_node processes.show_status("Installing node", process) File "C:\Users\Usuario\anaconda3\envs\reflex\lib\site-packages\reflex\utils\processes.py", line 225, in show_status for line in stream_logs(message, process): File "C:\Users\Usuario\anaconda3\envs\reflex\lib\site-packages\reflex\utils\processes.py", line 190, in stream_logs for line in process.stdout: File "C:\Users\Usuario\anaconda3\envs\reflex\lib\codecs.py", line 322, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa2 in position 108: invalid start byte
To Reproduce Got the exception when running 'reflex init', following the steps in the docs
Specifics (please complete the following information):
- Python Version: 3.10 installed using Conda on an virtual environment
- Reflex Version: 0.2.6
- OS: Windows 10 Pro 22H2
- Browser (Optional): Chrome
Additional context No more context
Do you get the same error when you try with an alternative virtual environment(pyenv, venv, poetry)?
I've just tried and yep, I get the same error.
Info: Overriding config value username with env var USERNAME=Usuario
ββββββββββββββββββββββββββββββββββββββββββββββββ Initializing Scripts βββββββββββββββββββββββββββββββββββββββββββββββββ
Traceback (most recent call last):
File "C:\Users\Usuario\anaconda3\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\Usuario\anaconda3\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "G:\CURSOS\Python\mini_projects\test_reflex\venv\Scripts\reflex.exe_main.py", line 7, in
(venv) G:\CURSOS\Python\mini_projects\test_reflex\venv\Scripts>
Same error with poetry:
File "G:\CURSOS\Python\mini_projects\test_reflex.venv\Lib\site-packages\reflex\utils\processes.py", line 225, in show_status
for line in stream_logs(message, process):
File "G:\CURSOS\Python\mini_projects\test_reflex.venv\Lib\site-packages\reflex\utils\processes.py", line 190, in stream_logs
for line in process.stdout:
File "
(test-reflex-py3.11) G:\CURSOS\Python\mini_projects\test_reflex>
This error I solved changing in the Windows settings Region/Time select Aditional options of date, time and regional setting in Change format of date, time or number select in eyelash Administrator Change regional settings of system and able the checkmark Version beta: Use UTF-8 Unicode
It worked !
Thanks !