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
The greater than or equal to sign seems to be causing a logging error in the end of run report. I'm running Casanovo on Windows so this may be a platform specific bug. Regardless, here is the end of run report logging output:
INFO: ======= End of Run Report =======
INFO: Run Start Time: 24/07/10 16:32:03
INFO: Run End Time: 24/07/10 16:32:23
INFO: Time Elapsed: 0:00:19.993346
INFO: Executed Command: D:\anaconda3\envs\casanovo_env\Scripts\casanovo sequence sample_data\sample_preprocessed_spectra.mgf -o foo
INFO: Executed on Host Machine: DESKTOP-P03U1SR
INFO: Max GPU Memory Utilization: 381 MiB
INFO: Sequenced 128 spectra
INFO: Score Distribution:
INFO: 96 spectra (75.00%) scored ≥ 0.00
--- Logging error ---
Traceback (most recent call last):
File "D:\anaconda3\envs\casanovo_env\lib\logging\__init__.py", line 1103, in emit
stream.write(msg + self.terminator)
File "D:\anaconda3\envs\casanovo_env\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u2265' in position 109: character maps to <undefined>
Call stack:
File "D:\anaconda3\envs\casanovo_env\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "D:\anaconda3\envs\casanovo_env\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "D:\anaconda3\envs\casanovo_env\Scripts\casanovo.exe\__main__.py", line 7, in <module>
sys.exit(main())
File "D:\anaconda3\envs\casanovo_env\lib\site-packages\rich_click\rich_command.py", line 367, in __call__
return super().__call__(*args, **kwargs)
File "D:\anaconda3\envs\casanovo_env\lib\site-packages\click\core.py", line 1157, in __call__
return self.main(*args, **kwargs)
File "D:\anaconda3\envs\casanovo_env\lib\site-packages\rich_click\rich_command.py", line 152, in main
rv = self.invoke(ctx)
File "D:\anaconda3\envs\casanovo_env\lib\site-packages\click\core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "D:\anaconda3\envs\casanovo_env\lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "D:\anaconda3\envs\casanovo_env\lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "C:\Users\gavin\OneDrive\Documents\casanovo\casanovo\casanovo.py", line 152, in sequence
utils.log_sequencing_report(
File "C:\Users\gavin\OneDrive\Documents\casanovo\casanovo\utils.py", line 238, in log_sequencing_report
logger.info(
Message: '%d spectra (%.2f%%) scored ≥ %.2f'
Arguments: (96, 75.0, 0.0)
INFO: 96 spectra (75.00%) scored ≥ 0.50
--- Logging error ---
Traceback (most recent call last):
File "D:\anaconda3\envs\casanovo_env\lib\logging\__init__.py", line 1103, in emit
stream.write(msg + self.terminator)
File "D:\anaconda3\envs\casanovo_env\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u2265' in position 109: character maps to <undefined>
Call stack:
File "D:\anaconda3\envs\casanovo_env\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "D:\anaconda3\envs\casanovo_env\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "D:\anaconda3\envs\casanovo_env\Scripts\casanovo.exe\__main__.py", line 7, in <module>
sys.exit(main())
File "D:\anaconda3\envs\casanovo_env\lib\site-packages\rich_click\rich_command.py", line 367, in __call__
return super().__call__(*args, **kwargs)
File "D:\anaconda3\envs\casanovo_env\lib\site-packages\click\core.py", line 1157, in __call__
return self.main(*args, **kwargs)
File "D:\anaconda3\envs\casanovo_env\lib\site-packages\rich_click\rich_command.py", line 152, in main
rv = self.invoke(ctx)
File "D:\anaconda3\envs\casanovo_env\lib\site-packages\click\core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "D:\anaconda3\envs\casanovo_env\lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "D:\anaconda3\envs\casanovo_env\lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "C:\Users\gavin\OneDrive\Documents\casanovo\casanovo\casanovo.py", line 152, in sequence
utils.log_sequencing_report(
File "C:\Users\gavin\OneDrive\Documents\casanovo\casanovo\utils.py", line 238, in log_sequencing_report
logger.info(
Message: '%d spectra (%.2f%%) scored ≥ %.2f'
Arguments: (96, 75.0, 0.5)
INFO: 66 spectra (51.56%) scored ≥ 0.90
--- Logging error ---
Traceback (most recent call last):
File "D:\anaconda3\envs\casanovo_env\lib\logging\__init__.py", line 1103, in emit
stream.write(msg + self.terminator)
File "D:\anaconda3\envs\casanovo_env\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u2265' in position 109: character maps to <undefined>
Call stack:
File "D:\anaconda3\envs\casanovo_env\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "D:\anaconda3\envs\casanovo_env\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "D:\anaconda3\envs\casanovo_env\Scripts\casanovo.exe\__main__.py", line 7, in <module>
sys.exit(main())
File "D:\anaconda3\envs\casanovo_env\lib\site-packages\rich_click\rich_command.py", line 367, in __call__
return super().__call__(*args, **kwargs)
File "D:\anaconda3\envs\casanovo_env\lib\site-packages\click\core.py", line 1157, in __call__
return self.main(*args, **kwargs)
File "D:\anaconda3\envs\casanovo_env\lib\site-packages\rich_click\rich_command.py", line 152, in main
rv = self.invoke(ctx)
File "D:\anaconda3\envs\casanovo_env\lib\site-packages\click\core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "D:\anaconda3\envs\casanovo_env\lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "D:\anaconda3\envs\casanovo_env\lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "C:\Users\gavin\OneDrive\Documents\casanovo\casanovo\casanovo.py", line 152, in sequence
utils.log_sequencing_report(
File "C:\Users\gavin\OneDrive\Documents\casanovo\casanovo\utils.py", line 238, in log_sequencing_report
logger.info(
Message: '%d spectra (%.2f%%) scored ≥ %.2f'
Arguments: (66, 51.5625, 0.9)
INFO: 60 spectra (46.88%) scored ≥ 0.95
--- Logging error ---
Traceback (most recent call last):
File "D:\anaconda3\envs\casanovo_env\lib\logging\__init__.py", line 1103, in emit
stream.write(msg + self.terminator)
File "D:\anaconda3\envs\casanovo_env\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u2265' in position 109: character maps to <undefined>
Call stack:
File "D:\anaconda3\envs\casanovo_env\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "D:\anaconda3\envs\casanovo_env\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "D:\anaconda3\envs\casanovo_env\Scripts\casanovo.exe\__main__.py", line 7, in <module>
sys.exit(main())
File "D:\anaconda3\envs\casanovo_env\lib\site-packages\rich_click\rich_command.py", line 367, in __call__
return super().__call__(*args, **kwargs)
File "D:\anaconda3\envs\casanovo_env\lib\site-packages\click\core.py", line 1157, in __call__
return self.main(*args, **kwargs)
File "D:\anaconda3\envs\casanovo_env\lib\site-packages\rich_click\rich_command.py", line 152, in main
rv = self.invoke(ctx)
File "D:\anaconda3\envs\casanovo_env\lib\site-packages\click\core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "D:\anaconda3\envs\casanovo_env\lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "D:\anaconda3\envs\casanovo_env\lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "C:\Users\gavin\OneDrive\Documents\casanovo\casanovo\casanovo.py", line 152, in sequence
utils.log_sequencing_report(
File "C:\Users\gavin\OneDrive\Documents\casanovo\casanovo\utils.py", line 238, in log_sequencing_report
logger.info(
Message: '%d spectra (%.2f%%) scored ≥ %.2f'
Arguments: (60, 46.875, 0.95)
INFO: 8 spectra (6.25%) scored ≥ 0.99
--- Logging error ---
Traceback (most recent call last):
File "D:\anaconda3\envs\casanovo_env\lib\logging\__init__.py", line 1103, in emit
stream.write(msg + self.terminator)
File "D:\anaconda3\envs\casanovo_env\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u2265' in position 107: character maps to <undefined>
Call stack:
File "D:\anaconda3\envs\casanovo_env\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "D:\anaconda3\envs\casanovo_env\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "D:\anaconda3\envs\casanovo_env\Scripts\casanovo.exe\__main__.py", line 7, in <module>
sys.exit(main())
File "D:\anaconda3\envs\casanovo_env\lib\site-packages\rich_click\rich_command.py", line 367, in __call__
return super().__call__(*args, **kwargs)
File "D:\anaconda3\envs\casanovo_env\lib\site-packages\click\core.py", line 1157, in __call__
return self.main(*args, **kwargs)
File "D:\anaconda3\envs\casanovo_env\lib\site-packages\rich_click\rich_command.py", line 152, in main
rv = self.invoke(ctx)
File "D:\anaconda3\envs\casanovo_env\lib\site-packages\click\core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "D:\anaconda3\envs\casanovo_env\lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "D:\anaconda3\envs\casanovo_env\lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "C:\Users\gavin\OneDrive\Documents\casanovo\casanovo\casanovo.py", line 152, in sequence
utils.log_sequencing_report(
INFO: Min Peptide Length: 6
INFO: Max Peptide Length: 17
INFO: Median Peptide Length: 9
The greater than or equal to sign seems to be causing a logging error in the end of run report. I'm running Casanovo on Windows so this may be a platform specific bug. Regardless, here is the end of run report logging output:
Changing the logging statement
to
seems to resolve this issue. This bug appeared for me after running the command
casanovo sequence sample_data\sample_preprocessed_spectra.mgf -o foo
.The text was updated successfully, but these errors were encountered: