473,574 Members | 3,086 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 : "RuntimeErr or: 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.createDevic e(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 1988
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 : "RuntimeErr or: 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.createDevic e(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.NOCAPCHE CK
combination to pass these checks, but most of the advanced
samples probably don't work.

--
Heikki Salo
Aug 28 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
1639
by: Méta-MCI | last post by:
Hi, all! Any news, on release Python-2.5 for many modules/lib? Some exemples: Console (Effbot) SciPy Iconvcodec DirectPython
0
1036
by: vedran | last post by:
Hello, I using directpython for making 3d miniature applications,but I have one problem about directpython. This is my code for example: import d3d import d3dc import d3dx
1
1416
by: vedran | last post by:
Hello, How can I move objects in directpython???
3
2468
by: Gigs_ | last post by:
can someone tell me which is better for making 3d game in python. something like tennis simulation thx
0
1187
by: ...:::JA:::... | last post by:
Hello, I have problem with building directpython ( .exe ) application , actually when I finish building application and when I run it, in log file I get an error: Traceback (most recent call last): File "sampleMeshAnim.py", line 16, in ?
0
1452
by: ...:::JA:::... | last post by:
Hello, Is there any real easy example for loading an texture in your directpython window??? For example this is my code: # loading directpython modules import d3dx import d3d from d3dc import *
3
1878
by: vedrandekovic | last post by:
Hello, I'am using DirectPython 0.8, wxPython 2.8.4.2 (ansi) for Python 2.5 and I'm running it on windows XP SP2. When I run my wx program, and this program run directpython code: (I run it under wx frame) example code:
2
1464
by: veki | last post by:
Hello, I've got IBM Thinkpad 30 laptop with configuration: IBM Thinkpad R30 P3 Mobile Celeron 900mhz 128mb sdram pc133 15gb hdd cd-rom Teac cd-224e 56K V.90/92 10/100 Ethernet
0
784
by: vedrandekovic | last post by:
Hello again, I'am working a simple application with wxpython, py2exe and directpython.After I write python code in my wxpython textctrl, then my application must save that code and create ( pgssetup2.py script ), and then with py2exe create (.exe) of the code. ( my application is builded with py2exe too ). Here is example of code the...
0
7837
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8097
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7852
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5647
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5333
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3770
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3791
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1366
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1097
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.