Comments (11)
Traceback (most recent call last):
File "main.py", line 22, in
os.system(command=SYSTEM().Clear)
TypeError: system() got an unexpected keyword argument 'command'
你是Py3?
from learning-power.
追溯(最近一次呼叫最近):
os.system中的文件“ main.py”,第22行,
system。(command = SYSTEM()。Clear)
TypeError:system()得到了意外的关键字参数“ command”你是Py3?
是的是的,我用的py3 mac本。。。
from learning-power.
➜ learning-power git:(master) ✗ python main.py
Traceback (most recent call last):
File "main.py", line 11, in
from inside.Config.System import SYSTEM
File "/Users/xuan/Demo/youyisi/xuexi/learning-power/inside/Config/System.py", line 30
def Supports(self) -> FrozenSet:
^
SyntaxError: invalid syntax
直接运行的话,就是这个样子。。
from learning-power.
哎,我放弃了, mac毛病太多,我开虚拟机win了。。难受
from learning-power.
from learning-power.
我用的新版本的11.1了
from learning-power.
是否静音(Y/n):y
是否显示自动化过程(y/N):n
是否持久化登录(Y/n):y
Traceback (most recent call last):
File "main.py", line 27, in
network.Init(driver=driver.Task)
File "C:\Users\xuan\Desktop\learning-power-master\inside\Driver\Driver_Manage.py", line 86, in Task
return DRIVER_INIT().Task_Driver
File "C:\Users\xuan\Desktop\learning-power-master\inside\Driver\Driver_Init.py", line 93, in Task_Driver
self.__instances['Task'] = Chrome(
File "C:\Users\xuan\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 76, in init
RemoteWebDriver.init(
File "C:\Users\xuan\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 157, in init
self.start_session(capabilities, browser_profile)
File "C:\Users\xuan\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "C:\Users\xuan\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Users\xuan\AppData\Local\Programs\Python\Python38\lib\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: cannot find Chrome binary
(Driver info: chromedriver=73.0.3683.68 (47787ec04b6e38e22703e856e101e840b65afe72),platform=Windows NT 10.0.18363 x86_64)
C:\Users\xuan\Desktop\learning-power-master>
大佬我傻了。。。。
win也不行。。。天啊
from learning-power.
是否静音(Y/n):y
是否显示自动化过程(y/N):n
是否持久化登录(Y/n):y
Traceback (most recent call last):
File "main.py", line 27, in
network.Init(driver=driver.Task)
File "C:\Users\xuan\Desktop\learning-power-master\inside\Driver\Driver_Manage.py", line 86, in Task
return DRIVER_INIT().Task_Driver
File "C:\Users\xuan\Desktop\learning-power-master\inside\Driver\Driver_Init.py", line 93, in Task_Driver
self.__instances['Task'] = Chrome(
File "C:\Users\xuan\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 76, in init
RemoteWebDriver.init(
File "C:\Users\xuan\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 157, in init
self.start_session(capabilities, browser_profile)
File "C:\Users\xuan\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "C:\Users\xuan\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Users\xuan\AppData\Local\Programs\Python\Python38\lib\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: cannot find Chrome binary
(Driver info: chromedriver=73.0.3683.68 (47787ec04b6e38e22703e856e101e840b65afe72),platform=Windows NT 10.0.18363 x86_64)C:\Users\xuan\Desktop\learning-power-master>
大佬我傻了。。。。
win也不行。。。天啊
from learning-power.
是否静音(Y/n):y
是否显示自动化过程(y/N):n
是否持久化登录(Y/n):y
Traceback (most recent call last):
File "main.py", line 27, in
network.Init(driver=driver.Task)
File "C:\Users\xuan\Desktop\learning-power-master\inside\Driver\Driver_Manage.py", line 86, in Task
return DRIVER_INIT().Task_Driver
File "C:\Users\xuan\Desktop\learning-power-master\inside\Driver\Driver_Init.py", line 93, in Task_Driver
self.__instances['Task'] = Chrome(
File "C:\Users\xuan\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 76, in init
RemoteWebDriver.init(
File "C:\Users\xuan\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 157, in init
self.start_session(capabilities, browser_profile)
File "C:\Users\xuan\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "C:\Users\xuan\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Users\xuan\AppData\Local\Programs\Python\Python38\lib\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: cannot find Chrome binary
(Driver info: chromedriver=73.0.3683.68 (47787ec04b6e38e22703e856e101e840b65afe72),platform=Windows NT 10.0.18363 x86_64)
C:\Users\xuan\Desktop\learning-power-master>
大佬我傻了。。。。
win也不行。。。天啊
导致驱动下载的版本不对
from learning-power.
➜ learning-power git:(master) ✗ python main.py
Traceback (most recent call last):
File "main.py", line 11, in
from inside.Config.System import SYSTEM
File "/Users/xuan/Demo/youyisi/xuexi/learning-power/inside/Config/System.py", line 30
def Supports(self) -> FrozenSet: ^
SyntaxError: invalid syntax
直接运行的话,就是这个样子。。
跟我遇到的情况一模一样,我一开始安装就报错,折腾了一个晚上
安装要执行pip3 install -r requirements.txt
运行先执行sudo su获取权限,再执行python3 main.py
我也不知道为什么,反正就可以了
from learning-power.
➜学习能力git:(master)✗python main.py
追溯(最近一次通话):
在第11行的文件“ main.py”中from inside.Config.System import SYSTEM
文件“ /Users/xuan/Demo/youyisi/xuexi/learning-power/inside/Config/System.py”,第30行
def Supports(self) -> FrozenSet: ^
SyntaxError:语法无效
直接运行的话,就是这个样子。。跟我遇到的情况一模一样,我一开始安装就报错,折腾了一个晚上
安装要执行pip3 install -r requirements.txt
运行先执行sudo su获取权限,再执行python3 main.py
我也不知道为什么,反正就可以了
root@siyangyuan-Pro learning-power # python3 main.py
Traceback (most recent call last):
File "main.py", line 12, in
from inside.Driver.Driver_Manage import DRIVER_MANAGE
File "/Users/xuan/Demo/youyisi/xuexi/learning-power/inside/Driver/Driver_Manage.py", line 11, in
from selenium.webdriver.chrome.webdriver import WebDriver
ModuleNotFoundError: No module named 'selenium'
这个是获取权限的报错,
➜ learning-power git:(master) ✗ sudo python3 main.py
Password:
Traceback (most recent call last):
File "main.py", line 22, in
os.system(command=SYSTEM().Clear)
TypeError: system() got an unexpected keyword argument 'command'
这个是正常没获取权限的报错。。= =, 这个安装依赖的时候,会有一群红色的报错,
from learning-power.
Related Issues (20)
- ...
- 这几天专项答题出问题了 HOT 2
- dll load failed while importing cv2 HOT 3
- 大佬运行报错 HOT 3
- =进程已结束? 没法搞呀 HOT 1
- 模拟登陆会很容易被检测到的把? HOT 2
- 这错误是怎么回事呢? HOT 1
- 专项答题提交时显示网络开小差 HOT 1
- 弹出的chrome窗口不能正常打开网页 HOT 1
- 提些建议 HOT 2
- 大佬 有TG群吗 可以进去学习学习的 还有那个百度智能云要怎么调用啊 HOT 2
- o
- 现在是自动登录,如何更换其他账户登录?
- 谷歌浏览器93版本,登录无法使用,失效了吗?
- 打不开登录页面 HOT 1
- 从2021年10月20日开始好像是不是网站有更新,目前进不去了 HOT 3
- mac 刚运行卡在这里
- 去年底更新后的解决方案
- Android 更新了
- 只能获得“视听学习:6分”+“视听学习时长:6分”
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 learning-power.