Error on Mac configuring PyPI via Travis
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- ci-cd, documentation
Hướng nghiên cứu
Bắt đầu với Section 4, Lesson 4, đặc biệt là “Configure PyPI Authentication Via Travis”, và xem lại issue travis.rb được liên kết về lỗi thiết lập trên Mac đã được báo cáo. Thêm một ghi chú troubleshooting hoặc FAQ bao quát cách cài đặt đang hoạt động, rồi liên kết đến ghi chú đó từ lesson; công việc được xem là hoàn tất khi những người đọc bị ảnh hưởng có thể tìm thấy workaround.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 8
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của twoscoops/Creating-and-Distributing-Python-Packages
-
Errors with flake8 running toxĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
twoscoops/Creating-and-Distributing-Python-Packages#36 · 2 bình luận ·
-
Typo in 3.1 under Add Git remoteĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 35/100
twoscoops/Creating-and-Distributing-Python-Packages#35 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
-
More explanation for Travis-CIĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 50/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
Tất cả issue của twoscoops/Creating-and-Distributing-Python-Packages
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
siderolabs/terraform-provider-talos#414 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
agent/quality hive/hosted-available-lke648397-260827-5n31 quality testing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 91/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Mend: dependency security vulnerability
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area/helm kind/bug priority/backlog triage/accepted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
lexfrei/cloudflare-tunnel-gateway-controller#835 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
JPHutchins/code-review#262 ·
Maintainer thường phản hồi trong vòng 1 ngày