Skip to main content

View Post [edit]

Poster: amidabutsu677 Date: Feb 3, 2024 11:19pm
Forum: forums Subject: Re: Error 400: 'encrypted' file

Oh, and another.

<?xml version='1.0' encoding='UTF-8'?>
BadContentUploaded content is unacceptable.Traceback (most recent call last):
File "/petabox/sw/ias3/deploy/check_file.py", line 123, in check_encrypted_archive
t = subprocess.check_output(command).decode("utf-8")
File "/usr/lib/python3.8/subprocess.py", line 415, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.8/subprocess.py", line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['7z', 'l', '-slt', '-p', '', '--', '/1/incoming/REMOTE_SUBMIT/s3-ecc5db21-1555-4164-afcc-9743834f6fa4-[file address]/__ia_spool/[file name]']' returned non-zero exit status 2.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/petabox/sw/ias3/deploy/check_file.py", line 229, in main
problems = do_checks(name, path)
File "/petabox/sw/ias3/deploy/check_file.py", line 187, in do_checks
r = check(name, path)
File "/petabox/sw/ias3/deploy/check_file.py", line 125, in check_encrypted_archive
if 'Can not open encrypted archive' in e.output:
TypeError: a bytes-like object is required, not 'str'

cc1e4d3f-5ec7-43b1-ab07-a37d46521f67

Let me say it loud and clear:
I. DON'T. KNOW. PYTHON.
Can anyone translate it to human language?
What's with this "str" and "encrypted"?
Seriously, nobody here can help?