Submitting to SandBox from commandline

Is it possible to submit my submission.tar.gz file to SandBox from the command line?

Yes, it’s possible after installing the hepdata-cli package. See here.

I tried using hepdata-cli for submission. I encountered the following error:

RuntimeError: Click will abort further execution because Python 3 was configured to use ASCII as encoding for the environment. Consult https://click.palletsprojects.com/en/7.x/python3/ for mitigation steps.

This system lists a couple of UTF-8 supporting locales that
you can pick from.  The following suitable locales were
discovered: aa_DJ.utf8, aa_ER.utf8, aa_ET.utf8, ...

I fixed by doing:

export LC_ALL=de_DE.utf-8
export LANG=de_DE.utf-8

Thanks for the report. I haven’t seen this problem before. On my laptop (macOS) and on lxplus.cern.ch the LANG environment variable is set to en_GB.UTF-8. Using Python 3.6 on my laptop I can reproduce the error if LANG is temporarily unset. The error will not appear in Python 3.7 or later as explained in the Click documentation. I’ve now mentioned this error in the user installation docs for the hepdata-cli package, in case other users experience the same problem.