Bug 810366 - env var for python cartridge
Summary: env var for python cartridge
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Pod
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Ram Ranganathan
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-05 18:40 UTC by David Blado
Modified: 2015-05-15 01:50 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-13 18:30:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description David Blado 2012-04-05 18:40:17 UTC
Description of problem:
after activating the virtual environment, I attempted to run the django syncdb script and received:

[Errno 13] Permission denied: '/var/lib/stickshift/e1ff4f1c78894db7833479734fd33bcc/.python-eggs'


The fix is to

export PYTHON_EGG_CACHE=/var/lib/stickshift/e1ff4f1c78894db7833479734fd33bcc/tinsley/virtenv/lib/python2.6/site-packages/


Would it be possible to have PYTHON_EGG_CACHE=$OPENSHIFT_GEAR_DIR/virtenv/lib/python2.6/site-packages by default for python apps?

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Ram Ranganathan 2012-04-11 18:35:03 UTC
Fixed with git commits 9f102353ec5c8d74e8af8512e0f9fbd9d7a5c448 and 3fe92d29562bb7dea1d2e04060d2909ccb5c0043.

The PYTHON_EGG_CACHE variable is now set to the app's .python-eggs directory.
($OPENSHIFT_GEAR_DIR/.python-eggs/).

Comment 2 Meng Bo 2012-04-12 07:53:43 UTC
checked on devenv-stage_166 with cartridge-python-3.2-0.89.5-1.git.0.1053381.el6_2.noarch,
var PYTHON_EGG_CACHE has value "$OPENSHIFT_GEAR_DIR/.python-eggs/"


Note You need to log in before you can comment on or make changes to this bug.