Bruuuuuuce / PKUAutoSubmit

PKU一键出入校备案小工具
Apache License 2.0
177 stars 272 forks source link

能否使用多个配置文件进行填报 #14

Closed Vittorio-Veneto-www closed 3 years ago

Vittorio-Veneto-www commented 3 years ago

可以几个人一起填,大概

Bruuuuuuce commented 3 years ago

好的,提上日程

Vittorio-Veneto-www commented 3 years ago

还发现了一个小bug,OSError: [Errno 8] Exec format error https://stackoverflow.com/questions/27606653/oserror-errno-8-exec-format-error 这里面似乎说了解决方案 PS 这是在服务器上运行的结果,并且我没有root权限

Traceback (most recent call last): File "main.py", line 29, in executable_path='./phantomjs/bin/phantomjs') File "/local/lib/python3.7/site-packages/selenium/webdriver/phantomjs/webdriver.py", line 56, in init self.service.start() File "/local/lib/python3.7/site-packages/selenium/webdriver/common/service.py", line 76, in start stdin=PIPE) File "/local/lib/python3.7/subprocess.py", line 800, in init restore_signals, start_new_session) File "/local/lib/python3.7/subprocess.py", line 1551, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) OSError: [Errno 8] Exec format error: './phantomjs/bin/phantomjs'

Bruuuuuuce commented 3 years ago

请确定服务器的系统,说到了root权限很可能是Linux系统,暂时还未适配Linux,其实也换一个PhantomJS版本就行,会在之后考虑适配

Bruuuuuuce commented 3 years ago

当然去官网下一个Linux版的然后稍微改一改main.py的调用部分就可以,也可以等我更新,官网:https://phantomjs.org/download.html

Vittorio-Veneto-www commented 3 years ago

实话说我配置了挺久才弄懂究竟是什么意思,不仅要下phantomjs还要改个名 能否将linux版的phantomjs也置于项目内,或者为linux提供一个单独的发行版

Bruuuuuuce commented 3 years ago

在10.21已发布Linux对应的release

Bruuuuuuce commented 3 years ago

可以几个人一起填,大概

已支持多人填报