Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Error on Mac configuring PyPI via Travis

未关闭
#18 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
45/100
Issue 类型
文档
描述清晰度
基本清楚
活跃度
停滞
技术栈
python, ruby

调研方向

从第 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 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

twoscoops/Creating-and-Distributing-Python-Packages 的其他 Issue

查看 twoscoops/Creating-and-Distributing-Python-Packages 的全部 Issue

相似的 Issue

更多 DevOps Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。