exact dependencies

1 view
Skip to first unread message

jelle

unread,
Nov 29, 2007, 7:16:00 AM11/29/07
to shaderman
Hi Alexei,

I'm eager to start working with Shaderman.Next and especially to see
how it could be extended, but I'm running into some dependency issues.
I have all dependencies installed, but on the site it isn't described
which version exactly. So, it seams like WX is not playing along:

-------------------------------------------------------------------------------------------------------------------------
I:\SourceArchive\SVN\shaderman>python prototype.py
Traceback (most recent call last):
File "prototype.py", line 1496, in ?
frm = MainFrame(None, productname)
File "prototype.py", line 850, in __init__
self.c = NodeCanvas(self)
File "prototype.py", line 73, in __init__
msz = wx.Display(0).GetGeometry()[2:]
File "C:\Python24\lib\site-packages\wx-2.6.1.0-py2.4-win32.egg\wx
\_misc.py", l
ine 5755, in __init__
newobj = _misc_.new_Display(*args, **kwargs)
NotImplementedError
-------------------------------------------------------------------------------------------------------------------------

Would you be so kind to let me know on which ( hopefully newer? )
versions of WX Shaderman.Next is known to run? That is, if the above
traceback represents a dependency issue rather than a bug ;')

Many thanks for your efforts,

-jelle


puz...@gmail.com

unread,
Nov 29, 2007, 7:36:53 AM11/29/07
to shaderman
Hi Jelle,

Your dependencies seems to be OK, however there's something sillily
wrong...
Please try the following: launch the oython from command line and in
the prompt type:

import wx

and then

dir(wx.Display(0))

If it's still fail, I'd recommend upgrading python to 2.5 and wxPython
to whatever the latest is - however please note
on my Mac and Linux machines I'm using 2.4 and 2.6 correspondingly,
and on my Windows machine it's 2.5.1 and 2.8.6.0.

Oh, and the corresponding code is getting the display size, working
around possible multiple displays connected. So
if you want to hack around without reinstalling, just hardcode there
using something like:

msz = (1280, 1024)

Cheers,
Alexei

jelle feringa

unread,
Nov 29, 2007, 7:44:01 AM11/29/07
to shad...@googlegroups.com
Many thanks Alexei, that helps!
Just for you info, WX is to blaim ;')
And yep, I'm running with 2 monitors, thats perhaps why this error hasnt crept up yet.

In [2]: dir(wx.Display(0))
---------------------------------------------------------------------------
exceptions.NotImplementedError                       Traceback (most recent call
 last)

C:\Documents and Settings\jelle da qck\<ipython console>

C:\Python24\lib\site-packages\wx-2.6.1.0-py2.4-win32.egg\wx\_misc.py in __init__
(self, *args, **kwargs)
   5753         and the only one which is always supported
   5754         """
-> 5755         newobj = _misc_.new_Display(*args, **kwargs)
   5756         self.this = newobj.this
   5757         self.thisown = 1

NotImplementedError:


Many thanks,

-jelle
Reply all
Reply to author
Forward
0 new messages