特拉维斯错误尝试提交应用谷歌的Play商店 [英] Error in Travis trying to submit app to Google's Play Store

查看:220
本文介绍了特拉维斯错误尝试提交应用谷歌的Play商店的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始寻找到一对夫妇的GIST我在Github上找到: HTTPS://gist.github。 COM / lpetre / 87a5196d14cf4484f1f2

I started by looking into a couple of Gists I found on Github: https://gist.github.com/lpetre/87a5196d14cf4484f1f2

和我的笔记本电脑这一伟大工程,但我试图建立特拉维斯-CI自动构建释放APK,并提交给Play商店。那我现在遇到的问题是在特拉维斯一边,我不能使用PIP安装google_api_python_client。

And this works great on my laptop, however I'm trying to set up Travis-CI to automatically build the release APK and submit it to the Play Store. The issue that I'm encountering now is on the Travis side, in that I cannot use pip to install the google_api_python_client.

在这一号召,我得到如下:

upon that call, I get the following:

 Installing collected packages: google-api-python-client, httplib2
  Running setup.py install for google-api-python-client
    error: could not create '/usr/local/lib/python2.7/dist-packages/apiclient': Permission denied
    Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_travis/google-api-python-client/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-ctZKCR-record/install-record.txt --single-version-externally-managed --compile:

所以我使用PIP缓步走开了,下载了自己的Python客户端库,现在我包括他们在我的混帐回购协议(下/ google_api_upload)。

So I strayed away from using pip, downloaded the python client libraries on their own, and am now including them in my git repo (under /google_api_upload).

谷歌的API上传客户端库指令的一部分(的https://github.com/googlesamples/android-play-publisher-api/blob/master/v2/python/README.md)说在Python控制台(再次运行进口apiclient,做工精细我的笔记本电脑,但不特拉维斯因为我​​不能启动一个Python会话,并在进口apiclient到目前为止,我已经找到了进入;它只是挂起在Python会话)。

A part of Google's API Upload client library instructions (https://github.com/googlesamples/android-play-publisher-api/blob/master/v2/python/README.md) say to run "import apiclient" in a python console (again, works fine on my laptop, but not travis because I can't start a python session and enter in "import apiclient" so far as I've found; it just hangs on the python session).

于是我想通这将会是真棒,只是在我这调用API函数,并从travis.yml文件的gradle称为文件的摇篮功能;但我不知道如果这是可能的。

So then I figured it'd be awesome to just have a Gradle function in my gradle files which calls the API functions, and is called from the travis.yml file; but I don't even know if that's possible.

因此​​,任何输入会有所帮助,特别是:

So any input would help, notably:


  • 难道我搞砸了,我在上特拉维斯运行PIP的尝试?我可以sudo来提升权限为这个(我想我做不到)

  • 有没有办法叫进口apiclient为蟒蛇在travis.yml文件的单行?

  • 是否有可能有叫特拉维斯在我的构建包括它是指客户端库的Gradle一个功能?

  • 我试图找到为此到终端的过程的例子,但没有发现任何符合这一确切的情况下,你知道的?

谢谢!

推荐答案

我有类似的错误消息

error: could not create '/usr/local/lib/python2.7/dist-packages/googleapiclient': Permission denied

和加入须藤固定的:

sudo pip install google-api-python-client

建立比较<​​a href=\"https://travis-ci.org/mg6maciej/VielenGamesAndroidClient/builds/41866376\" rel=\"nofollow\">#162 并的#163

这篇关于特拉维斯错误尝试提交应用谷歌的Play商店的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆