google-code-export / django-mptt

Automatically exported from code.google.com/p/django-mptt
Other
0 stars 0 forks source link

Installer copies "django_mptt-0.4.2-py2.x.egg" but not 'mptt' directory into 'site-packages', which breaks functionality. #81

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
> What steps will reproduce the problem?

1. run 'python setup.py install'
2. "ls <PYTHON DIRECTORY>/lib/site-packages" and verify that 
"django_mptt-0.4.2-py2.x.egg" is there, but not mptt directory.
3. Attempt to use mptt.admin from your Django app.

> What is the expected output? What do you see instead?

TEST:
'import mptt' works fine
'mptt.__path__' reveals: 
"<PATH2PY>/site-packages/django_mptt-0.4.2-py2.6.egg/mptt"

PROBLEM:
When attempting to use the admin interface to add an instance of MyTreeModel 
after default install, I get Django error: TemplateDoesNotExists 
admin/mptt_change_list.html.
After manually copying 'mptt' into 'site-packages', the problem still occurs.

SOLUTION:
After manually removing "django_mptt-0.4.2-py2.x.egg" from 'site-packages', and 
just leaving the 'mptt' directory there, 'mptt.__path__' now reveals: 
"<PATH2PY>/site-packages/mptt" and everything works as expected.

> What version of the product are you using? On what operating system?

django_mptt-0.4.2
Mac OS X 10.6.5 (Python 2.6.5)

Also tested and experienced the same behavior on:
OpenBSD 4.8 (Python 2.5.4),
Debian 5.0.7 (Python 2.5.2),
CentOS 5.5 (Python 2.4.3)

> Please provide any additional information below.
I tried this with both, 'easy_install' and 'python setup.py install'.

Original issue reported on code.google.com by siraaj.k...@gmail.com on 7 Dec 2010 at 3:02

GoogleCodeExporter commented 9 years ago
Hi

Firstly, please verify 'mptt' is in your settings.INSTALLED_APPS ? If not, that 
will be the problem.

I've just tried this again on a clean box with 0.4.2 with Python 2.6.5 and 
django 1.2.3 and it works for me.

If you're sure your INSTALLED_APPS is correct, please paste it here along with 
your sys.path and I'll try and nut out what's wrong.

Original comment by craig.ds@gmail.com on 8 Dec 2010 at 9:49

GoogleCodeExporter commented 9 years ago
Also tested install works fine on a clean box via pip:

    sudo pip install django-mptt

Original comment by craig.ds@gmail.com on 8 Dec 2010 at 10:02

GoogleCodeExporter commented 9 years ago
Ha! I haven't tried with 'pip' before. Just did, and everything worked as 
expected! So it seems the problem is with 'easy_install'...

Original comment by siraaj.k...@gmail.com on 8 Dec 2010 at 3:16

GoogleCodeExporter commented 9 years ago
Migrated to https://github.com/django-mptt/django-mptt/issues/#issue/104

Original comment by craig.ds@gmail.com on 19 Dec 2010 at 1:11