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
Something is causing the default column width to return -1 when subcommands are run via docker entrypoint. This bug does not happen when the command is run normally via the shell.
Traceback:
5/7/2019 4:07:25 PMTraceback (most recent call last):
5/7/2019 4:07:25 PM File "/usr/local/bin/calc_ingest", line 10, in <module>
5/7/2019 4:07:25 PM sys.exit(Main.console_script())
5/7/2019 4:07:25 PM File "/usr/local/lib/python3.7/site-packages/pytool/cmd.py", line 315, in console_script
5/7/2019 4:07:25 PM cls().start(sys.argv[1:])
5/7/2019 4:07:25 PM File "/usr/local/lib/python3.7/site-packages/pytool/cmd.py", line 138, in __init__
5/7/2019 4:07:25 PM self.set_opts()
5/7/2019 4:07:25 PM File "/usr/src/app/calc_ingest/__main__.py", line 24, in set_opts
5/7/2019 4:07:25 PM self.subcommand('run', help="Run the service")
5/7/2019 4:07:25 PM File "/usr/local/lib/python3.7/site-packages/pytool/cmd.py", line 284, in subcommand
5/7/2019 4:07:25 PM kwargs['description'] = pytool.text.wrap(kwargs['description'])
5/7/2019 4:07:25 PM File "/usr/local/lib/python3.7/site-packages/pytool/text.py", line 124, in wrap
5/7/2019 4:07:25 PM line = wrapper.fill(line)
5/7/2019 4:07:25 PM File "/usr/local/lib/python3.7/textwrap.py", line 363, in fill
5/7/2019 4:07:25 PM return "\n".join(self.wrap(text))
5/7/2019 4:07:25 PM File "/usr/local/lib/python3.7/textwrap.py", line 354, in wrap
5/7/2019 4:07:25 PM return self._wrap_chunks(chunks)
5/7/2019 4:07:25 PM File "/usr/local/lib/python3.7/textwrap.py", line 248, in _wrap_chunks
5/7/2019 4:07:25 PM raise ValueError("invalid width %r (must be > 0)" % self.width)
5/7/2019 4:07:25 PMValueError: invalid width -1 (must be > 0)
The text was updated successfully, but these errors were encountered:
I'm guessing this is due to Docker setting a strange environment with COLUMNS=-1 since Python pulls that value out of there, rather than using detection.
Something is causing the default column width to return -1 when subcommands are run via docker entrypoint. This bug does not happen when the command is run normally via the shell.
Traceback:
The text was updated successfully, but these errors were encountered: