| Issue 81: | Installer copies "django_mptt-0.4.2-py2.x.egg" but not 'mptt' directory into 'site-packages', which breaks functionality. | |
| 1 person starred this issue and may be notified of changes. | Back to list |
> 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'.
Dec 8, 2010
Project Member
#1
craig.ds@gmail.com
Status:
Chatting
Dec 8, 2010
Also tested install works fine on a clean box via pip:
sudo pip install django-mptt
Dec 8, 2010
Ha! I haven't tried with 'pip' before. Just did, and everything worked as expected! So it seems the problem is with 'easy_install'...
Dec 18, 2010
Migrated to https://github.com/django-mptt/django-mptt/issues/#issue/104 |