报错This program needs access to the screen. Please run with a Framework build of python…
今天在本地装了robotframework的环境,运行时出现报错。
This program needs access to the screen. Please run with a
Framework build of python, and only when you are logged in
on the main display of your Mac.
查了半天,其原因是因为wxpython在虚拟环境中运行时,一定会抛出此error。
最后在官方wiki中找到了解决方案。
在当前运行的虚拟环境的bin目录下
,新建一个.sh文件,然后照它抄
保存退出,然后
./script.sh ride.py
即可成功运行ride.py文件!
还没有评论,来说两句吧...