Skip to content
This repository has been archived by the owner on Nov 8, 2019. It is now read-only.

关于issue.md内对某条error log的描述 #31

Open
marcong95 opened this issue Aug 24, 2019 · 3 comments
Open

关于issue.md内对某条error log的描述 #31

marcong95 opened this issue Aug 24, 2019 · 3 comments

Comments

@marcong95
Copy link

issue.md内有一条这样的描述'

[error] 2019-08-03 16:26:47 INFO util.py:85 loading libcrypto from libcrypto.so.1.0.0

sudo apt-get install libssl-dev
sudo apt-get install libsodium-dev
以上两条命令是为了解决软件报错提示缺少libcrypto.so这个库,但实际能否解决并未能验证

[error] 2019-06-11 22:46:25 INFO util.py:85 loading libsodium from libsodium.so.23

sudo apt install libsodium libsodium-dev

我也出现了这个问题,我翻了下util.py这个文件,可能由于版本问题,我是在94行,找到了这样的一段代码

    for path in paths:
        try:
            lib = CDLL(path)
            if hasattr(lib, search_symbol):
                logging.info('loading %s from %s', library_name, path)
                return lib
            else:
                logging.warn('can\'t find symbol %s in %s', search_symbol,
                             path)
        except Exception:
            if path == paths[-1]:
                raise

感觉这个log只不过是util.py找到了对应的so文件的info输出,但是由于某些原因,被electron-ssr转发的时候记录成error,而且下面也有对应的error级别的log。所以这个应该不是值得在意的输出

虽然如此,我也是由于迷之原因连不上这个代理。Firefox报

An error occurred during a connection to www.reddit.com. PR_END_OF_FILE_ERROR

The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
Please contact the website owners to inform them of this problem.
@qingshuisiyuan
Copy link
Owner

非常感谢您所提出的问题,再我仔细查阅后,发现确实是electron-ssr把util.py中的寻找so库文件的信息当成了error。似乎这段代码在寻找相关加密协议库文件,在大多Linux系统中,这是默认安装了的。

根据您的Firefox报错信息来看,简单猜测几点,待您验证:
您的电脑本地时间不对,无法与reddit.com建立正确的ssl链接。
您的Firefox只使用了本地127.0.0.1的http代理,本地https代理并没有启用。
系统中缺少组件,如openssl,libsodium。

建议您在系统设置中参照Ubuntu.md进行相关设置,或在Firefox网络设置进行设置。

期待您的跟帖回复,我将尽力解决您的问题。

@qingshuisiyuan
Copy link
Owner

对了,我建议您使用electron-ssr所下载的python-ssr版本来运行软件。

@AiWangZhenPing
Copy link

非常感谢您所提出的问题,再我仔细查阅后,发现确实是electron-ssr把util.py中的寻找so库文件的信息当成了error。似乎这段代码在寻找相关加密协议库文件,在大多Linux系统中,这是默认安装了的。

根据您的Firefox报错信息来看,简单猜测几点,待您验证:
您的电脑本地时间不对,无法与reddit.com建立正确的ssl链接。
您的Firefox只使用了本地127.0.0.1的http代理,本地https代理并没有启用。
系统中缺少组件,如openssl,libsodium。

建议您在系统设置中参照Ubuntu.md进行相关设置,或在Firefox网络设置进行设置。

期待您的跟帖回复,我将尽力解决您的问题。

您好,请问现在面对这个“util.py:85 loading libcrypto from libcrypto.so.1.0.0”有没有解决办法?谢谢了

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

No branches or pull requests

3 participants