The problem is that you probably have installed all these three
packages as compressed egg, which is problematic with Django.
(The path ...-packages/django_registration-0.7-py2.6.egg/ can be
either .egg directory or compressed .egg archive, but if
imp.find_module('packagename') raises an error this is usually because
it is compressed whereas "inport packagename" works for both)
You can verify one type of the problem by:
cd .../store
$ sudo rm -rf /usr/local/lib/python2.*/dist-packages/
django_registration-0.7-py2.*.egg*
$ sudo easy_install --zip-ok django-registration
# ... (is zip compressed)
$ python manage.py cleanupregistration
Unknown command: 'cleanupregistration'
$ sudo rm -rf /usr/local/lib/python2.*/dist-packages/
django_registration-0.7-py2.*.egg*
$ sudo easy_install --always-unzip django-registration
# ... (is uncompressed)
$ python manage.py cleanupregistration
# ... (no output = OK)
This is the reason why I verify ALL packages by imp.find_package(...),
not only by __import__(...)
IMO it is better to forbid all compressed packages with Django then to
explore what would work and what not, because Django uses also
imp.find_package sometimes in the code.
So, I only improve an error message to mention it requires
uncompressed installation. My code is aproximately correct and useful
already. phew...
An issue with minor priority have been created
https://bitbucket.org/chris1610/satchmo/issue/1356/unsupported-compressed-egg-packages
After all other known issues with satchmo_check would be fixed in the
main satchmo repository I would like to invite you users to often make
use satchmo_check when you are reporting details for some problem.
On 30 říj, 03:04, Malcolm MacKinnon <[email protected]> wrote:
> Thanks for offering to help. Here is what I get:
>
> >>> import imp
> >>> print imp.find_module('registration', None)
>
> Traceback (most recent call last):
> File "<console>", line 1, in <module>
> ImportError: No module named registration>>> import registration
> >>> print registration
>
> <module 'registration' from
> '/usr/local/lib/python2.6/dist-packages/django_registration-0.7-py2.6.egg/registration/__init__.pyc'>
>
>
>
>
>
>
>
> >>> from satchmo_store.shop.management.commands.satchmo_check import
> find_module_extend
> >>> print find_module_extend('registration')
> (None, None, None)
>
> On Sat, Oct 29, 2011 at 6:14 PM, hynekcer <[email protected]> wrote:
> > I should help you because I am responsible for the actual
> > "satchmo_check" command. I am surprised by your report.
> > Please try the following commands:
>
> > python manage.py shell
> > >>> import imp
> > >>> print imp.find_module('registration', None)
> > >>> import registration
> > >>> print registration
> > >>> from satchmo_store.shop.management.commands.satchmo_check import
> > find_module_extend
> > >>> print find_module_extend('registration')
>
> > What is the output? You can write these details direct to me
> > eventually.
> > This is enough for me to identify your (probably unusual) installation
> > and write a patch for similar cases.
>
> > hynek
>
> > On 28 říj, 19:16, Malcolm MacKinnon <[email protected]> wrote:
> > > Thanks for responding. I retried my imports in the manage.py shell mode
> > and
> > > they all worked. The problem must be due to something else.
>
> > > On Fri, Oct 28, 2011 at 8:28 AM, scjohn <[email protected]> wrote:
> > > > Could it be that the dependencies are installed to your global python
> > > > instance, but not a virtual environment.
>
> > > > Try:
>
> > > > python manage.py shell
>
> > > > then re-try your imports to see if they still work.
>
> > > > John
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Satchmo users" group.
> > > > To post to this group, send email to [email protected].
> > > > To unsubscribe from this group, send email to
> > > > [email protected].
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/satchmo-users?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Satchmo users" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected].
> > For more options, visit this group at
> >http://groups.google.com/group/satchmo-users?hl=en.
--
You received this message because you are subscribed to the Google Groups
"Satchmo users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/satchmo-users?hl=en.