Open aflaxman opened 10 years ago
This error occurs when Ghost.py is running against any PyQt or PySide that was compiled in the absence (or ignorance) of the OpenSSL headers and libraries. Something like the following maneuver can at least allow Ghost.py to start up in such a case, and load non-SSL pages successfully:
try:
self.manager.sslErrors.connect(self._on_manager_ssl_errors)
except AttributeError:
pass
Thanks to such a maneuver, I have gotten Ghost.py working this evening and might therefore be able to include it in this revised copy of my Python Network Programming books. Is there any chance this change can make it into Ghost.py itself so that the example will also work for my readers, if their PyQt or PySide lacks SSL support?
(And: thanks for writing Ghost.py!)
Is it PyQT or QT itself that lacks the OpenSSL support?
(Am answering the Anaconda-related question over at https://github.com/ContinuumIO/anaconda-issues/issues/140 to keep this issue focused on whether Ghost.py can be improved so as to survive qt libraries that lack SSL support)
I'm trying to use Ghost.py with the anaconda python distribution, and running into an issue with the
self.manager.sslErrors.connect
call. Do you have any ideas for a fix or work-around?Here is the full error:
This is using pyside 1.2.1:
Maybe @asmeurer or someone else from @ContinuumIO will know, so I've post a similar question in the anaconda issue tracker here as well.