python构建完整应用程序错误_构建Selenium WebDriver项目时Python构建错误

I'm attempting to get into some opensource projects, and as a QA engineer, have been looking at Appium and Selenium.

Situation: Windows 10

Appium: cloned repo, built successfully

Selenium: cloned, but having troubles.

Installed: Java, JDK, python 3.6, Ruby, Rake gem.

Error, I use go + a target, eg 'go build', 'go' or 'go firefox'. However I'm always getting the following error:

The error:

C:\Users\Mark\selenium>go build

(in C:/Users/Mark/selenium)

python C:/Users/Mark/selenium/buck-out/crazy-fun/7c1417f319649e9fd58fd3f97f36f42c870b1790/buck.pex kill

Traceback (most recent call last):

File "C:\Users\Mark\AppData\Local\Programs\Python\Python36-32\lib\runpy.py", line 193, in _run_module_as_main

"__main__", mod_spec)

File "C:\Users\Mark\AppData\Local\Programs\Python\Python36-32\lib\runpy.py", line 85, in _run_code

exec(code, run_globals)

File "C:\Users\Mark\selenium\buck-out\crazy-fun\7c1417f319649e9fd58fd3f97f36f42c870b1790\buck.pex\__main__.py", line 25, in

File "C:\Users\Mark\selenium\buck-out\crazy-fun\7c1417f319649e9fd58fd3f97f36f42c870b1790\buck.pex\.bootstrap\_pex\pex_bootstrapper.py", line 94, in bootstrap_pex

File "C:\Users\Mark\selenium\buck-out\crazy-fun\7c1417f319649e9fd58fd3f97f36f42c870b1790\buck.pex\.bootstrap\_pex\finders.py", line 218, in register_finders

AttributeError: module 'importlib._bootstrap' has no attribute 'FileFinder'

go aborted!

I'm unable to find anything similar online aside from one post suggesting an issue with older versions of Python potentially. However I've just downloaded the latest, so wouldn't expect an issue...

解决方案

The Selenium build scripts utilised here (either crazyfunbuild or buckd depending on setup and tools installed) uses Python 2.7 (at time of writing).

A downgrade from 3.6 to 2.7 solved my (python) issues at least.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值