You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use this library in a project, and use the CMake/Ninja combo to unittest it.
On Linux no issues, but on Windows I have a crash. Probalby some issues with the Powershell encoding.
Thanks for your help.
Environment:
Windows 10
Python 3.12.0
CMake/Ninja combo
Log:
ERROR: test_md5_sums_valid (tests.test_cesam.TestCesamDownloadFolder.test_md5_sums_valid)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Program Files\Python312\Lib\unittest\mock.py", line 1387, in patched
return func(*newargs, **newkeywargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Tools\DEV\libcesam\tests\test_cesam.py", line 666, in test_md5_sums_valid
test_folder = cesam.download_folder(test_folder)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Tools\DEV\libcesam\libcesam\cesam.py", line 246, in download_folder
with alive_bar(len(["test"])) as bar:
File "C:\Program Files\Python312\Lib\contextlib.py", line 144, in __exit__
next(self.gen)
File "C:\Tools\DEV\libcesam\venv\Lib\site-packages\alive_progress\core\progress.py", line 364, in __alive_bar
alive_repr()
File "C:\Tools\DEV\libcesam\venv\Lib\site-packages\alive_progress\core\progress.py", line 165, in alive_repr
run.last_len = print_cells(fragments, term.cols(), term, run.last_len)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Tools\DEV\libcesam\venv\Lib\site-packages\alive_progress\utils\cells.py", line 109, in print_cells
term.write(join_cells(fragment))
File "C:\Program Files\Python312\Lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeEncodeError: 'charmap' codec can't encode characters in position 1-2: character maps to <undefined>
The text was updated successfully, but these errors were encountered:
That's unfortunate, I know. But sadly, I don't know what to do to circumvent these weird windows incompatibilities...
I'd say perhaps you could try WSL2. Since it is a linux environment it should work flawlessly.
If everything else fails, I think you'd have to use both the classic bar and spinner, since they only use ASCII characters.
I use this library in a project, and use the CMake/Ninja combo to unittest it.
On Linux no issues, but on Windows I have a crash. Probalby some issues with the Powershell encoding.
Thanks for your help.
Environment:
Log:
The text was updated successfully, but these errors were encountered: