Windows Server Installation

Problems, questions, or anything else related to the MV3D server.

Moderator: SirGolan

Windows Server Installation

Postby multiverseuser » Tue Apr 01, 2008 8:27 am

Hello,

I would like to setup a local server to test both the client and server side of
multiverse.

I have a vista computer SP1 and I installed the following packages:
* Python (2.5)
* PyODE
* Python-cjson
* Twisted
* PyCrypto
* PyOpenSSL
* Psyco
* PIL
Also
* within python25\lib\site-packages
I have
* zope + egg
* nevow

I tried the following command

twistd -n mv3d -i -n 1 -t 3

and I get a error from the following module:

C:\Python25\scripts\twistd.py: Unknown command: mv3d


I think I'm missing some twist or python mv3d configuration

Thanks,
Last edited by multiverseuser on Thu Apr 10, 2008 3:11 am, edited 1 time in total.
multiverseuser
 
Posts: 103
Joined: Sun Mar 30, 2008 4:29 pm

Re: Server Installation

Postby SirGolan » Tue Apr 01, 2008 3:15 pm

Hoepfully this should be an easy one-- I think you will just need to run that command in the mv3d-0.3 directory (where there is a "mv3d" subdirectory and a "twisted" subdirectory). It is possible to make that command work from any directory by adding the mv3d-0.3 directory into your python path OR by installing Divmod Combinator. There's a good (but a little outdated) set of instructions for installing Combinator on Windows. The only thing really missing (other than links to outdated versions of packages) is that you need to add at least one environment var: COMBINATOR_PROJECTS which points to where you want to put your Projects folder. Combinator is very useful for managing multiple branches of an SVN tree. There's some Combinator documentation online as well.

To explain how twistd works a bit, it searches all entries in your PYTHONPATH for subdirectories named twisted\plugins. Then it loads plugins (like MV3D) from there. That's why it works if you run twistd in the same directory as MV3D.

Thanks,

Mike
SirGolan
Site Admin
 
Posts: 214
Joined: Wed Mar 19, 2008 7:04 pm

Re: Server Installation

Postby SirGolan » Tue Apr 01, 2008 3:18 pm

I just noticed you mentioned that you ran twistd from the mv3d folder in the other thread. That's an interesting one then. I'm pretty sure that's how I run it on my laptop (since I don't have Combinator there), but I'll give it a try later today and let you know.
SirGolan
Site Admin
 
Posts: 214
Joined: Wed Mar 19, 2008 7:04 pm

Re: Server Installation

Postby multiverseuser » Wed Apr 02, 2008 12:33 am

Hello again,

I added PYTHONPATH to the system variables with the following value
"C:\multiverse3d" because that it where my code is.

Also I added to the PATH c:\python25\scripts
This allows me to use any console to call the server.

Here is the latest error

C:\multiverse3d>twistd.py -n mv3d -i -n 1 -t 3
Traceback (most recent call last):
File "C:\python25\scripts\twistd.py", line 21, in <module>
run()
File "C:\Python25\lib\site-packages\twisted\scripts\twistd.py", line 24, in run
app.run(runApp, ServerOptions)
File "C:\Python25\lib\site-packages\twisted\application\app.py", line 599, in run
runApp(config)
File "C:\Python25\lib\site-packages\twisted\scripts\twistd.py", line 20, in runApp
_SomeApplicationRunner(config).run()
File "C:\Python25\lib\site-packages\twisted\application\app.py", line 326, in run
self.application = self.createOrGetApplication()
File "C:\Python25\lib\site-packages\twisted\application\app.py", line 396, in
createOrGetApplication
ser = plg.makeService(self.config.subOptions)
File "C:\multiverse3d\twisted\plugins\mv3d_server.py", line 73, in makeService

c.configure(nm, cp)
File "C:\multiverse3d\mv3d\util\conductor.py", line 153, in configure
svc = getattr(__import__(smod, globals(), locals(), [scls]), scls)()
File "C:\multiverse3d\mv3d\server\login.py", line 16, in <module>
from nevow import loaders, rend, inevow, guard, tags as T, appserver
File "C:\Python25\lib\site-packages\nevow\__init__.py", line 143, in <module>
load(basic_adapters)
File "C:\Python25\lib\site-packages\nevow\__init__.py", line 29, in load
registerAdapter(_namedAnyWithBuiltinTranslation(a),
File "C:\Python25\lib\site-packages\nevow\util.py", line 183, in _namedAnyWith
BuiltinTranslation
return namedAny(name)
File "C:\Python25\lib\site-packages\twisted\python\reflect.py", line 426, in n
amedAny
topLevelPackage = _importAndCheckStack(trialname)
File "C:\Python25\lib\site-packages\twisted\python\reflect.py", line 390, in _
importAndCheckStack
raise
File "C:\Python25\lib\site-packages\twisted\python\reflect.py", line 377, in _
importAndCheckStack
return __import__(importName)
ValueError: Empty module name


thanks,
multiverseuser
 
Posts: 103
Joined: Sun Mar 30, 2008 4:29 pm

Re: Server Installation

Postby SirGolan » Wed Apr 02, 2008 5:49 am

That traceback looks very familiar, but I can't remember what the issue is. I'll keep thinking about it and have a better look for a solution tomorrow.
SirGolan
Site Admin
 
Posts: 214
Joined: Wed Mar 19, 2008 7:04 pm

Re: Server Installation

Postby multiverseuser » Tue Apr 08, 2008 3:01 am

Looking at the trace, it looks like the errors are coming from
a missing configuration parameter or a missing module.
multiverseuser
 
Posts: 103
Joined: Sun Mar 30, 2008 4:29 pm

Re: Server Installation

Postby SirGolan » Tue Apr 08, 2008 4:07 am

What if you just run a python interpreter and do a "from nevow import loaders, rend, inevow, guard, tags as T, appserver"? Do you get the same error message? It's got to be a dependency of nevow, but I'm not sure what it could be. Did you just install nevow, or all of the Divmod goodies? I'd suggest installing them all. Maybe that'll fix it.
SirGolan
Site Admin
 
Posts: 214
Joined: Wed Mar 19, 2008 7:04 pm

Re: Server Installation

Postby multiverseuser » Tue Apr 08, 2008 5:42 am

That fails.
I got the nevow from the mv3d-prereqs-windows.zip. I have never installed nevow, I just
copied the files over along with the zope egg info.
multiverseuser
 
Posts: 103
Joined: Sun Mar 30, 2008 4:29 pm

Re: Server Installation

Postby SirGolan » Tue Apr 08, 2008 5:45 am

Hmm, could be that you need the rest of the Divmod stuff. You may want to try getting it from subversion:

Code: Select all
svn co http://divmod.org/svn/Divmod/trunk/ Divmod


(or using whatever svn client you have)

If you are going to run Combinator, it's probably best to use the link I gave before instead of just SVN'ing it with a command like above. Here's that link again: http://cyli.livejournal.com/22274.html
SirGolan
Site Admin
 
Posts: 214
Joined: Wed Mar 19, 2008 7:04 pm

Re: Server Installation

Postby multiverseuser » Tue Apr 08, 2008 6:07 am

I installed the files you suggested. I got this:


C:\mv3d-0_3\mv3d-0.3>twistd.py -n mv3d -i -n 1 -t 3
C:\Python25\lib\site-packages\nevow\context.py:37: Warning: 'with' will become a reserved keyword in Python 2.6
2008-04-07 22:58:56-0700 [-] Log opened.
2008-04-07 22:58:57-0700 [-] twistd 8.0.1 (C:\Python25\python.exe 2.5.2) starting up
2008-04-07 22:58:57-0700 [-] reactor class: <class 'twisted.internet.selectreactor.SelectReactor'>
2008-04-07 22:58:57-0700 [-] server MV3D Server initialization successful.
2008-04-07 22:58:57-0700 [-] server <mv3d.net.client.ServiceLoc instance at 0x05166940> registered as a Asset.
2008-04-07 22:58:57-0700 [-] server <mv3d.net.client.ServiceLoc instance at 0x051934B8> registered as a Realm.
2008-04-07 22:58:57-0700 [-] nevow.appserver.NevowSite starting on 8080
2008-04-07 22:58:57-0700 [-] Starting factory <nevow.appserver.NevowSite instance at 0x05A8D710>
2008-04-07 22:58:57-0700 [-] twisted.spread.pb.PBServerFactory starting on 1999
2008-04-07 22:58:57-0700 [-] Starting factory <twisted.spread.pb.PBServerFactory instance at 0x05A92648>
2008-04-07 22:58:57-0700 [-] server Account added account called mike.
2008-04-07 22:58:57-0700 [-] info Asset is downloading Extern\Group0\ServerSide\
__init__.py from http://dev.mv3d.com/~mike/mv3d/Example/ ... _init__.py.
2008-04-07 22:59:18-0700 [-] info Asset is downloading Extern\Group0\ServerSide\
SetupAssets.py from http://dev.mv3d.com/~mike/mv3d/Example/ ... pAssets.py.
2008-04-07 22:59:18-0700 [-] Unhandled error in Deferred:
2008-04-07 22:59:18-0700 [-] Unhandled Error
Traceback (most recent call last):
--- <exception caught here> ---
File "c:\python25\lib\site-packages\twisted\internet\threads.py", line 24, in _putResultInDeferred
result = f(*args, **kwargs)
File "c:\python25\lib\urllib.py", line 89, in urlretrieve
return _urlopener.retrieve(url, filename, reporthook, data)
File "c:\python25\lib\urllib.py", line 222, in retrieve
fp = self.open(url, data)
File "c:\python25\lib\urllib.py", line 194, in open
raise IOError, ('socket error', msg), sys.exc_info()[2]
File "c:\python25\lib\urllib.py", line 190, in open
return getattr(self, name)(url)
File "c:\python25\lib\urllib.py", line 325, in open_http
h.endheaders()
File "c:\python25\lib\httplib.py", line 860, in endheaders
self._send_output()
File "c:\python25\lib\httplib.py", line 732, in _send_output
self.send(msg)
File "c:\python25\lib\httplib.py", line 699, in send
self.connect()
File "c:\python25\lib\httplib.py", line 683, in connect
raise socket.error, msg
exceptions.IOError: [Errno socket error] (10060, 'Operation timed out')

2008-04-07 22:59:19-0700 [-] info Asset downloaded ServerSide\SetupAssets.py.
2008-04-07 22:59:19-0700 [-] C:\mv3d-0_3\mv3d-0.3\mv3d\util\classgen.py:214: exceptions.ImportWarning: Not importing directory 'Extern\Group0\ServerSide': missing __init__.py
2008-04-07 22:59:19-0700 [-] Import Failed! ['C:\\python25\\scripts', 'C:\\mv3d-0_3\\mv3d-0.3', 'C:\\multiverse3d', 'C:\\Windows\\system32\\python25.zip', 'C:\\Python25\\DLLs', 'C:\\Python25\\lib', 'C:\\Python25\\lib\\plat-win', 'C:\\Python
25\\lib\\lib-tk', 'C:\\Python25', 'C:\\Python25\\lib\\site-packages', 'C:\\Pytho
n25\\lib\\site-packages\\PIL', 'C:\\Python25\\lib\\site-packages\\win32', 'C:\\P
ython25\\lib\\site-packages\\win32\\lib', 'C:\\Python25\\lib\\site-packages\\Pyt
honwin', 'C:\\Python25\\lib\\site-packages\\wx-2.8-msw-ansi', 'Extern']
2008-04-07 22:59:19-0700 [-] module= Group0.ServerSide.SetupAssets class= ExampleAssetCreator
2008-04-07 22:59:19-0700 [-] Unhandled error in Deferred:
2008-04-07 22:59:19-0700 [-] Unhandled Error
Traceback (most recent call last):
--- <exception caught here> ---
File "c:\python25\lib\site-packages\twisted\internet\defer.py", line 323, in _runCallbacks
self.result = callback(self.result, *args, **kw)
File "C:\mv3d-0_3\mv3d-0.3\mv3d\server\worldgen.py", line 197, in acquired
d = cg.construct()
File "C:\mv3d-0_3\mv3d-0.3\mv3d\util\classgen.py", line 159, in construct
d = self.getConstructor()
File "C:\mv3d-0_3\mv3d-0.3\mv3d\util\classgen.py", line 198, in getConstructor
return self.getConstructor_construct()
File "C:\mv3d-0_3\mv3d-0.3\mv3d\util\classgen.py", line 238, in getConstructor_construct
raise
File "C:\mv3d-0_3\mv3d-0.3\mv3d\util\classgen.py", line 233, in getConstructor_construct
locals(), [self.classname])
exceptions.ImportError: No module named ServerSide.SetupAssets
multiverseuser
 
Posts: 103
Joined: Sun Mar 30, 2008 4:29 pm

Next

Return to Server Software

Who is online

Users browsing this forum: No registered users and 1 guest

cron