Python errors using certbot: __call__() takes exactly 2 arguments (1 given)

Hi everyone.

I get an error message when trying to run the “certbot” command with any arguments:
[root@xyz ~]# certbot
An unexpected error occurred:
TypeError: call() takes exactly 2 arguments (1 given)
Please see the logfile ‘certbot.log’ for more details.

Contents of “certbot.log”:
Traceback (most recent call last):
File “/usr/bin/certbot”, line 9, in
load_entry_point(‘certbot==0.8.1’, ‘console_scripts’, ‘certbot’)()
File “/usr/lib/python2.7/site-packages/certbot/main.py”, line 700, in main
plugins = plugins_disco.PluginsRegistry.find_all()
File “/usr/lib/python2.7/site-packages/certbot/plugins/disco.py”, line 174, in find_all
plugin_ep = PluginEntryPoint(entry_point)
File “/usr/lib/python2.7/site-packages/certbot/plugins/disco.py”, line 33, in init
self.plugin_cls = entry_point.load()
File “/usr/lib/python2.7/site-packages/pkg_resources/init.py”, line 2229, in load
return self.resolve()
File “/usr/lib/python2.7/site-packages/pkg_resources/init.py”, line 2235, in resolve
module = import(self.module_name, fromlist=[‘name’], level=0)
File “/usr/lib/python2.7/site-packages/certbot_nginx/configurator.py”, line 26, in
from certbot_nginx import tls_sni_01
File “/usr/lib/python2.7/site-packages/certbot_nginx/tls_sni_01.py”, line 11, in
from certbot_nginx import nginxparser
File “/usr/lib/python2.7/site-packages/certbot_nginx/nginxparser.py”, line 11, in
class RawNginxParser(object):
File “/usr/lib/python2.7/site-packages/certbot_nginx/nginxparser.py”, line 29, in RawNginxParser
comment = Literal(’#’) + restOfLine()
TypeError: call() takes exactly 2 arguments (1 given)

Environment: CentOS 7.x
Installation method: yum installed via EPEL:
Installed Packages
certbot.noarch 0.8.1-2.el7 @epel
python --version
Python 2.7.5

In fact, all invocations seem to create this error message. “certbot --help”, “certbot renew”, etc.

Is this a well-known problem with a solution?

Thanks folks!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.