git - Can't install Python module from GitHub at OpenShift -


trying deploy python application openshift, btw first openshift deployment. works fine, installation of module hosted @ github. i've been trying many ways around. can me please? many in advance. seems openshift git version(1.7.1) no compatible i'm trying achieve. error output:

    obtaining django-filter git+https://github.com/jpardobl/django-filter.git@8a3d092a99feaacea6b85c5ae5a987dc9ea970ab#egg=django_filter-dev (from -r /var/lib/openshift/515ebbc650044643fa00000d/app-root/repo/requirements.txt (line 1)) remote:   found command 'git' @ '/usr/bin/git' remote: command /usr/bin/git config remote.origin.url failed error code 1 remote: exception information: remote: traceback (most recent call last): remote:   file "/var/lib/openshift/515ebbc650044643fa00000d/python-2.6/virtenv/lib/python2.6/site-packages/pip-1.0.2-py2.6.egg/pip/basecommand.py", line 126, in main remote:     self.run(options, args) remote:   file "/var/lib/openshift/515ebbc650044643fa00000d/python-2.6/virtenv/lib/python2.6/site-packages/pip-1.0.2-py2.6.egg/pip/commands/install.py", line 223, in run remote:     requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) remote:   file "/var/lib/openshift/515ebbc650044643fa00000d/python-2.6/virtenv/lib/python2.6/site-packages/pip-1.0.2-py2.6.egg/pip/req.py", line 936, in prepare_files remote:     req_to_install.update_editable(not self.is_download) remote:   file "/var/lib/openshift/515ebbc650044643fa00000d/python-2.6/virtenv/lib/python2.6/site-packages/pip-1.0.2-py2.6.egg/pip/req.py", line 384, in update_editable remote:     vcs_backend.obtain(self.source_dir) remote:   file "/var/lib/openshift/515ebbc650044643fa00000d/python-2.6/virtenv/lib/python2.6/site-packages/pip-1.0.2-py2.6.egg/pip/vcs/git.py", line 104, in obtain remote:     if self.check_destination(dest, url, rev_options, rev_display): remote:   file "/var/lib/openshift/515ebbc650044643fa00000d/python-2.6/virtenv/lib/python2.6/site-packages/pip-1.0.2-py2.6.egg/pip/vcs/__init__.py", line 183, in check_destination remote:     existing_url = self.get_url(dest) remote:   file "/var/lib/openshift/515ebbc650044643fa00000d/python-2.6/virtenv/lib/python2.6/site-packages/pip-1.0.2-py2.6.egg/pip/vcs/git.py", line 116, in get_url remote:     show_stdout=false, cwd=location) remote:   file "/var/lib/openshift/515ebbc650044643fa00000d/python-2.6/virtenv/lib/python2.6/site-packages/pip-1.0.2-py2.6.egg/pip/__init__.py", line 255, in call_subprocess remote:     % (command_desc, proc.returncode)) remote: installationerror: command /usr/bin/git config remote.origin.url failed error code 1 remote:  remote: storing complete log in /var/lib/openshift/515ebbc650044643fa00000d/.pip/pip.log remote: traceback (most recent call last): remote:   file "/var/lib/openshift/515ebbc650044643fa00000d/python-2.6/virtenv/bin/pip", line 9, in <module> remote:     load_entry_point('pip==1.0.2', 'console_scripts', 'pip')() remote:   file "/var/lib/openshift/515ebbc650044643fa00000d/python-2.6/virtenv/lib/python2.6/site-packages/pip-1.0.2-py2.6.egg/pip/__init__.py", line 116, in main remote:     return command.main(initial_args, args[1:], options) remote:   file "/var/lib/openshift/515ebbc650044643fa00000d/python-2.6/virtenv/lib/python2.6/site-packages/pip-1.0.2-py2.6.egg/pip/basecommand.py", line 151, in main remote:     log_fp = open_logfile(log_fn, 'w') remote:   file "/var/lib/openshift/515ebbc650044643fa00000d/python-2.6/virtenv/lib/python2.6/site-packages/pip-1.0.2-py2.6.egg/pip/basecommand.py", line 177, in open_logfile remote:     os.makedirs(dirname) remote:   file "/usr/lib64/python2.6/os.py", line 157, in makedirs remote:     mkdir(name, mode) remote: oserror: [errno 13] permission denied: '/var/lib/openshift/515ebbc650044643fa00000d/.pip' remote: running .openshift/action_hooks/build remote: obtaining django-filter git+https://github.com/jpardobl/django-filter.git@8a3d092a99feaacea6b85c5ae5a987dc9ea970ab#egg=django_filter-dev (from -r /var/lib/openshift/515ebbc650044643fa00000d/app-root/repo/requirements.txt (line 1)) remote:   found command 'git' @ '/usr/bin/git' remote: command /usr/bin/git config remote.origin.url failed error code 1 remote: exception information: remote: traceback (most recent call last): remote:   file "/var/lib/openshift/515ebbc650044643fa00000d/python-2.6/virtenv/lib/python2.6/site-packages/pip-1.0.2-py2.6.egg/pip/basecommand.py", line 126, in main remote:     self.run(options, args) remote:   file "/var/lib/openshift/515ebbc650044643fa00000d/python-2.6/virtenv/lib/python2.6/site-packages/pip-1.0.2-py2.6.egg/pip/commands/install.py", line 223, in run remote:     requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) remote:   file "/var/lib/openshift/515ebbc650044643fa00000d/python-2.6/virtenv/lib/python2.6/site-packages/pip-1.0.2-py2.6.egg/pip/req.py", line 936, in prepare_files remote:     req_to_install.update_editable(not self.is_download) remote:   file "/var/lib/openshift/515ebbc650044643fa00000d/python-2.6/virtenv/lib/python2.6/site-packages/pip-1.0.2-py2.6.egg/pip/req.py", line 384, in update_editable remote:     vcs_backend.obtain(self.source_dir) remote:   file "/var/lib/openshift/515ebbc650044643fa00000d/python-2.6/virtenv/lib/python2.6/site-packages/pip-1.0.2-py2.6.egg/pip/vcs/git.py", line 104, in obtain remote:     if self.check_destination(dest, url, rev_options, rev_display): remote:   file "/var/lib/openshift/515ebbc650044643fa00000d/python-2.6/virtenv/lib/python2.6/site-packages/pip-1.0.2-py2.6.egg/pip/vcs/__init__.py", line 183, in check_destination remote:     existing_url = self.get_url(dest) remote:   file "/var/lib/openshift/515ebbc650044643fa00000d/python-2.6/virtenv/lib/python2.6/site-packages/pip-1.0.2-py2.6.egg/pip/vcs/git.py", line 116, in get_url remote:     show_stdout=false, cwd=location) remote:   file "/var/lib/openshift/515ebbc650044643fa00000d/python-2.6/virtenv/lib/python2.6/site-packages/pip-1.0.2-py2.6.egg/pip/__init__.py", line 255, in call_subprocess remote:     % (command_desc, proc.returncode)) remote: installationerror: command /usr/bin/git config remote.origin.url failed error code 1 

following, setup.py file

 setuptools import setup      setup(name='nautivel',  version='0.8.1',  description='openshift app',  author='javier pardo blasco',  author_email='xxxxxxx',  url='http://jpardobl.com',  install_requires=(  'django == 1.5',  'argparse == 1.2.1',  'distribute == 0.6.24',  'moment == 0.0.15', ), ) 

also requirements.txt file

-e git+https://github.com/jpardobl/django-filter.git@8a3d092a99feaacea6b85c5ae5a987dc9ea970ab#egg=django_filter-dev 

and .openshift/action_hooks/build file(it not using env variables reduce error risks while trying)

    !/bin/bash     source /var/lib/openshift/515ebbc650044643fa00000d/python-2.6/virtenv/bin/activate  /var/lib/openshift/515ebbc650044643fa00000d/python-2.6/virtenv/bin/pip install -v -r /var/lib/openshift/515ebbc650044643fa00000d/app-root/repo/requirements.txt 

instead of using setup.py install use workaround. install modules build action hook follows.

# .openshift/action_hooks/build   #!/bin/bash messages_path=$home/python-2.6/virtenv/lib/python2.6/site-packages/django-messages-patch-src git clone git://github.com/jpardobl/django-messages-patched.git $messages_path ln -s $messages_path/django_messages $home/python-2.6/virtenv/lib/python2.6/site-packages/messages 

that's it!!!


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -