`autosubmit clean --project $expid` broken due to can only concatenate str (not "bytes") to str
Hello @dbeltran,
Autosubmit Version
latest
Expid affected(If applicable)
NA
Which task has issues? Where is the log(If applicable)
NA
Summary
Running autosubmit clean --project $expid
on a Git project results in the error
(autosubmit4) bdepaula@bsces107921:~/Development/python/workspace/autosubmit$ autosubmit clean --project a00m
Autosubmit is running with 4.0.0b
Checking configuration files...
Expdef config file is correct
Platforms sections: OK
Jobs sections OK
Autosubmit general sections OK
Configuration files OK
Registering commit SHA...
Traceback (most recent call last):
File "/home/bdepaula/Development/python/workspace/autosubmit/autosubmit/autosubmit.py", line 2681, in clean
autosubmit_config.set_git_project_commit(autosubmit_config)
File "/home/bdepaula/mambaforge/envs/autosubmit4/lib/python3.10/site-packages/autosubmitconfigparser/config/configcommon.py", line 1740, in set_git_project_commit
Log.debug("Project branch is: " + project_branch)
TypeError: can only concatenate str (not "bytes") to str
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/bdepaula/Development/python/workspace/autosubmit/bin/autosubmit", line 36, in main
Autosubmit.parse_args()
File "/home/bdepaula/Development/python/workspace/autosubmit/autosubmit/autosubmit.py", line 653, in parse_args
return Autosubmit.clean(args.expid, args.project, args.plot, args.stats)
File "/home/bdepaula/Development/python/workspace/autosubmit/autosubmit/autosubmit.py", line 2697, in clean
raise AutosubmitCritical("Couldn't clean this experiment, check if you have the correct permissions", 7012,
log.log.AutosubmitCritical:
[ERROR] Trace: can only concatenate str (not "bytes") to str
[CRITICAL] Couldn't clean this experiment, check if you have the correct permissions [eCode=7012]
More info at https://autosubmit.readthedocs.io/en/master/troubleshooting/error-codes.html
Steps to reproduce
$ autosubmit expid \
--HPC "local" \
--description "Autosubmit mHM test domains" \
--minimal_configuration \
--git_as_conf conf/bootstrap \
--git_repo https://github.com/kinow/auto-mhm-test-domains.git \
--git_branch master
$ autosubmit create a00m
$ autosubmit clean --project a00m
What is the current bug behavior?
(autosubmit4) bdepaula@bsces107921:~/Development/python/workspace/autosubmit$ autosubmit clean --project a00m
Autosubmit is running with 4.0.0b
Checking configuration files...
Expdef config file is correct
Platforms sections: OK
Jobs sections OK
Autosubmit general sections OK
Configuration files OK
Registering commit SHA...
Traceback (most recent call last):
File "/home/bdepaula/Development/python/workspace/autosubmit/autosubmit/autosubmit.py", line 2681, in clean
autosubmit_config.set_git_project_commit(autosubmit_config)
File "/home/bdepaula/mambaforge/envs/autosubmit4/lib/python3.10/site-packages/autosubmitconfigparser/config/configcommon.py", line 1740, in set_git_project_commit
Log.debug("Project branch is: " + project_branch)
TypeError: can only concatenate str (not "bytes") to str
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/bdepaula/Development/python/workspace/autosubmit/bin/autosubmit", line 36, in main
Autosubmit.parse_args()
File "/home/bdepaula/Development/python/workspace/autosubmit/autosubmit/autosubmit.py", line 653, in parse_args
return Autosubmit.clean(args.expid, args.project, args.plot, args.stats)
File "/home/bdepaula/Development/python/workspace/autosubmit/autosubmit/autosubmit.py", line 2697, in clean
raise AutosubmitCritical("Couldn't clean this experiment, check if you have the correct permissions", 7012,
log.log.AutosubmitCritical:
[ERROR] Trace: can only concatenate str (not "bytes") to str
[CRITICAL] Couldn't clean this experiment, check if you have the correct permissions [eCode=7012]
What is the expected correct behavior?
(What you should see instead)
Relevant logs and/or screenshots(if applicable)
(Paste any relevant logs - use code blocks (```) to format console output, logs, and code, as it's very hard to read otherwise.)
Any other relevant information(if applicable)
()