WebFaction
Community site: login faq

I'm getting an error trying to install the Django app django-image-cropping:

https://github.com/jonasundderwolf/django-image-cropping#readme

I'm using the pip command format in the docs:

http://docs.webfaction.com/software/python.html?highlight=pip#installing-packages-with-pip

This is the command I tried:

cd webapps/django_test_12/
pip-2.7 install --install-option="--install-scripts=$PWD/bin" --install-option="--install-lib=$PWD/lib/python2.7" git+ssh://git@github.com/jonasundderwolf/django-image-cropping.git#egg=django-image-cropping

I tried with the -e too, but got the same error, for which I'm not surprised because that's only for virtualenv.

The error I received was:

Downloading/unpacking django-image-cropping from git+ssh://git@github.com/jonasundderwolf/django-image-cropping.git
  Cloning ssh://git@github.com/jonasundderwolf/django-image-cropping.git to ./build/django-image-cropping
  Found command 'git' at '/usr/bin/git'
  Running command /usr/bin/git clone -q ssh://git@github.com/jonasundderwolf/django-image-cropping.git /home/bellnetwork/webapps/django_test_12/build/django-image-cropping
  Complete output from command /usr/bin/git clone -q ssh://git@github.com/jonasundderwolf/django-image-cropping.git /home/bellnetwork/webapps/django_test_12/build/django-image-cropping:

----------------------------------------
Command /usr/bin/git clone -q ssh://git@github.com/jonasundderwolf/django-image-cropping.git /home/bellnetwork/webapps/django_test_12/build/django-image-cropping failed with error code 128
Exception information:
Traceback (most recent call last):
  File "/home/bellnetwork/lib/python2.7/pip-1.0.1-py2.7.egg/pip/basecommand.py", line 126, in main
    self.run(options, args)
  File "/home/bellnetwork/lib/python2.7/pip-1.0.1-py2.7.egg/pip/commands/install.py", line 223, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/home/bellnetwork/lib/python2.7/pip-1.0.1-py2.7.egg/pip/req.py", line 961, in prepare_files
    self.unpack_url(url, location, self.is_download)
  File "/home/bellnetwork/lib/python2.7/pip-1.0.1-py2.7.egg/pip/req.py", line 1073, in unpack_url
    return unpack_vcs_link(link, location, only_download)
  File "/home/bellnetwork/lib/python2.7/pip-1.0.1-py2.7.egg/pip/download.py", line 293, in unpack_vcs_link
    vcs_backend.unpack(location)
  File "/home/bellnetwork/lib/python2.7/pip-1.0.1-py2.7.egg/pip/vcs/__init__.py", line 225, in unpack
    self.obtain(location)
  File "/home/bellnetwork/lib/python2.7/pip-1.0.1-py2.7.egg/pip/vcs/git.py", line 107, in obtain
    call_subprocess([self.cmd, 'clone', '-q', url, dest])
  File "/home/bellnetwork/lib/python2.7/pip-1.0.1-py2.7.egg/pip/__init__.py", line 255, in call_subprocess
    % (command_desc, proc.returncode))
InstallationError: Command /usr/bin/git clone -q ssh://git@github.com/jonasundderwolf/django-image-cropping.git /home/bellnetwork/webapps/django_test_12/build/django-image-cropping failed with error code 128

Is there anything I can do to get this to work?

asked 02 Oct '11, 20:44

Rupe
411814
accept rate: 0%


Hi,

You can do the install with the setup.py included in the package by just cloning the repository using:

git clone https://github.com/jonasundderwolf/django-image-cropping.git
cd django-image-cropping/

and then following:
http://docs.webfaction.com/software/python.html#installing-packages-with-setup-py

permanent link

answered 02 Oct '11, 20:59

neeravk
1.5k3412
accept rate: 41%

Thank you, that did it

(02 Oct '11, 21:05) Rupe
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×909
×111
×103
×54
×1

question asked: 02 Oct '11, 20:44

question was seen: 3,789 times

last updated: 02 Oct '11, 21:05

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM