Can you import Django from an empty current directory? (Maybe you lost a 
virtualenv variables VIRTUAL_ENV and PATH and django is importable only 
from a specific current directory.) Try the installation again starting 
from a new empty current directory.

Without more information it is hard to reproduce it because clonesatchmo.py 
supports virtualenv even without environment variables in most normal cases 
since November 2011 by remembering the same executable file path of Python.

You can explore the problem this way
    $ python manage.py shell
    Python 2.x.x version...
    >>> import os, sys
    >>> print sys.executable
    /some/path/to/python
    >>> os.system('bash')
    # repeat the same Python executable
    $ /some/path/to/python manage.py validate   # or another management 
command
    # this will also fail on "from django.core.management import 
execute_manager"

I am working on fixes that require releasing of Satchmo 0.9.4 and I want to 
consider also causation of your problem.

(Excuse some current DeprecationWarning)

Hynek


Dne neděle, 28. dubna 2013 16:30:53 UTC+2 Aft nix napsal(a):
>
> Hi,
>
> I'm trying to install satchmo.
>
> I've followed the "quick install" document.
>
> during python scripts/clonesatchmo.py the following errors are reported
>
> rif@khost:~/src/satchmo$ sudo python scripts/clonesatchmo.py
> Creating the Satchmo Application
> Customizing the files
> Performing initial data synching
> Traceback (most recent call last):
>   File "manage.py", line 18, in <module>
>     from django.core.management import execute_manager
> ImportError: cannot import name execute_manager
> Traceback (most recent call last):
>   File "manage.py", line 18, in <module>
>     from django.core.management import execute_manager
> ImportError: cannot import name execute_manager
> Error: Can not copy the static files.
> Error: Can not syncdb.
>
>
> But i'm a bit confused as when i try to import the execute_manager in
> "shell" it works:
>
> In [1]: from django.core.management import execute_manager
>
> In [2]: dir(execute_manager)
> Out[2]:
> ['__call__',
>  '__class__',
>  '__closure__',
>  '__code__',
>  '__defaults__',
>  '__delattr__',
>  '__dict__',
>  '__doc__',
>  '__format__',
>  '__get__',
>  '__getattribute__',
>  '__globals__',
>  '__hash__',
>  '__init__',
>  '__module__',
>  '__name__',
>  '__new__',
>  '__reduce__',
>  '__reduce_ex__',
>  '__repr__',
>  '__setattr__',
>  '__sizeof__',
>  '__str__',
>  '__subclasshook__',
>  'func_closure',
>  'func_code',
>  'func_defaults',
>  'func_dict',
>  'func_doc',
>  'func_globals',
>  'func_name']
>
> --
> -Cheers
> -Arif
>

-- 
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/satchmo-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to