Bug 968298 - Unable to create a django application
Unable to create a django application
Status: CLOSED DUPLICATE of bug 913062
Product: OpenShift Origin
Classification: Red Hat
Component: Pod (Show other bugs)
1.x
All Linux
unspecified Severity high
: ---
: ---
Assigned To: Abhishek Gupta
libra bugs
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-29 08:14 EDT by Oleg Fayans
Modified: 2016-11-30 19:27 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-05-29 08:47:55 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
facter output of the origin instance (2.07 KB, application/x-gzip)
2013-05-29 08:14 EDT, Oleg Fayans
no flags Details

  None (edit)
Description Oleg Fayans 2013-05-29 08:14:07 EDT
Description of problem:

I am unable to install django in my python-2.7 app

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

python-2.7

How reproducible:
every time

Steps to Reproduce:
1. rhc app create myapp python-2.7
2. in your local app directory edit setup.py and uncomment the following line:
install_requires=['Django>=1.3'],
3. do git commit and git push

Actual results:

git push output is below:

      remote:  - Found setup.py. Processing it ...                                                                                                                                           
      remote: Could not find platform independent libraries <prefix>                                                                                                                         
      remote: Could not find platform dependent libraries <exec_prefix>                                                                                                                      
      remote: Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]                                                                                                                       
      remote: ImportError: No module named site                                                                                                                                              
      remote:  - Done processing setup.py                                                                                                                                                    
      remote: Could not find platform independent libraries <prefix>                                                                                                                         
      remote: Could not find platform dependent libraries <exec_prefix>                                                                                                                      
      remote: Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]                                                                                                                       
      remote: ImportError: No module named site                                                                                                                                              
      remote: Running .openshift/action_hooks/build                                                                                                                                          
      remote: Could not find platform independent libraries <prefix>
      remote: Could not find platform dependent libraries <exec_prefix>
      remote: Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
      remote: ImportError: No module named site

As a result django does not get installed


Expected results:

git output should look like this:
      remote: setup.py found.  Setting up virtualenv                                                                                                                                         
      remote: New python executable in /var/lib/openshift/51a5ea055973ca068f00009b//python-2.6/virtenv/bin/python                                                                            
      remote: Installing setuptools............done.                                                                                                                                         
      remote: Installing pip...............done.                                                                                                                                             
      remote: running develop                                                                                                                                                                
      remote: running egg_info                                                                                                                                                               
      remote: creating YourAppName.egg-info                                                                                                                                                  
      remote: writing requirements to YourAppName.egg-info/requires.txt                                                                                                                      
      remote: writing YourAppName.egg-info/PKG-INFO                                                                                                                                          
      remote: writing top-level names to YourAppName.egg-info/top_level.txt                                                                                                                  
      remote: writing dependency_links to YourAppName.egg-info/dependency_links.txt                                                                                                          
      remote: writing requirements to YourAppName.egg-info/requires.txt                                                                                                                      
      remote: writing YourAppName.egg-info/PKG-INFO                                                                                                                                          
      remote: writing top-level names to YourAppName.egg-info/top_level.txt                                                                                                                  
      remote: writing dependency_links to YourAppName.egg-info/dependency_links.txt                                                                                                          
      remote: writing manifest file 'YourAppName.egg-info/SOURCES.txt'                                                                                                                       
      remote: warning: manifest_maker: standard file 'setup.py' not found                                                                                                                    
      remote: reading manifest file 'YourAppName.egg-info/SOURCES.txt'                                                                                                                       
      remote: writing manifest file 'YourAppName.egg-info/SOURCES.txt'                                                                                                                       
      remote: running build_ext                                                                                                                                                              
      remote: Creating /var/lib/openshift/51a5ea055973ca068f00009b/python-2.6/virtenv/lib/python2.6/site-packages/YourAppName.egg-link (link to .)                                           
      remote: Adding YourAppName 1.0 to easy-install.pth file                                                                                                                                
      remote: 
      remote: Installed /var/lib/openshift/51a5ea055973ca068f00009b/python-2.6/virtenv                                                                                                       
      remote: Processing dependencies for YourAppName==1.0                                                                                                                                   
      remote: Searching for Django>=1.3                                                                                                                                                      
      remote: Reading http://mirror1.ops.rhcloud.com/mirror/python/web/simple/Django/                                                                                                        
      remote: Best match: Django 1.5.1                                                                                                                                                       
      remote: Downloading http://mirror1.ops.rhcloud.com/mirror/python/web/packages/source/D/Django/Django-1.5.1.tar.gz#md5=7465f6383264ba167a9a031d6b058bff                                 
      remote: Processing Django-1.5.1.tar.gz                                                                                                                                                 
      remote: Running Django-1.5.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-h9ZP1_/Django-1.5.1/egg-dist-tmp-dmrtu3                                                                
      remote: warning: no previously-included files matching '__pycache__' found under directory '*'                                                                                         
      remote: warning: no previously-included files matching '*.py[co]' found under directory '*'                                                                                            
      remote: zip_safe flag not set; analyzing archive contents...                                                                                                                           
      remote: django.contrib.formtools.tests.__init__: module references __file__                                                                                                            
      remote: django.contrib.formtools.tests.wizard.namedwizardtests.tests: module references __file__                                                                                       
      remote: django.contrib.formtools.tests.wizard.wizardtests.tests: module references __file__                                                                                            
      remote: django.contrib.flatpages.tests.templatetags: module references __file__                                                                                                        
      remote: django.contrib.flatpages.tests.middleware: module references __file__                                                                                                          
      remote: django.contrib.flatpages.tests.views: module references __file__                                                                                                               
      remote: django.contrib.flatpages.tests.csrf: module references __file__                                                                                                                
      remote: django.contrib.auth.tests.context_processors: module references __file__                                                                                                       
      remote: django.contrib.auth.tests.views: module references __file__                                                                                                                    
      remote: django.contrib.auth.tests.forms: module references __file__                                                                                                                    
      remote: django.contrib.sitemaps.tests.http: module references __file__                                                                                                                 
      remote: django.contrib.gis.geometry.test_data: module references __file__                                                                                                              
      remote: django.contrib.gis.tests.layermap.tests: module references __file__                                                                                                            
      remote: django.contrib.gis.tests.geo3d.tests: module references __file__                                                                                                               
      remote: django.contrib.gis.tests.geogapp.tests: module references __file__                                                                                                             
      remote: django.contrib.staticfiles.storage: module references __file__                                                                                                                 
      remote: django.contrib.admindocs.views: module references __file__                                                                                                                     
      remote: django.db.utils: module references __file__                                                                                                                                    
      remote: django.db.models.loading: module references __file__                                                                                                                           
      remote: django.views.i18n: module references __file__                                                                                                                                  
      remote: django.core.management.templates: module references __path__                                                                                                                   
      remote: django.core.management.__init__: module references __file__                                                                                                                    
      remote: django.core.management.__init__: module references __path__                                                                                                                    
      remote: django.core.management.sql: module references __file__                                                                                                                         
      remote: django.core.management.commands.loaddata: module references __file__                                                                                                           
      remote: django.core.management.commands.loaddata: module references __path__                                                                                                           
      remote: django.core.management.commands.makemessages: module references __file__                                                                                                       
      remote: django.utils.version: module references __file__                                                                                                                               
      remote: django.utils.module_loading: module references __path__                                                                                                                        
      remote: django.utils.autoreload: module references __file__                                                                                                                            
      remote: django.utils.unittest.collector: module references __file__                                                                                                                    
      remote: django.utils.unittest.loader: module references __file__                                                                                                                       
      remote: django.utils.translation.trans_real: module references __file__                                                                                                                
      remote: django.test._doctest: module references __file__                                                                                                                               
      remote: django.test._doctest: module MAY be using inspect.getsourcefile                                                                                                                
      remote: django.template.loaders.app_directories: module references __file__                                                                                                            
      remote: Adding Django 1.5.1 to easy-install.pth file                                                                                                                                   
      remote: Installing django-admin.py script to /var/lib/openshift/51a5ea055973ca068f00009b/python-2.6/virtenv/bin                                                                        
      remote: 
      remote: Installed /var/lib/openshift/51a5ea055973ca068f00009b/python-2.6/virtenv/lib/python2.6/site-packages/Django-1.5.1-py2.6.egg 


Additional info:

facter output and version of broker are attached
Comment 1 Oleg Fayans 2013-05-29 08:14:53 EDT
Created attachment 754327 [details]
facter output of the origin instance
Comment 2 Oleg Fayans 2013-05-29 08:47:55 EDT

*** This bug has been marked as a duplicate of bug 913062 ***

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