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

第21组的实验2遇到的问题和尝试的解决方法 #51

Open
wovp opened this issue Oct 30, 2023 · 0 comments
Open

第21组的实验2遇到的问题和尝试的解决方法 #51

wovp opened this issue Oct 30, 2023 · 0 comments

Comments

@wovp
Copy link

wovp commented Oct 30, 2023

1.遇到这个类型问题

7(LKSL8SMQB D{U~5C{Z ZA

根据 https://github.com/Wanghui-Huang/CQU_bigdata/issues/41 这个问题,我们更新了python版本为3.7.2

然后发现需要改变python的路径,并且在远程服务器重启后,~/.bashrc 文件需要重新source 才能生效

  1. 更新python之后,提示urllib3出错,OpenSSL版本过低
    image

我们是选择降低urllib3
注:要改变pip,我们在做的过程中改成了pip3.7,并且有出现 只能使用绝对路径调用pip3.7才能调用的问题
pip install urllib3==1.26.15

3.跟着实验指导书后,下载的google-chrome-static不能被使用,所以自行下载了chrome.zip,参考群里的图片
image

记得改变环境变量:
export PATH=/opt/google/chrome/:$PATH

4.安装完之后,会缺少很多依赖
`chrome --version

如果启动失败,一般是报没有对应的库,可尝试安装以下库:

error while loading shared libraries: libatk-bridge-2.0.so.0: ==>yum install at-spi2-atk
error while loading shared libraries: libXss.so.1: ==>yum install libXScrnSaver
“chrome: error while loading shared libraries: libgtk-3.so.0”。 ==>yum install gtk3 -y
error while loading shared libraries: libgdk_pixbuf-2.0.so.0: ==> yum install gdk-pixbuf2

如果找不到依赖库:libXss.so.1,可通过sudo yum install libXss.so.1下载

如果找不到gtk_widget_get_scale_factor,可通过sudo yum install gtk3-devel.x86_64下载`

5.最后,修改snapshot_selenium的源码
具体参考助教在群里发的图片
ZN_Y0NUOLMN9T7T8CFEAOYX

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