473,382 Members | 1,258 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 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 1977
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
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
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
by: vedran | last post by:
Hello, How can I move objects in directpython???
3
by: Gigs_ | last post by:
can someone tell me which is better for making 3d game in python. something like tennis simulation thx
0
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...
0
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...
3
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...
2
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
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 (...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.