Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'ssl' has no attribute 'wrap_socket' #49

Open
Spaatz1402 opened this issue Apr 29, 2023 · 0 comments
Open

AttributeError: module 'ssl' has no attribute 'wrap_socket' #49

Spaatz1402 opened this issue Apr 29, 2023 · 0 comments

Comments

@Spaatz1402
Copy link

To help with identifying and fixing issues, please include as much information as possible, including:

LazyLibrarian version number: 2649c66a603c8851b666ea804c280a7c83739e4c

Operating system used: Windows 11

Interface in use: bookstrap

Which api: Goodreads

Source of your LazyLibrarian installation: https://gitlab.com/LazyLibrarian/LazyLibrarian

Relevant debug log with api keys and any passwords redacted:

C:\LazyLibrarian>lazylibrarian.py
Traceback (most recent call last):
  File "C:\LazyLibrarian\LazyLibrarian.py", line 25, in <module>
    from lazylibrarian import startup, webStart
  File "C:\LazyLibrarian\lazylibrarian\startup.py", line 36, in <module>
    from lazylibrarian import database, versioncheck
  File "C:\LazyLibrarian\lazylibrarian\versioncheck.py", line 27, in <module>
    from lazylibrarian.common import get_user_agent, proxy_list, docker
  File "C:\LazyLibrarian\lazylibrarian\common.py", line 33, in <module>
    import httplib2
  File "C:\LazyLibrarian\httplib2\__init__.py", line 52, in <module>
    _ssl_wrap_socket = ssl.wrap_socket
                       ^^^^^^^^^^^^^^^
AttributeError: module 'ssl' has no attribute 'wrap_socket'

Please note - usually a single line of log is not sufficient. The lines just before the error occurs can give useful context and greatly assist with debugging.

There is a built-in debug log creator on the logs page which makes it easy to provide this information

Can't start LazyLibrarian with this error thus logs don't get generated. Windows service immediately goes to pause and refuses to start.

If I redact this line from: C:\LazyLibrarian\httplib2 I can get LazyLibrarian
to start.

import ssl
_ssl_wrap_socket = ssl.wrap_socket

Also, with these lines redacted, I should note an error occurring the past two days: my config file keeps getting deleted. Like totally disappears and knocks me offline. I replaced the config file line by line after recovering but it keeps getting deleted. No idea why.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant