Error on Mac configuring PyPI via Travis
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 45/100
- Issue 类型
- 文档
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 领域
- ci-cd, documentation
调研方向
从第 4 节、第 4 课开始,尤其是“Configure PyPI Authentication Via Travis”,并查看链接的 travis.rb issue,了解报告的 Mac 设置失败问题。添加一条涵盖可行安装方法的故障排除或 FAQ 说明,并从该课程链接到它;当受影响的读者能够找到 workaround 时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Location within the Course
- Section:4
- Lesson:4
- Language:English
Description
In "Configure PyPI Authentication Via Travis". I'm on a Mac and installed Travis using the command brew install travis, but then when I did travis encrypt --add deploy.password, I get this message:
Shell completion not installed. Would you like to install it now? |y y
Detected repository as purplediane/shortbread, is this correct? |yes| yes
not logged in, please run travis login --pro
Then I did travis login --pro
It asked for username and password, which I entered, and then got:
no implicit conversion of nil into String
for a full error report, run travis report --pro
Turns out the problem has something to do with ruby versions. When I do ruby --version, it tells me I have 2.5.0p0, but my travis report said it is 2.0.0-p648, which is not current enough to work. Probably my Homebrew is not quite right, since I rarely use it, although I recently did brew update or whatever you are supposed to do to keep the Brewed things up-to-date. (I try not to be too much of a curmudgeonly luddite, but just can't get interested in Homebrew enough to spend the time to understand it; sorry, brew-lovers).
Solution
My solution was to brew uninstall travis and then do gem install travis -v 1.8.8 --no-rdoc --no-ri per instructions here. Even though it claims that Ruby 2.0 is OK, others have said the problem went away after upgrading Ruby.
In any case, after installing it as a gem, the travis encrypt command worked.
See https://github.com/travis-ci/travis.rb/issues/190#issuecomment-369749402 for more discussion of this issue.
Maybe this can be in the FAQ or troubleshooting area, with a link from the location in 4.4 for those who have the problem.
- 主要语言
- 没有语言数据
- 星标
- 8
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
twoscoops/Creating-and-Distributing-Python-Packages 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 25/100
twoscoops/Creating-and-Distributing-Python-Packages#36 · 2 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 35/100
twoscoops/Creating-and-Distributing-Python-Packages#35 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 45/100
-
难度 1/5 1 小时以内 新手友好度 50/100
-
难度 2/5 1-3 小时 新手友好度 45/100
查看 twoscoops/Creating-and-Distributing-Python-Packages 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
bioconda/bioconda-recipes#70401 ·
维护者通常 2 天内回复
-
a11y data import fails with "missing --authors parameter" (npm drops flags in `bin/configure.js`)未关闭
难度 2/5 1-3 小时 新手友好度 90/100
-
agentic-workflows Needs: Triage :mag:
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
amnezia-vpn/amnezia-client#3297 · 1 条评论 ·
维护者通常 1 天内回复
-
bug o&m
难度 2/5 1-3 小时 新手友好度 68/100
GSA/datagov-harvester#1024 ·
维护者通常 1 天内回复