fgallina / python-django.el

An Emacs package for managing Django projects.
GNU General Public License v3.0
67 stars 24 forks source link

An error occurred retrieving project information #5

Closed danny-key-88 closed 11 years ago

danny-key-88 commented 11 years ago

I'm having an issue getting this module working with my django setup. I work on a relatively mature project so we may have an unusual directory structure. Essentially, we have...

/apps /apps/django <-- manage.py /apps/django/buildbox <-- settings.py /apps/django/apps/ /apps/django/apps/[other sub-apps]

...The error I'm getting is...

Error:

Django Version: 1.5 Project: ~/work/GITDIRS/apps/django/buildbox/ Settings: buildbox.settings Virtualenv: None

An error occurred retrieving project information. Check your project settings and try again:

Current values:

Error: End of file during parsing


Any ideas on what's going wrong? My apologies if I've missed something obvious.

fgallina commented 11 years ago

danny-key-88 notifications@github.com writes:

I'm having an issue getting this module working with my django setup. I work on a relatively mature project so we may have an unusual directory structure. Essentially, we have...

/apps /apps/django <-- manage.py /apps/django/buildbox <-- settings.py /apps/django/apps/ /apps/django/apps/[other sub-apps]

...The error I'm getting is...

Error:

Django Version: 1.5 Project: ~/work/GITDIRS/apps/django/buildbox/ Settings: buildbox.settings Virtualenv: None

An error occurred retrieving project information. Check your project settings and try again:

Current values:

• python-django-project-root: ~/work/GITDIRS/apps/django/buildbox/ • python-django-project-settings: buildbox.settings • python-shell-interpreter: python □ found in /usr/bin/python

Error: End of file during parsing

Any ideas on what's going wrong? My apologies if I've missed something obvious.

Try updating your installed version of python-django.el to the current HEAD.

I fixed settings parsing when output was triggered to stdout at import time (logger.log, etc) in a previous commit and that might be the solution for your case.

danny-key-88 commented 11 years ago

That doesn't seem to have fixed the issue. I updated my git clone but the behavior is still the same. Just in case this makes a difference, this is my .dir-locals.el file in the "/apps" folder...

.dir-locals.el

((python-mode (python-shell-interpreter . "python") (python-shell-interpreter-args . "/work/GITDIRS/apps/django/manage.py shell") (python-shell-extra-pythonpaths "/work/GITDIRS/apps/django/") ;; (python-shell-extra-pythonpaths "/work/GITDIRS/apps/django/") ;; (python-shell-extra-pythonpaths "/work/GITDIRS/apps/django/apps/") ;; (python-shell-virtualenv-path . "/home/fgallina/.virtualenvs/anue") ))


Is there something I should have as an environment variable or in my PATH/PYTHONPATH that I might not have set? Is there any other useful information I could get you? Forgive me but my knowledge of lisp is |--| <-- this big.

danny-key-88 commented 11 years ago

Bump

fgallina commented 11 years ago

first, ensure your settings module is valid, then ensure all your paths are absolute (not relative).