You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/07/22 06:27:12 UTC

[GitHub] [spark] dongjoon-hyun commented on a change in pull request #25226: [SPARK-28468][INFRA] Update pip to fix `sphinx` import error

dongjoon-hyun commented on a change in pull request #25226: [SPARK-28468][INFRA] Update pip to fix `sphinx` import error
URL: https://github.com/apache/spark/pull/25226#discussion_r305688340
 
 

 ##########
 File path: dev/create-release/spark-rm/Dockerfile
 ##########
 @@ -60,6 +60,7 @@ RUN apt-get clean && apt-get update && $APT_INSTALL gnupg ca-certificates apt-tr
   $APT_INSTALL nodejs && \
   # Install needed python packages. Use pip for installing packages (for consistency).
   $APT_INSTALL libpython2.7-dev libpython3-dev python-pip python3-pip && \
+  pip install --upgrade pip && hash -r pip && \
 
 Review comment:
   `hash -r pip` is also required. Without that, we will hit the following.
   ```
   Traceback (most recent call last):
     File "/usr/bin/pip", line 9, in <module>
       from pip import main
   ImportError: cannot import name main
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org