PythonDialogBug - Is this a FreeBSD thing or across platforms


#1

root@gw:/usr/ports/devel/py-setuptools # letsencrypt --server lists.kictanet.or.ke certonly
An unexpected error occurred:
PythonDialogBug
Please see the logfile ‘letsencrypt.log’ for more details.
root@gw:/usr/ports/devel/py-setuptools # less letsencrypt.log
Traceback (most recent call last):
File “/usr/local/bin/letsencrypt”, line 9, in
load_entry_point(‘letsencrypt==0.1.0’, ‘console_scripts’, ‘letsencrypt’)()
File “/usr/local/lib/python2.7/site-packages/letsencrypt/cli.py”, line 1251, in main
setup_logging(args, _cli_log_handler, logfile=‘letsencrypt.log’)
File “/usr/local/lib/python2.7/site-packages/letsencrypt/cli.py”, line 1165, in setup_logging
cli_handler = cli_handler_factory(args, level, fmt)
File “/usr/local/lib/python2.7/site-packages/letsencrypt/cli.py”, line 1152, in _cli_log_handler
handler = log.DialogHandler()
File “/usr/local/lib/python2.7/site-packages/letsencrypt/log.py”, line 29, in init
self.d = dialog.Dialog() if d is None else d
File “/usr/local/lib/python2.7/site-packages/dialog.py”, line 1038, in init
self.backend_version())
File “/usr/local/lib/python2.7/site-packages/dialog.py”, line 1817, in backend_version
use_persistent_args=False)
File “/usr/local/lib/python2.7/site-packages/dialog.py”, line 1541, in _perform
args_file)
File “/usr/local/lib/python2.7/site-packages/dialog.py”, line 1502, in _handle_program_exit
child_output_rfd)
File “/usr/local/lib/python2.7/site-packages/dialog.py”, line 1479, in _wait_for_program_termination
ll_exit_code))
PythonDialogBug

  1. How do I solve this issue of PythonDialogBug?

#2

Same here…

Traceback (most recent call last): File "/usr/local/bin/letsencrypt", line 9, in <module> load_entry_point('letsencrypt==0.3.0', 'console_scripts', 'letsencrypt')() File "/usr/local/lib/python2.7/site-packages/letsencrypt/cli.py", line 1420, in main setup_logging(args, _cli_log_handler, logfile='letsencrypt.log') File "/usr/local/lib/python2.7/site-packages/letsencrypt/cli.py", line 1334, in setup_logging cli_handler = cli_handler_factory(args, level, fmt) File "/usr/local/lib/python2.7/site-packages/letsencrypt/cli.py", line 1321, in _cli_log_handler handler = log.DialogHandler() File "/usr/local/lib/python2.7/site-packages/letsencrypt/log.py", line 29, in __init__ self.d = dialog.Dialog() if d is None else d File "/usr/local/lib/python2.7/site-packages/dialog.py", line 1038, in __init__ self.backend_version()) File "/usr/local/lib/python2.7/site-packages/dialog.py", line 1817, in backend_version use_persistent_args=False) File "/usr/local/lib/python2.7/site-packages/dialog.py", line 1541, in _perform args_file) File "/usr/local/lib/python2.7/site-packages/dialog.py", line 1502, in _handle_program_exit child_output_rfd) File "/usr/local/lib/python2.7/site-packages/dialog.py", line 1479, in _wait_for_program_termination ll_exit_code)) PythonDialogBug


#3

Is this when using the FreeBSD port, /usr/ports/security/py-letsencrypt/ ?

If not it might be worth a try. I’m using it on FreeBSD without any issues. It’s only at version 0.3.0 though…


#4

Yes, I’ve installed /usr/ports/security/py-letsencrypt/ and looks like it’s doesn’t works…


#5

New version, same bug:
Traceback (most recent call last): File "/usr/local/bin/letsencrypt", line 9, in <module> load_entry_point('letsencrypt==0.4.1', 'console_scripts', 'letsencrypt')() File "/usr/local/lib/python2.7/site-packages/letsencrypt/cli.py", line 1960, in main setup_logging(config, _cli_log_handler, logfile='letsencrypt.log') File "/usr/local/lib/python2.7/site-packages/letsencrypt/cli.py", line 1874, in setup_logging cli_handler = cli_handler_factory(config, level, fmt) File "/usr/local/lib/python2.7/site-packages/letsencrypt/cli.py", line 1861, in _cli_log_handler handler = log.DialogHandler() File "/usr/local/lib/python2.7/site-packages/letsencrypt/log.py", line 29, in __init__ self.d = dialog.Dialog() if d is None else d File "/usr/local/lib/python2.7/site-packages/dialog.py", line 1038, in __init__ self.backend_version()) File "/usr/local/lib/python2.7/site-packages/dialog.py", line 1817, in backend_version use_persistent_args=False) File "/usr/local/lib/python2.7/site-packages/dialog.py", line 1541, in _perform args_file) File "/usr/local/lib/python2.7/site-packages/dialog.py", line 1502, in _handle_program_exit child_output_rfd) File "/usr/local/lib/python2.7/site-packages/dialog.py", line 1479, in _wait_for_program_termination ll_exit_code)) PythonDialogBug


#6

I’ve had very old version of dialog:
dialog version 0.3, by Savio Lam (lam836@cs.cuhk.hk). patched to version 0.4 by Stuart Herbert (S.Herbert@shef.ac.uk)
So I’ve update it:
wget http://invisible-island.net/datafiles/release/dialog.tar.gz tar zxf dialog.tar.gz cd dialog-1.3-20160209/ ./configure make install clean rehash mv /usr/bin/dialog /usr/bin/dialog.old && ln -s /usr/local/bin/dialog /usr/bin/dialog
New version of the dialog:
Version: 1.3-20160209
The problem solved!