[英]Pyside: Unresolved Functions error messages on windows7
I tried to run a simple program that is written in python with PySide module to take screenshots of the websites. 我试图运行一个用PySide模块用python编写的简单程序来截取网站的屏幕截图。 I'm running this program on a Windows 7 with OpenSSL(already installed).
我正在具有OpenSSL(已安装)的Windows 7上运行此程序。
I got the following errors: 我收到以下错误:
QSslSocket: cannot call unresolved function SSLv3_client_method
QSslSocket: cannot call unresolved function SSL_CTX_new
QSslSocket: cannot call unresolved function SSL_library_init
QSslSocket: cannot call unresolved function ERR_get_error
I by no means take credit for this solution as I did a simple google search and came across http://codeblog.vurdalakov.net/2009/11/solution-qsslsocket-cannot-call.html 我绝不相信此解决方案,因为我做了一个简单的Google搜索并遇到了http://codeblog.vurdalakov.net/2009/11/solution-qsslsocket-cannot-call.html
I believe the errors are a little different due to changes within the libraries. 我相信由于库中的更改,错误会有所不同。
Problem 问题
When you try to open a HTTPS URL with QSslSocket
or QNetworkAccessManager
class, you get the following errors: 当您尝试使用
QSslSocket
或QNetworkAccessManager
类打开HTTPS URL时, QSslSocket
以下错误:
QSslSocket: cannot call unresolved function SSLv3_client_method
QSslSocket: cannot call unresolved function SSL_CTX_new
QSslSocket: cannot call unresolved function ERR_get_error
QSslSocket: cannot call unresolved function ERR_error_string
Solution 解
You need to install OpenSSL Win32 or Win64 binaries. 您需要安装OpenSSL Win32或Win64二进制文件。
libeay32.dll
and ssleay32.dll
from the \\bin folder to the same place where your QtNetwork4.dll
or QtNetworkd4.dll
is located. libeay32.dll
和ssleay32.dll
复制到QtNetwork4.dll
或QtNetworkd4.dll
所在的位置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.