panda3d and linux

Anything related to MV3D.

Moderator: SirGolan

panda3d and linux

Postby unkier » Mon Jul 11, 2011 8:50 am

i want to try mv3d in linux with panda3d. what should i do ?
unkier
 
Posts: 8
Joined: Wed Nov 25, 2009 6:27 am

Re: panda3d and linux

Postby SirGolan » Mon Jul 11, 2011 4:47 pm

I just became aware this morning that the Linux Client Install wiki page seems to pre-date Panda support and doesn't mention support fo it at all. I'm looking to remedy that right now (at least as far as I can while not sitting in front of a Linux box). If you are on Ubuntu, this should get you the dependencies:

Code: Select all
sudo apt-get -s install python python-twisted python-pyode python-wxgtk2.8


Add in python-cjson if you are running on Python 2.5. The only other dependency you need is Panda. You can download that from the Panda site.

Someone in the IRC channel got it going pretty quickly this morning with pretty much the same instructions from me, so it should work.

To run a local server, you'll just need to run the Overseer gui tool. You should be able to do that following the instructions for starting your own server. Here's the command-line for starting up Overseer:

Code: Select all
mike@server:~/mv3d/trunk$ cd mv3d/tools/overseer
mike@server:~/mv3d/trunk/mv3d/tools/overseer$ python overseer.py


Hope that helps! Let me know if you have any questions or feel free to stop by our IRC channel, #MV3D on irc.freenode.net.

Thanks!

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

Re: panda3d and linux

Postby unkier » Tue Jul 12, 2011 4:52 am

i am using archlinux and python 2.7
here is what i got


Code: Select all
Traceback (most recent call last):
  File "mv3d/tools/overseer/overseer.py", line 65, in <module>
    from mv3d.server.overseer import ChildServer
  File "/home/demon/devel/mv3d_trunk/mv3d/server/overseer.py", line 38, in <module>
    from mv3d.server.worldgen import WorldGenerator
  File "/home/demon/devel/mv3d_trunk/mv3d/server/worldgen.py", line 36, in <module>
    from mv3d.server.model.octree import OctreeArea
  File "/home/demon/devel/mv3d_trunk/mv3d/server/model/octree.py", line 34, in <module>
    from mv3d.util.conductor import RemoteException
ImportError: cannot import name RemoteException
unkier
 
Posts: 8
Joined: Wed Nov 25, 2009 6:27 am

Re: panda3d and linux

Postby Acidz » Tue Jul 12, 2011 6:28 am

Hi,

Yea I got panda3D running as the client... But I have the same error when it comes to running the server/overseer...?

Code: Select all
acer@acer-tech:~/Projects/MV3D/trunk/mv3d/tools/overseer$ python overseer.py
Traceback (most recent call last):
  File "overseer.py", line 65, in <module>
    from mv3d.server.overseer import ChildServer
  File "/home/acer/Projects/MV3D/trunk/mv3d/server/overseer.py", line 38, in <module>
    from mv3d.server.worldgen import WorldGenerator
  File "/home/acer/Projects/MV3D/trunk/mv3d/server/worldgen.py", line 36, in <module>
    from mv3d.server.model.octree import OctreeArea
  File "/home/acer/Projects/MV3D/trunk/mv3d/server/model/octree.py", line 34, in <module>
    from mv3d.util.conductor import RemoteException
ImportError: cannot import name RemoteException


Martin.
- Martin -

^ Unspoken words cause the soul more pain then spoken words.... ^
Acidz
 
Posts: 2
Joined: Mon Jul 11, 2011 9:17 am
Location: South Africa

Re: panda3d and linux

Postby unkier » Tue Jul 12, 2011 7:04 am

to Acidz:
how did you start the client ? i am getting error:

Code: Select all
[demon@demon mv3d_trunk]$ python2 RunClient.py
2011-07-12 13:03:53+0600 [-] Log opened.
2011-07-12 13:03:53+0600 [-] Unhandled Error
   Traceback (most recent call last):
     File "RunClient.py", line 105, in <module>
       go()
     File "/usr/lib/python2.7/site-packages/twisted/internet/defer.py", line 1141, in unwindGenerator
       return _inlineCallbacks(None, f(*args, **kwargs), Deferred())
     File "/usr/lib/python2.7/site-packages/twisted/internet/defer.py", line 1020, in _inlineCallbacks
       result = g.send(result)
   --- <exception caught here> ---
     File "RunClient.py", line 83, in go
       conductor.configure(options["config-name"], cf, configfile)
     File "/home/demon/devel/mv3d_trunk/mv3d/util/conductor.py", line 266, in configure
       svc.configure(svcn, cf)
     File "/home/demon/devel/mv3d_trunk/mv3d/client/player.py", line 128, in configure
       self.ui = self.renderer.getRendererClass(IUserInterfaceLibrary)(self)
   exceptions.AttributeError: 'NoneType' object has no attribute 'getRendererClass'
   
2011-07-12 13:03:53+0600 [-] Unhandled error in Deferred:
2011-07-12 13:03:53+0600 [-] Unhandled Error
   Traceback (most recent call last):
     File "RunClient.py", line 105, in <module>
       go()
     File "/usr/lib/python2.7/site-packages/twisted/internet/defer.py", line 1141, in unwindGenerator
       return _inlineCallbacks(None, f(*args, **kwargs), Deferred())
   --- <exception caught here> ---
     File "/usr/lib/python2.7/site-packages/twisted/internet/defer.py", line 1020, in _inlineCallbacks
       result = g.send(result)
     File "RunClient.py", line 83, in go
       conductor.configure(options["config-name"], cf, configfile)
     File "/home/demon/devel/mv3d_trunk/mv3d/util/conductor.py", line 266, in configure
       svc.configure(svcn, cf)
     File "/home/demon/devel/mv3d_trunk/mv3d/client/player.py", line 128, in configure
       self.ui = self.renderer.getRendererClass(IUserInterfaceLibrary)(self)
   exceptions.AttributeError: 'NoneType' object has no attribute 'getRendererClass'
unkier
 
Posts: 8
Joined: Wed Nov 25, 2009 6:27 am

Re: panda3d and linux

Postby SirGolan » Tue Jul 12, 2011 1:35 pm

Hi guys,

That RemoteException stuff looks like it will only work correctly in Python 2.6. I'll get that fixed asap (tonight [GMT-5] at the latest).

unkier:

The error you are seeing seems like the renderer is configured incorrectly in client.conf. Check out the wiki page on Configuring Panda. Let me know if that helps.

I'll make sure to update here when the RemoteException bug is fixed.

Thanks,

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

Re: panda3d and linux

Postby SirGolan » Wed Jul 13, 2011 3:06 am

Ok, so I fixed that issue and gave you guys an added bonus: the initialize button in Overseer now creates a Panda3D world! Granted, this is a very tiny world (just a ground plane and a single character), but it's something to get you started. Update your SVN and you should get this.

Thanks,

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

Re: panda3d and linux

Postby SirGolan » Wed Jul 13, 2011 3:08 am

Also, I should point out, that MV3D is currently only tested on Python 2.5 and 2.6, so ymmv on 2.7. I'll try and get a builder up for that (and a few other OSes) soonish so we can add to the list of officially supported OSes and Python versions.
SirGolan
Site Admin
 
Posts: 214
Joined: Wed Mar 19, 2008 7:04 pm

Re: panda3d and linux

Postby unkier » Wed Jul 13, 2011 8:35 am

next error )
it is occurs then i select my server and click login

Code: Select all
[demon@demon mv3d_trunk]$ python2 RunClient.py
2011-07-13 14:30:00+0600 [-] Log opened.
Known pipe types:
  glxGraphicsPipe
(all display modules loaded.)
2011-07-13 14:30:01+0600 [-] twisted.conch.manhole_ssh.ConchFactory starting on 2222
2011-07-13 14:30:01+0600 [-] Starting factory <twisted.conch.manhole_ssh.ConchFactory instance at 0xa0f826c>
2011-07-13 14:30:02+0600 [-] registerWxApp() was not called on reactor, registering my own wxApp instance.
2011-07-13 14:30:08+0600 [-] Starting factory <HTTPClientFactory: https://login.mv3d.com:8080/service/>
2011-07-13 14:30:11+0600 [HTTPPageGetter,client] Starting factory <HTTPClientFactory: https://login.mv3d.com:8080/service/>
2011-07-13 14:30:11+0600 [HTTPPageGetter,client] Stopping factory <HTTPClientFactory: https://login.mv3d.com:8080/service/>
2011-07-13 14:30:12+0600 [HTTPPageGetter,client] Unhandled Error
   Traceback (most recent call last):
     File "/usr/lib/python2.7/site-packages/twisted/internet/defer.py", line 542, in _runCallbacks
       current.result = callback(current.result, *args, **kw)
     File "/usr/lib/python2.7/site-packages/twisted/internet/defer.py", line 1076, in gotResult
       _inlineCallbacks(r, g, deferred)
     File "/usr/lib/python2.7/site-packages/twisted/internet/defer.py", line 1018, in _inlineCallbacks
       result = result.throwExceptionIntoGenerator(g)
     File "/usr/lib/python2.7/site-packages/twisted/python/failure.py", line 350, in throwExceptionIntoGenerator
       return g.throw(self.type, self.value, self.tb)
   --- <exception caught here> ---
     File "/home/demon/devel/mv3d_trunk/mv3d/client/state.py", line 67, in onLogin
       self.client.svc = yield self.client.conductor.getService(service)
     File "/usr/lib/python2.7/site-packages/twisted/internet/defer.py", line 1018, in _inlineCallbacks
       result = result.throwExceptionIntoGenerator(g)
     File "/usr/lib/python2.7/site-packages/twisted/python/failure.py", line 350, in throwExceptionIntoGenerator
       return g.throw(self.type, self.value, self.tb)
     File "/home/demon/devel/mv3d_trunk/mv3d/net/client.py", line 748, in getService
       pws = yield self.getTempPasswords(sl)
     File "/usr/lib/python2.7/site-packages/twisted/internet/defer.py", line 1018, in _inlineCallbacks
       result = result.throwExceptionIntoGenerator(g)
     File "/usr/lib/python2.7/site-packages/twisted/python/failure.py", line 350, in throwExceptionIntoGenerator
       return g.throw(self.type, self.value, self.tb)
   exceptions.TypeError: exceptions must be classes, or instances, not unicode
   
2011-07-13 14:30:12+0600 [HTTPPageGetter,client] Stopping factory <HTTPClientFactory: https://login.mv3d.com:8080/service/>
unkier
 
Posts: 8
Joined: Wed Nov 25, 2009 6:27 am

Re: panda3d and linux

Postby Acidz » Wed Jul 13, 2011 10:54 am

: SirGolan - Thanks Alot!! :D Its all running very nice now... Used this and without any problems It started!.
Code: Select all
acer@acer-tech:~/Projects/MV3D/trunk/mv3d/tools/overseer$ python overseer.py


Thanks for the Help and the quick fix... Thumbs UP!!

: unkier - ok with your first error
unkier wrote:i am using archlinux and python 2.7
here is what i got
Code: Select all
Traceback (most recent call last):
  File "mv3d/tools/overseer/overseer.py", line 65, in <module>
    from mv3d.server.overseer import ChildServer
  File "/home/demon/devel/mv3d_trunk/mv3d/server/overseer.py", line 38, in <module>
    from mv3d.server.worldgen import WorldGenerator
  File "/home/demon/devel/mv3d_trunk/mv3d/server/worldgen.py", line 36, in <module>
    from mv3d.server.model.octree import OctreeArea
  File "/home/demon/devel/mv3d_trunk/mv3d/server/model/octree.py", line 34, in <module>
    from mv3d.util.conductor import RemoteException
ImportError: cannot import name RemoteException


On the Client side I added this to my client.conf located in the "trunk" folder. This is mine. CHECK under player!.
Code: Select all
[Player]
type=mv3d.client.player.PlayerClient
# This is the list of available servers to connect to.
# It is also the list that shows up in the connect dialog
servers=pb://alpha.mv3d.com:1999/Player,pb://localhost:1999/Player
# Auto-connect options.
# When enableld, autoConnect will automatically connect to a server
#autoConnect=True
# define which server to connect to (starting with 0 for the first server listed
# under "servers" above
ac-server=0
# The default credentials to use. This is also the initial values in the connect dialog
defaultLogin=admin:pass
# If specified, a pc with this name is automatically connected to upon login
#defaultPC=admin 0
renderer=mv3d.client.ui.panda.PandaRenderer # Here I added this line to it!


and then to run it i used this
Code: Select all
acer@acer-tech:~/Projects/MV3D/trunk$ python ./RunClient.py


PS. Make sure you did all of this except for the Ogre part :P. http://www.mv3d.com/trac/wiki/LinuxClientInstall
I used this to install all mine :P
Code: Select all
apt-get install python python-dev python-pyode python-cjson subversion python-wxgtk2.8 cvs cmake g++ bjam autoconf automake libtool libxaw7-dev libfreetype6-dev libboost-dev libpcre3-dev scons libzzip-dev libgl1-mesa-dev libfreeimage-dev libxrandr-dev libglu-dev


with the login error you get? well I'll be trying that now since i only got my server to run now after the fix, but i think you should edit the settings.
1. http://www.mv3d.com/trac/wiki/StartYourOwnServer
2. You will have to go check the manual i can't find it, but its shows you how to set the setting so that you set it up local if you want that? for the Online thing you will have to get the ogre client because the panda3d client won't work on the server that is online.. PLEASE CORRECT ME IF I'M WRONG
- Martin -

^ Unspoken words cause the soul more pain then spoken words.... ^
Acidz
 
Posts: 2
Joined: Mon Jul 11, 2011 9:17 am
Location: South Africa

Next

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 3 guests

cron