Install Error: about twisted

97 views
Skip to first unread message

Prim

unread,
Sep 12, 2011, 12:30:00 AM9/12/11
to Evennia
Hi everyone, I am trying to install Evennia on my Ubuntu, but met some
error.

1. Get the pre-requisites (mainly Python, Django, Twisted and
Mercurial).
> apt-get install python python-django python-twisted mercurial
Now under Ubuntu 11.04, Python 2.7.1, Django 1.2.5, Twisted
10.2.0.
2. > hg clone https://code.google.com/p/evennia/ evennia
> cd evennia
3. > python manage.py
get this: ImportError: Could not import settings 'settings.py' (Is
it on sys.path? Does it have syntax errors?): No module named py
but already get 'settings.py' under /game, so i abort it.
4. > python manage.py syncdb
get these, seems normal:
- Creating table xxx
- then create a super user
- Install index for xxx
5. > python evennia.py -i start
get these:
##############################################################
Starting Evennia Server (output to stdout).

Starting Evennia Portal in Daemon mode (output to portal logfile).

--------------------------------------------------
Evennia Portal (HG-Alpha) started.
amp (Server): 5000
telnet: 4000
webserver/client: 8000
--------------------------------------------------

--------------------------------------------------
Server started for the first time. Setting defaults.
Creating objects (Player #1 and Limbo room) ...
Traceback (most recent call last):
File "/usr/bin/twistd", line 19, in <module>
run()
File "/usr/lib/python2.7/dist-packages/twisted/scripts/twistd.py",
line 27, in run
app.run(runApp, ServerOptions)
File "/usr/lib/python2.7/dist-packages/twisted/application/app.py",
line 631, in run
runApp(config)
File "/usr/lib/python2.7/dist-packages/twisted/scripts/twistd.py",
line 23, in runApp
_SomeApplicationRunner(config).run()
File "/usr/lib/python2.7/dist-packages/twisted/application/app.py",
line 376, in run
self.logger.start(self.application)
File "/usr/lib/python2.7/dist-packages/twisted/application/app.py",
line 216, in start
observer = self._getLogObserver()
File "/usr/lib/python2.7/dist-packages/twisted/scripts/
_twistd_unix.py", line 139, in _getLogObserver
logFile = logfile.LogFile.fromFullPath(self._logfilename)
File "/usr/lib/python2.7/dist-packages/twisted/python/logfile.py",
line 49, in fromFullPath
os.path.dirname(logPath), *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/twisted/python/logfile.py",
line 162, in __init__
BaseLogFile.__init__(self, name, directory, defaultMode)
File "/usr/lib/python2.7/dist-packages/twisted/python/logfile.py",
line 34, in __init__
assert os.path.isdir(self.directory)
AssertionError
##############################################################
6. > netstat -a
I didnt see any listen on port 4000/8000 except 5000.

Is this error happen because twisted's version not right?

Griatch Art

unread,
Sep 13, 2011, 4:24:38 AM9/13/11
to eve...@googlegroups.com
Hi and welcome to Evennia!

Nope, this is not the fault of Twisted, it's all my fault. :) The recent switch to Mercurial as well as additions of internationalization left some artifacts. Basically, internationalization tried to start up also before a settings file was available, giving the error - and leading to your database not getting set up correctly.

A silly bug that is fixed in latest repo. Pull the latest, remove game/evennia.db3 (if you have it) and your game/settings.py and try again. Should work better now.
.
Griatch

Prim

unread,
Sep 13, 2011, 8:09:00 AM9/13/11
to Evennia
- rm settrings.* evennia.db3
- hg pull
I got the same error. Maybe I messed something, then I cloned the
latest version in another place. Now evennia run well. Have to say
evennia is a wonderful work, thanks ur help. :)
Reply all
Reply to author
Forward
0 new messages