Closed Bug 1354607 Opened 9 years ago Closed 9 years ago

Install Python packages on Planet servers.

Categories

(Infrastructure & Operations :: IT-Managed Tools, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mhoye, Assigned: ericz)

Details

(Whiteboard: [kanban:https://webops.kanbanize.com/ctrl_board/2/4601])

To facilitate the migration away from httplib2 to requests in the Planet codebase - and allow us to remove outdated, vendored-in libs from Planet - I would like us to install pyOpenSSL, idna, httplib2, and feedparser on the the Planet and Planet-staging servers. Command should be: > pip install pyOpenSSL idna httplib2 feedparser Thanks.
Whiteboard: [kanban:https://webops.kanbanize.com/ctrl_board/2/4601]
Assignee: server-ops-webops → eziegenhorn
I had to "pip install requests cachecontrol" as well, but it's still throwing an error about importing requests: (venv) [eziegenhorn@genericadm.private.phx1 planet-source]$ sudo /usr/local/bin/planet-stage.sh stale lockfile found removing You are not currently on a branch, so I cannot use any 'branch.<branchname>.merge' in your configuration file. Please specify which remote branch you want to use on the command line and try again (e.g. 'git pull <repository> <refspec>'). See git-pull(1) for details. Updating cb33008..d5b072c error: Your local changes to 'branches/ateam/config.ini' would be overwritten by merge. Aborting. Please, commit your changes or stash them before you can merge. INFO:planet.runner:Socket timeout set to 20 seconds Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib64/python2.7/threading.py", line 801, in __bootstrap_inner self.run() File "/usr/lib64/python2.7/threading.py", line 754, in run self.__target(*self.__args, **self.__kwargs) File "/data/genericrhel6-stage/build/planet-source-mhoye/trunk/planet/spider.py", line 334, in httpThread import requests ImportError: No module named requests which is weird because I can import it by hand using the same python binary without any problem.
Also had to pip install lockfile, and I had to do it system-wide as the threading solution wasn't working with the virtualenv I had setup.
After unsticking git so it'd pull the updates from the repo, and with the install of these package system-wide, this is now working!
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.