Skip to content

TypeError: 'type' object is not subscriptable #34

@maduzl

Description

@maduzl

Running the script as a --manual-auth-hook recently brought me an error:

Hook '--manual-auth-hook' for x reported error code 1
Hook '--manual-auth-hook' for x ran with error output:
 Traceback (most recent call last):
   File "/etc/letsencrypt/acme-dns-auth.py", line 4, in <module>
     import requests
   File "/snap/certbot/4557/lib/python3.12/site-packages/requests/__init__.py", line 43, in <module>
     import urllib3
   File "/snap/certbot/4557/lib/python3.12/site-packages/urllib3/__init__.py", line 14, in <module>
     from . import exceptions
   File "/snap/certbot/4557/lib/python3.12/site-packages/urllib3/exceptions.py", line 26, in <module>
     _TYPE_REDUCE_RESULT = tuple[typing.Callable[..., object], tuple[object, ...]]
 TypeError: 'type' object is not subscriptable
 Error in sys.excepthook:
 Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 72, in apport_excepthook
     from apport.fileutils import likely_packaged, get_recent_crashes
   File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>
     from apport.report import Report
   File "/usr/lib/python3/dist-packages/apport/report.py", line 32, in <module>
     import apport.fileutils
   File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 12, in <module>
     import os, glob, subprocess, os.path, time, pwd, sys, requests_unixsocket
   File "/usr/lib/python3/dist-packages/requests_unixsocket/__init__.py", line 1, in <module>
     import requests
   File "/snap/certbot/4557/lib/python3.12/site-packages/requests/__init__.py", line 43, in <module>
     import urllib3
   File "/snap/certbot/4557/lib/python3.12/site-packages/urllib3/__init__.py", line 14, in <module>
     from . import exceptions
   File "/snap/certbot/4557/lib/python3.12/site-packages/urllib3/exceptions.py", line 26, in <module>
     _TYPE_REDUCE_RESULT = tuple[typing.Callable[..., object], tuple[object, ...]]
 TypeError: 'type' object is not subscriptable

 Original exception was:
 Traceback (most recent call last):
   File "/etc/letsencrypt/acme-dns-auth.py", line 4, in <module>
     import requests
   File "/snap/certbot/4557/lib/python3.12/site-packages/requests/__init__.py", line 43, in <module>
     import urllib3
   File "/snap/certbot/4557/lib/python3.12/site-packages/urllib3/__init__.py", line 14, in <module>
     from . import exceptions
   File "/snap/certbot/4557/lib/python3.12/site-packages/urllib3/exceptions.py", line 26, in <module>
     _TYPE_REDUCE_RESULT = tuple[typing.Callable[..., object], tuple[object, ...]]
 TypeError: 'type' object is not subscriptable

Even renewing account/registration did not help. Changed to https://github.com/acme-dns/acme-dns-client?tab=readme-ov-file#acme-dns-client!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions