Installation Problems from a n00b

215 views
Skip to first unread message

saturdayplace

unread,
Jan 13, 2008, 5:27:39 PM1/13/08
to Satchmo users
OK - Trying to add Satchmo to another django project, so I follow the
instructions on the wiki. After running load_data, it deletes all my
tables, and recreates them, no problem. First error I get is after I
enter yes to 'load sample store data?' The traceback I get ends with
this error:

raise SettingNotSet('%s config group does not exist' % group)

Googling found a couple solutions (in this Google Group) that
suggested importing all the Satchmo apps, so I listed them all in my
project.settings file. Then I get an import error:

ImportError: No module named Crypto.Cipher

So I go grab pycrypto from http://www.amk.ca/python/code/crypto and
sit it into my python path, renaming the directory from
'pycrypto-2.0.1' to 'Crypto'. Then I get this lovely message:

from Crypto.Ciper import Blowfish
ImportError: cannot import name Blowfish

Any Idea what I'm doing wrong? I feel like I'm running down one blind
alley after another, and I'm not at all sure that I'll end up with
things setup the way they're supposed to be.



Chris Moffitt

unread,
Jan 13, 2008, 6:21:48 PM1/13/08
to satchm...@googlegroups.com
I believe the problem you're having is that pycrypto was not installed properly.  This specific module compiles some code, so you can't just place it in your python path.  You need to run setup.py to do the install.

Try this instead:

- Download pycrypto to a temporary location i.e.: /home/chris/python-stuff
- Extract the tar ball and you should end up with a /pycrypto-2.0.1 directory
- cd into that directory and run: python setup.py install (you will need to do this as root)

That should get you up and running.  Let us know if you have more problems.

-Chris

saturdayplace

unread,
Jan 18, 2008, 11:20:53 AM1/18/08
to Satchmo users
Thanks, Chris, I'll give that a shot. Another question. Again,
please bear in mind that my training is in design, so I'm no
programmer. I'm quite a newb.

Q: Why does manually importing all the Satchmo Apps solve the first
error I mentioned? Is there something else I should be doing so that
isn't necessary? I'm not even sure what details from my setup would
be relevant to post that might help track the problem down.

Chris Moffitt

unread,
Jan 18, 2008, 3:46:21 PM1/18/08
to satchm...@googlegroups.com
Why don't you try posting your settings.py and local_settings.py files to http://dpaste.com/

There's no need to send that to the whole group.  Be sure to make sure your passwords are cleaned before submitting the dpaste.

-Chris

saturdayplace

unread,
Jan 19, 2008, 4:10:52 PM1/19/08
to Satchmo users
OK - Those settings files are dpasted: http://dpaste.com/31696/

BTW - Once I got the Crypto module properly installed, load_data ran
just fine, so thanks for that tip. But when I try to browser to
http://mysite/store, I get the following traceback: http://dpaste.com/31697/



On Jan 18, 1:46 pm, "Chris Moffitt" <ch...@moffitts.net> wrote:
> Why don't you try posting your settings.py and local_settings.py files tohttp://dpaste.com/

Chris Moffitt

unread,
Jan 19, 2008, 5:09:13 PM1/19/08
to satchm...@googlegroups.com
The reason you're getting the traceback is that you do not have the variable LOCAL_DEV defined in your settings.py file.  If you look at the settings-customize.py file, you'll notice that there is a variable at the top called LOCAL_DEV which is used to identify whether or not you're running the local dev server.  At that variable and assign it a value and your traceback should be gone.

I'd also recommend that you put your django.contrib apps towards the top of the INSTALLED_APPS list.  I believe there are some dependencies there so do it just to be safe.

-Chris

saturdayplace

unread,
Jan 20, 2008, 4:54:53 PM1/20/08
to Satchmo users
Thanks for all your patience Chris, I think I've finally got it up and
running. I added the LOCAL_DEV variable to satchmo.local_settings,
and that sorts me out.

That's again. And thanks to the whole satchmo team for putting this
together. Really great stuff.
Reply all
Reply to author
Forward
0 new messages