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
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "[redacted]/venv/lib/python3.9/site-packages/spython/main/parse/parsers/singularity.py", line 30, in __init__
super(SingularityParser, self).__init__(filename, load)
File "[redacted]/venv/lib/python3.9/site-packages/spython/main/parse/parsers/base.py", line 56, in __init__
self.parse()
File "[redacted]/venv/lib/python3.9/site-packages/spython/main/parse/parsers/singularity.py", line 41, in parse
self.load_recipe()
File "[redacted]/venv/lib/python3.9/site-packages/spython/main/parse/parsers/singularity.py", line 333, in load_recipe
elif stripped.startswith("#") and stripped not in comments:
UnboundLocalError: local variable 'comments' referenced before assignment
Expected Behavior
When parsing a singularity definition with comments before the bootstrap line, the file should be successfully parsed
Actual Behavior
The parsing throws an
UnboundLocalError: local variable 'comments' referenced before assignment
Steps to Reproduce
spython
installedin that directory
Context
Failure Logs
Possible Fix
https://github.com/singularityhub/singularity-cli/blob/master/spython/main/parse/parsers/singularity.py#L318
That
comments
definition could to be repeated somewhere aboveThe text was updated successfully, but these errors were encountered: