Comments (7)
@kimjungwha 测试后重写了sh脚本
支持debian,ubuntu,centos,redhat
在ubuntu和centos测试成功
使用方法:
sudo chmod +x autocx.sh
sudo ./autocx.sh
该issue将保持open
欢迎测试与反馈
感谢 @chenaidairong @kimjungwha👍👍👍
from autochaoxing.
docker在国内服务器的配置速度太慢了 是镜像服务器的问题吗 用的一键脚本
from autochaoxing.
Traceback (most recent call last):
File "./src/login_courses.py", line 444, in
process.work()
File "./src/login_courses.py", line 228, in work
courses_lt = self._login()
File "./src/login_courses.py", line 185, in _login
p=Popen(['./src/viu', 'login_vercode.png'])
File "/usr/lib/python3.6/subprocess.py", line 729, in init
restore_signals, start_new_session)
File "/usr/lib/python3.6/subprocess.py", line 1364, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: './src/viu'
docker容器内报错
from autochaoxing.
自动配置脚本的具体情况我不太清楚,需要 @kimjungwha
根据你所提供的信息,目前你应该是已经配好了docker,但是在容器内执行脚本的时候出现了权限问题,你可以试试这两个办法:
- 查看并更改
./src/viu
的权限 - 执行脚本时加上
sudo
from autochaoxing.
docker在国内服务器的配置速度太慢了 是镜像服务器的问题吗 用的一键脚本
使用脚本安装软件时速度慢,请更换国内的软件源,docker 拉取镜像时速度慢,可以更换阿里云的镜像加速器
from autochaoxing.
Traceback (most recent call last):
File "./src/login_courses.py", line 444, in
process.work()
File "./src/login_courses.py", line 228, in work
courses_lt = self._login()
File "./src/login_courses.py", line 185, in _login
p=Popen(['./src/viu', 'login_vercode.png'])
File "/usr/lib/python3.6/subprocess.py", line 729, in init
restore_signals, start_new_session)
File "/usr/lib/python3.6/subprocess.py", line 1364, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: './src/viu'docker容器内报错
我复现了这个报错,在使用学号登录时,调用 viu 填写验证码时的报错,第一次运行 viu 时提示无权限,授权后提示找不到文件,很遗憾我还没有解决问题。
- 您可以使用例如
cacaview
这样的同类软件,vim src/login_courses.py
,将里面的./src/viu
替换成您使用的软件 - 也可以使用手机号登录(推荐)
from autochaoxing.
Welcome to Huawei Cloud Service
Last login: Tue Apr 20 08:54:33 2021 from 223.104.192.190
[root@hecs-x-medium-2-win-20210416095943 ~]# docker exec -it autocx sh
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
~ # vim logindata_phone.txt
~ # python3 autocx.py
Set mode: single rate: 1.00 noans_num:5
Welcome To Multi-Autocx!
check your phonenum: 19819068211
check your password: 19772001wqwq
Traceback (most recent call last):
File "./src/login_courses.py", line 447, in
process.work()
File "./src/login_courses.py", line 236, in work
with StartDriver() as chrome_driver:
File "/root/src/startdriver.py", line 13, in enter
self.driver=StartDriver.startchrome()
File "/root/src/startdriver.py", line 79, in startchrome
return webdriver.Chrome(options=chrome_options)
File "/usr/lib/python3.6/site-packages/selenium/webdriver/chrome/webdriver.py", line 81, in init
desired_capabilities=desired_capabilities)
File "/usr/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 157, in init
self.start_session(capabilities, browser_profile)
File "/usr/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/usr/lib/python3.6/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: crashed
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location /usr/lib/chromium/chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
(Driver info: chromedriver=2.38 (f91d32489882be7df38da3422a19713bfd113fa5),platform=Linux 4.18.0-240.10.1.el8_3.x86_64 x86_64)
请问出现如上报错应该如何处理
from autochaoxing.
Related Issues (20)
- 依赖安装 HOT 1
- 想请问下这个是运行完成了吗? HOT 10
- 大佬有没有可能自定义搜题api HOT 2
- 不能运行 错误如下 HOT 1
- 一直卡在章节测验 HOT 5
- 能否选择从某个课程的某个章节开始刷 HOT 2
- termux运行autocx HOT 2
- 使用falsh的课程无法正常刷课 HOT 1
- Docker下autocx.py无法正常运行 HOT 3
- autocx.py HOT 10
- login failed, please check your login_info HOT 3
- SSL错误 HOT 3
- 自动答题只能答单选题,多选题只能选一个选一项 HOT 1
- 无法正常获取未完成章节 HOT 3
- cannot create temp dir for user data dir HOT 2
- 关于docker版本运行 HOT 2
- 请问docker运行后只提醒Now you can exit this program ! Good luck. 而不刷课怎么办 HOT 1
- 提个建议 HOT 1
- Singlecourse.py修正 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autochaoxing.