How can I install Satchmo?

by Christos Hayward   Last Updated June 12, 2019 08:00 AM - source

I am trying to install Satchmo 0.9 on an Ubuntu 9.10 32-bit guest off of the instructions at http://bitbucket.org/chris1610/satchmo/downloads/Satchmo.pdf. I run into difficulties at 2.1.2:

pip install -r http://bitbucket.org/chris1610/satchmo/raw/tip/scripts/requirements.txt
pip install -e hg+http://bitbucket.org/chris1610/satchmo/@v0.9#egg=satchmo

The first command fails because a compile error for how it's trying to build PIL. So I ran an "aptitude install python-imaging", locally copy the first line's requirements.text, and remove the line that's unsuccessfully trying to build PIL. The first line completes without reported error, as does the second.

The next step tells me to change directory to the /path/to/new/store, and run:

python clonesatchmo.py

A little bit of trouble here; I am told that clonesatchmo.py will be in /bin by now, and it isn't there, but I put some Satchmo stuff under /usr/local, create a symlink in /bin, and run:

python /bin/clonesatchmo.py

This gives:

[email protected]:~/store$ python /bin/clonesatchmo.py 
Creating the Satchmo Application
Traceback (most recent call last):
  File "/bin/clonesatchmo.py", line 108, in <module>
    create_satchmo_site(opts.site_name)
  File "/bin/clonesatchmo.py", line 47, in create_satchmo_site
    import satchmo_skeleton
ImportError: No module named satchmo_skeleton

A find after apparently checking out the repository reveals that there is no file with a name like satchmoskeleton on my system. I thought that bash might be prone to take part of the second pip invocation's URL as the beginning of a comment; I tried both:

pip install -e hg+http://bitbucket.org/chris1610/satchmo/@v0.9\#egg=satchmo
pip install -e hg+http://bitbucket.org/chris1610/satchmo/@v0.9#egg=satchmo

Neither way of doing it seems to take care of the import error mentioned above.

How can I get a Satchmo installation under Ubuntu, or at least enough of a Satchmo installation that I am able to start with a skeleton of a store and then flesh it out the way I want?

Tags : python django


Answers 2


I had the same problem when I tried Satchmo a while back. Some mailing list hunting turned up a problem with the packaging. A directory isn't copied over correctly.

http://www.mail-archive.com/[email protected]/msg03905.html

You just need to copy that directory over to your satchmo site-packages location and it should pick it up as it will be on sys.path.

McJeff
McJeff
March 17, 2010 14:53 PM

I solved "ImportError: No module named satchmo_skeleton" problem by running the command python ../../../scripts/clonesatchmo.py from the apps or projects folder in which skeleton and simple is present.

Vishal B.
Vishal B.
June 12, 2019 07:59 AM

Related Questions



Django MemoryError when loading in XML

Updated March 16, 2017 19:00 PM



IIS error 1326 when trying to chdir to mapped drive

Updated March 29, 2017 21:00 PM