471,616 Members | 1,329 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,616 software developers and data experts.

DirectPython

Hello,

I have DirectPython 0.5 (http://directpython.sourceforge.net/) and python2.4
(directx9.0C installed).
Samples do not work, I have this error : "RuntimeError: Failed to create a
device"
For example with sampleBasic.py :

Traceback (most recent call last):
File "sampleBasic.py", line 147, in ?
mainloop()
File "sampleBasic.py", line 75, in mainloop
d3d.createDevice(title, u"textures/x.ico", window[2], window[3], False,
CREATE.HARDWARE)
RuntimeError: Failed to create a device
Why ?

please help me... any help would be appreciated.
Thanks
Aug 28 '06 #1
1 1902
Jérôme Le Bougeant wrote:
Hello,

I have DirectPython 0.5 (http://directpython.sourceforge.net/) and python2.4
(directx9.0C installed).
Samples do not work, I have this error : "RuntimeError: Failed to create a
device"
For example with sampleBasic.py :

Traceback (most recent call last):
File "sampleBasic.py", line 147, in ?
mainloop()
File "sampleBasic.py", line 75, in mainloop
d3d.createDevice(title, u"textures/x.ico", window[2], window[3], False,
CREATE.HARDWARE)
RuntimeError: Failed to create a device
Why ?

please help me... any help would be appreciated.
Thanks

I guess that you have pretty old or some cheap integrated
graphics card. Either that or you should upgrade your drivers.
createDevice() tests if some basic requirements are met and
fails if they are not.

You can try to use CREATE.SOFTWARE | CREATE.NOCAPCHECK
combination to pass these checks, but most of the advanced
samples probably don't work.

--
Heikki Salo
Aug 28 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Méta-MCI | last post: by
reply views Thread by vedran | last post: by
1 post views Thread by vedran | last post: by
3 posts views Thread by Gigs_ | last post: by
reply views Thread by ...:::JA:::... | last post: by
reply views Thread by ...:::JA:::... | last post: by
3 posts views Thread by vedrandekovic | last post: by
2 posts views Thread by veki | last post: by
reply views Thread by vedrandekovic | last post: by
reply views Thread by leo001 | last post: by
1 post views Thread by ZEDKYRIE | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.