Bug#954650: AttributeError: module 'certbot.plugins.common' has no attribute 'TLSSNI01'

2020-03-29 Thread Damien Couroussé
On 24/03/2020 23:52, Harlan Lieberman-Berg wrote:
>> I could fix the issue by upgrading python3-certbot-apache to version
>> 1.1.0-1.
> Hi Damien,
> 
> Yes, these two versions are not fully compatible.  I didn't put in a
> version restriction because mixing packages from testing into a stable
> installation can result in breakage (such as you've ran into).  If you
> really want to do so, make sure that you pull not only the package
> from testing, but all the things that reverse-depend on it.  For
> certbot, the easiest way to do that is to specify that you want to
> install the leaf package from testing (python3-certbot-apache), rather
> than the middle package (certbot, or python3-certbot).  That should
> reliably upgrade certbot itself, if it's necessary to do so.
> 
> That said, I'll talk with upstream and see if I can add some level of
> version protection to keep it from happening in the future.

As a standard user, this is not the behavior that I would expect from
the package manager.  I can usually safely mix packages from stable,
testing and more thanks to a proper apt pinning configuration, and the
package manager tells me if I can upgrade a package e.g. from testing
without wrecking havoc my system.  But I understand your point of view
and the solution chosen.

Thank you for your feedback!

kind regards,



Bug#954650: AttributeError: module 'certbot.plugins.common' has no attribute 'TLSSNI01'

2020-03-24 Thread Harlan Lieberman-Berg
On Sun, Mar 22, 2020 at 5:51 AM Damien Couroussé
 wrote:
> I could fix the issue by upgrading python3-certbot-apache to version
> 1.1.0-1.

Hi Damien,

Yes, these two versions are not fully compatible.  I didn't put in a
version restriction because mixing packages from testing into a stable
installation can result in breakage (such as you've ran into).  If you
really want to do so, make sure that you pull not only the package
from testing, but all the things that reverse-depend on it.  For
certbot, the easiest way to do that is to specify that you want to
install the leaf package from testing (python3-certbot-apache), rather
than the middle package (certbot, or python3-certbot).  That should
reliably upgrade certbot itself, if it's necessary to do so.

That said, I'll talk with upstream and see if I can add some level of
version protection to keep it from happening in the future.

Thanks for your report!

-- 
Harlan Lieberman-Berg
~hlieberman



Bug#954650: AttributeError: module 'certbot.plugins.common' has no attribute 'TLSSNI01'

2020-03-22 Thread Damien Couroussé
Package: certbot
Version: 1.1.0-1
Severity: important

Dear Maintainer,


certbot reports the following error:

┌
│ (certbot)root@yadayada:~# certbot --help
│ An unexpected error occurred:
│ AttributeError: module 'certbot.plugins.common' has no attribute
'TLSSNI01'
│ Please see the logfile '/tmp/tmpbsljfl0i/log' for more details.
│ (certbot)root@yadayada:~# cat /tmp/tmpbsljfl0i/log
│ 2020-03-22 09:20:47,809:DEBUG:certbot._internal.log:Exiting abnormally:
│ Traceback (most recent call last):
│   File "/usr/bin/certbot", line 11, in 
│ load_entry_point('certbot==1.1.0', 'console_scripts', 'certbot')()
│   File "/usr/lib/python3/dist-packages/certbot/main.py", line 15, in main
│ return internal_main.main(cli_args)
│   File "/usr/lib/python3/dist-packages/certbot/_internal/main.py",
line 1317, in main
│ plugins = plugins_disco.PluginsRegistry.find_all()
│   File
"/usr/lib/python3/dist-packages/certbot/_internal/plugins/disco.py",
line 206, in find_all
│ plugin_ep = PluginEntryPoint(entry_point)
│   File
"/usr/lib/python3/dist-packages/certbot/_internal/plugins/disco.py",
line 48, in __init__
│ self.plugin_cls = entry_point.load()
│   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py",
line 2411, in load
│ return self.resolve()
│   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py",
line 2417, in resolve
│ module = __import__(self.module_name, fromlist=['__name__'], level=0)
│   File "/usr/lib/python3/dist-packages/certbot_apache/entrypoint.py",
line 4, in 
│ from certbot_apache import configurator
│   File
"/usr/lib/python3/dist-packages/certbot_apache/configurator.py", line
32, in 
│ from certbot_apache import http_01
│   File "/usr/lib/python3/dist-packages/certbot_apache/http_01.py",
line 13, in 
│ class ApacheHttp01(common.TLSSNI01):
│   File "/usr/lib/python3/dist-packages/certbot/plugins/common.py",
line 444, in __getattr__
│ return getattr(self._module, attr)
│ AttributeError: module 'certbot.plugins.common' has no attribute
'TLSSNI01'
│ 2020-03-22 09:20:47,809:ERROR:certbot._internal.log:An unexpected
error occurred:
└

You can notice that module python3-certbot-apache is also installed, but
with a lower version number.

I could fix the issue by upgrading python3-certbot-apache to version
1.1.0-1.


Thank you for your work on packaging this tool!



-- System Information:
Debian Release: 10.3
  APT prefers stable
  APT policy: (990, 'stable'), (380, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-8-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages certbot depends on:
ii  python3  3.7.3-1
ii  python3-certbot  1.1.0-1

certbot recommends no packages.

Versions of packages certbot suggests:
pn  python-certbot-doc  
ii  python3-certbot-apache  0.31.0-1
pn  python3-certbot-nginx   

-- no debconf information