Error on Mac configuring PyPI via Travis
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Documentación
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Área
- ci-cd, documentation
Línea de trabajo
Comienza con la Sección 4, Lección 4, especialmente “Configure PyPI Authentication Via Travis”, y revisa el issue de travis.rb enlazado para conocer el fallo de configuración en Mac informado. Añade una nota de solución de problemas o de FAQ que cubra el enfoque de instalación que funciona y enlázala desde la lección; el trabajo estará terminado cuando los lectores afectados puedan encontrar el workaround.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 8
- Forks
- 0
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de twoscoops/Creating-and-Distributing-Python-Packages
-
Errors with flake8 running tox Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
twoscoops/Creating-and-Distributing-Python-Packages#36 · 2 comentarios ·
-
Typo in 3.1 under Add Git remote Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 35/100
twoscoops/Creating-and-Distributing-Python-Packages#35 · 1 comentario ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 45/100
-
More explanation for Travis-CI Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 50/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 45/100
Todos los issues de twoscoops/Creating-and-Distributing-Python-Packages
Issues similares
-
task
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
vsanthanam/JBird#429 ·
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
alexgorbatchev/simple-ptt#14 ·
-
github-request
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
openedx/axim-engineering#1758 · 2 comentarios ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
components-web-app/docs#92 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100