Encoding Error on Windows - 'charmap' codec can't decode byte 0x8f
When running the solution "csbdeep_unet_train", the following error arises:
INFO ~ 0%| | 0/7 [00:00<?, ?it/s]
INFO ~ 57%|█████▋ | 4/7 [00:00<00:00, 35.09it/s]
INFO ~ 100%|██████████| 7/7 [00:00<00:00, 29.41it/s]
INFO ~ normalizing with mi,ma = 36.0, 212.0
INFO ~ normalizing with mi,ma = 30.0, 212.0
[...5 more normalizing prints appeared here...]
ERROR album command failed: 'charmap' codec can't decode byte 0x8f in position 29: character maps to <undefined>
'charmap' codec can't decode byte 0x8f in position 29: character maps to <undefined>
Interestingly, running the code of the solution within its corresponding conda environment, the issue does not appear and the tdqm progress-bar works normally. I'd suspect a problem with the logging prints of subprocesses.
The same error (byte 0x8f) appears when running a totally different solution, but a background process of the solution continues using the GPU until it finished its inference.
Could it relate to encoding issues like #196 ?
album version: 0.11.0
album api version: 0.6.1
Edit - DEBUG print:
18:36:01 DEBUG Traceback (most recent call last):
File "s:\album\album\src\album\argument_parsing.py", line 88, in __run_subcommand
namespace.func(album_instance, namespace) # execute entry point function
File "s:\album\album\src\album\commandline.py", line 99, in run
album_instance.run(str(args.path), argv=sys.argv)
File "s:\album\album\src\album\api.py", line 95, in run
return self._run_async(
File "s:\album\album\src\album\api.py", line 311, in _run_async
return method(*args)
File "s:\album\album\src\album\core\controller\run_manager.py", line 55, in run
self.album.script_manager().run_queue(que)
File "s:\album\album\src\album\core\controller\script_manager.py", line 66, in run_queue
self._run_in_environment(script_queue_entry)
File "s:\album\album\src\album\core\controller\script_manager.py", line 304, in _run_in_environment
self.album.environment_manager().run_script(
File "s:\album\album\src\album\core\controller\environment_manager.py", line 180, in run_script
self.environment_handler.run_script(
File "c:\anaconda3\envs\album\lib\site-packages\album\environments\controller\environment_handler.py", line 44, in run_script
self._package_manager.run_script(
File "c:\anaconda3\envs\album\lib\site-packages\album\environments\controller\package_manager.py", line 275, in run_script
subcommand.run(
File "c:\anaconda3\envs\album\lib\site-packages\album\environments\utils\subcommand.py", line 194, in run
exit_status = _run_process(command, log_processing, pipe_output, env)
File "c:\anaconda3\envs\album\lib\site-packages\album\environments\utils\subcommand.py", line 216, in _run_process
output = process.stdout.readline()
File "C:\Anaconda3\envs\album\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f in position 32: character maps to <undefined>
Edited by Scaramir