Copy paste guide to install Satchmo trunk using pip

109 views
Skip to first unread message

Ariel Nunez

unread,
Aug 25, 2009, 4:51:32 PM8/25/09
to satchm...@googlegroups.com
Assuming you have PIL installed systemwide as well as virtualenv, mercurial and subversion.

#Start here
virtualenv myproject; cd myproject; source bin/activate 
easy_install pip
wget http://gist.github.com/gists/174994/download -Osatchmo_requirements.txt
pip install -r satchmo_requirements.txt
python -c "import django;import satchmo_store; print satchmo_store.get_version();"
#end here


Ariel.

PD: Here are the contents of the requirements file:

Bob Waycott

unread,
Aug 26, 2009, 9:24:52 AM8/26/09
to satchm...@googlegroups.com
Awesome Ariel. Thanks for that!

Ariel Nunez

unread,
Aug 26, 2009, 11:47:54 AM8/26/09
to satchm...@googlegroups.com
On Wed, Aug 26, 2009 at 8:24 AM, Bob Waycott <bobwa...@gmail.com> wrote:
Awesome Ariel. Thanks for that!
 
Glad you liked that Bob,

Here is the other couple of lines I added to my requirements file in order to run the large project with all apps enabled:

#For large project
django-extensions

Bob Waycott

unread,
Aug 31, 2009, 6:33:48 PM8/31/09
to satchm...@googlegroups.com
So, I tried giving this a shot, and I've got a hangup:

Obtaining django-threaded-multihost from
hg+http://bitbucket.org/bkroeze/django-threaded-multihost/#egg=django-threaded-multihost
(from -r satchmo_requirements.txt (line 9))
Cloning hg http://bitbucket.org/bkroeze/django-threaded-multihost/ to
./src/django-threaded-multihost
Error [Errno 2] No such file or directory while executing command hg
clone -q http://bitbucket.org/bkroeze/django-threaded-multihost/
/Users/bob/satchmo/src/django-threaded-multihost
Exception:
Traceback (most recent call last):
File "/Library/Python/2.6/site-packages/pip-0.4-py2.6.egg/pip.py",
line 274, in main
self.run(options, args)
File "/Library/Python/2.6/site-packages/pip-0.4-py2.6.egg/pip.py",
line 431, in run
requirement_set.install_files(finder, force_root_egg_info=self.bundle)
File "/Library/Python/2.6/site-packages/pip-0.4-py2.6.egg/pip.py",
line 1804, in install_files
req_to_install.update_editable()
File "/Library/Python/2.6/site-packages/pip-0.4-py2.6.egg/pip.py",
line 1544, in update_editable
version_control(self.url).obtain(self.source_dir)
File "/Library/Python/2.6/site-packages/pip-0.4-py2.6.egg/pip.py",
line 3072, in obtain
call_subprocess(['hg', 'clone', '-q', url, dest])
File "/Library/Python/2.6/site-packages/pip-0.4-py2.6.egg/pip.py",
line 3609, in call_subprocess
cwd=cwd, env=env)
File
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py",
line 595, in __init__
errread, errwrite)
File
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py",
line 1106, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory


I'm running on Mac OS 10.6 Snow Leopard, which defaults to Py 2.6 ...

Bruce (or anyone else), is there a problem with
django-threaded-multihost & Python 2.6?

Thanks,

Bob

Bob Waycott

unread,
Aug 31, 2009, 6:37:09 PM8/31/09
to satchm...@googlegroups.com
ack ... nevermind.

Forgot I didn't re-install hg. Duh.

Bob Waycott

unread,
Aug 31, 2009, 6:42:48 PM8/31/09
to satchm...@googlegroups.com
Okay, Ariel,

Just finished successfully running thru that requirements file. Fantastic.

Thanks again.

lifewithryan

unread,
Aug 31, 2009, 7:18:01 PM8/31/09
to satchm...@googlegroups.com
At first glance it looks like it can't find your mercurial installation

Do you have mercurial installed and is it on your path? Do you get
anything when you type which hg from the command line?

Sent from my iPod

lifewithryan

unread,
Aug 31, 2009, 7:19:25 PM8/31/09
to satchm...@googlegroups.com
Dog. Sorry I see now that you fixed it...

Sent from my iPod

Ariel Nunez

unread,
Aug 31, 2009, 7:53:34 PM8/31/09
to satchm...@googlegroups.com
Bob,

I made the requirements file in Snow Leopard developer preview, so I
knew it worked ;)

Glad to see you found it useful.

Ariel.

neridaj

unread,
Sep 17, 2009, 6:54:48 PM9/17/09
to Satchmo users
Thanks for this but I'm getting stuck somewhere:

Exception:
Traceback (most recent call last):
File "/home/USERNAME/py24-venv/lib/python2.4/site-packages/pip.py",
line 274, in main
self.run(options, args)
File "/home/USERNAME/py24-venv/lib/python2.4/site-packages/pip.py",
line 429, in run
for req in parse_requirements(filename, finder=finder):
File "/home/USERNAME/py24-venv/lib/python2.4/site-packages/pip.py",
line 3410, in parse_requirements
req = InstallRequirement.from_line(line, comes_from)
File "/home/USERNAME/py24-venv/lib/python2.4/site-packages/pip.py",
line 1286, in from_line
return cls(req, comes_from, url=url)
File "/home/USERNAME/py24-venv/lib/python2.4/site-packages/pip.py",
line 1242, in __init__
req = pkg_resources.Requirement.parse(req)
File "/home/USERNAME/py24-venv/lib/python2.4/site-packages/
setuptools-0.6c9-py2.4.egg/pkg_resources.py", line 2469, in parse
reqs = list(parse_requirements(s))
File "/home/USERNAME/py24-venv/lib/python2.4/site-packages/
setuptools-0.6c9-py2.4.egg/pkg_resources.py", line 2383, in
parse_requirements
raise ValueError("Missing distribution spec", line)
ValueError: ('Missing distribution spec', '\x1f\x8b\x08\x00\x0c
\xb4\xb2J\x00\x03\xed\xd6\xcdo\x9b0\x14\x00\xf0\x9c\xf9+"\xf58\xf1Yc
\x96I=\xec\xdeI\xd3n;E\xc6\x18Cc\xb0g?\x9a\xa6\x7f\xfdLB\xa5\x86
(\xed6\xf5CS\xdfO\x8aHl\xfcl\xfcx\x10\xc3\xee\xd6R\xe9\x92\xa9u#X%\xec
\xe2\xe5%\x1e\xa5t\x7f\xf4\xe6G\xdfI\x16i\x9a\x91<!9\xbd$\xbe=%yJ
\x17\xf2\x15\xd6rbp\xc0\xac\x9f\xd2j')

On Aug 25, 1:51 pm, Ariel Nunez <ingenieroar...@gmail.com> wrote:
> Assuming you have PIL installed systemwide as well as virtualenv, mercurial
> and subversion.
>
> #Start here
> virtualenv myproject; cd myproject; source bin/activate
> easy_install pip
> wgethttp://gist.github.com/gists/174994/download-Osatchmo_requirements.txt
> pip install -r satchmo_requirements.txt
> python -c "import django;import satchmo_store; print
> satchmo_store.get_version();"
> #end here
>
> Ariel.
>
> PD: Here are the contents of the requirements file:
>
> django
>
> pycryptohttp://www.satchmoproject.com/snapshots/trml2pdf-1.2.tar.gz
>
> django-registration
>
> PyYAML
> docutils #optional
> -e svn+http://django-app-plugins.googlecode.com/svn/trunk/#egg=django-app-pl...
> -e hg+https://sorl-thumbnail.googlecode.com/hg/#egg=sorl-thumbnail
> -e hg+http://bitbucket.org/bkroeze/django-threaded-multihost/#egg=django-th...
> -e hg+http://bitbucket.org/chris1610/satchmo/#egg=satchmohttp://www.reportlab.org/ftp/ReportLab_2_3.tar.gz

Chris Moffitt

unread,
Sep 17, 2009, 7:01:14 PM9/17/09
to satchm...@googlegroups.com
You might want to try this guide - http://bitbucket.org/chris1610/satchmo/wiki/ImprovedInstallationProcess

I'm trying to streamline the process and this approach is similar to the cookbook approach you are using.

Any feedback is appreciated.

-Chris
Reply all
Reply to author
Forward
0 new messages