ImportError: No module named django.conf

4,311 views
Skip to first unread message

Christina

unread,
Mar 23, 2014, 3:33:52 AM3/23/14
to eve...@googlegroups.com
Hello!

This is likely a user error, given that I am a complete newbie in all this regard.  I'm a long time tinymux user and comfortable in that environment, and find Evennia fascinating.  That being said, I cannot get it to install.   I set up a hosting account on webfactions, created a new user, and installed Python 2.7, Django 1.6, Twisted 13.2, Pillow, and South 0.8.4. 

When I try to actually start up the database, I receive the following error: 

Traceback (most recent call last):
  File "runner.py", line 49, in <module>
    from django.conf import settings
ImportError: No module named django.conf

Any suggestions? I've tried numerous version types, but perhaps I am not using the right ones.

Thank you very much in advance. 

Griatch Art

unread,
Mar 24, 2014, 4:35:25 AM3/24/14
to eve...@googlegroups.com
Hi and welcome to Evennia!

The library versions you installed look okay so that should not be the problem. You don't say which OS you use but I assume it's some linux version (I hope you know you don't need to set up a hosting account to test Evennia, it works perfectly fine on your local machine while you develop). The error you get seems to suggest django is not installed correctly; to make sure, go to your evennia/game folder and try:

    python manage.py shell

This uses django to open a python shell with all paths set up. You can then try from django.conf import settings to see if that works from the command line.

If Django is working, your game/settings.py file could possibly have some syntax error but then the error should probably had shown that too. So test the django install first.
.
Griatch

Ashlan

unread,
Dec 11, 2014, 12:44:15 AM12/11/14
to eve...@googlegroups.com
Hi guys, I am having the same error.  It is probably related to how I am using web faction and it doesn't allow me to use some of the standard unix or ubuntu commands.  I got past a similar error message involving twisted by installing twisted from a .tar and that seemed to satisfy it, but a similar approach to django didn't work here.

I've tried opening the settings.py file to paste in some changes from settings_default.py but there is no reference to django.conf in settings_default.py so I'm pretty lost on what to do about this.

Ashlan

unread,
Dec 11, 2014, 2:20:07 AM12/11/14
to eve...@googlegroups.com
Also, I've tried the virtualenv approach as well but am getting the same django.conf error.

Ashlan

unread,
Dec 11, 2014, 3:18:50 AM12/11/14
to eve...@googlegroups.com
One more thing :) I am running a search (find -name "django.conf") and getting nothing back.  Do I have the wrong version of django installed or something?

Kelketek Rritaa

unread,
Dec 11, 2014, 7:02:01 AM12/11/14
to eve...@googlegroups.com
django.conf will not be in the repository as a file, but will be django/conf.py somewhere in your installed library files.

You said you've tried virtualenv. Are you making sure to use:

source <virtualenv>/bin/activate 

...before running:

pip install -r evennia/requirements.txt

? More information on this (and the Windows version of the command) can be found here: http://virtualenv.readthedocs.org/en/latest/virtualenv.html#activate-script

On Dec 11, 2014, at 2:18 AM, Ashlan <wortham...@gmail.com> wrote:

One more thing :) I am running a search (find -name "django.conf") and getting nothing back.  Do I have the wrong version of django installed or something?

--
--
You received this message because you are subscribed to the "Evennia" MU* server mailing list.
To post to this group, send email to eve...@googlegroups.com (or use the web interface).
To unsubscribe from this group, send email to evennia+u...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/evennia?hl=en

---
You received this message because you are subscribed to the Google Groups "Evennia" group.
To unsubscribe from this group and stop receiving emails from it, send an email to evennia+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages