Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Front Ends > PyCar


Reply
 
Share Thread Tools Display Modes
Old 08-09-2005, 10:54 AM   #1
Maximum Bitrate
 
kbyrd's Avatar
 
Join Date: Nov 2003
Location: Mountain View, CA
Posts: 485
kbyrd is on a distinguished road
FAQ Tutorial for installing pycar on Linux

This is the work-in-progress install document for pycar on Linux. It's pretty barebones, but it coveres the basic points (it's also very debian specific). With help from jbors, I think I got it all. I invite anyone to post improvements. jbors you are welcome to re-use this however you want.

This first post has been edited a lot from the original, so some later posts (like comments on direct framebuffer support) may not make sense. I asked many questions in this post before stripping it down to just the install, jbors was just patiently answering my questions.

--- START INSTALL DOCUMENT HERE ----
I'm starting with Debian testing on a VIA M10000. It's pretty stock (and fat right now). I do have the updated X with the opensource unichrome driver from http://www.physik.fu-berlin.de/~glaweh/

- I installed the python and python-dev debian virtual packages (it's python 2.3).

- There are several *-dev package dependencies that pygame and pymedia need. In debian (and probably redhat/fedora), the header files for compiling against come in different packages than the libs themselves. [NOTE: need details on which packages!]

- I downloaded pygame-1.6.2 sources from the pygame website. jbors has a patch of pygame-1.6, but I think this patch is already in pygame-1.6.2. I built pygame by running "python setup.py build; python setup.py install" from inside the untar'd directory. [NOTE: can someone confirm that with pygame-1.6.2 no patch is required?]

- I installed the libavcodec-dev debian package that contained some of the codecs pymedia wants. I didn't download lame, I downloaded and built faap2.

- I downloaded/untar'd pymedia from the pymedia site. cd into the directory. Run "python setup.py build" then "python setup.py install".

- I tested the pymedia by running "python", then typing "import pymedia" at the cmd prompt. No output (I guess this means no problems). Ctrl-D out of python prompt.

- I downloaded/untar'd pyRXP from http://www.reportlab.org/pyrxp.html. cd into the directory (it's actually the pyRXP subdir under the top level untar'd directory). Run "python setup.py build" then "python setup.py install".

- I downloaded/untar'd pycar from the pymedia site. I also downloaded the 1.2.3.0 zip file for Windows. After unzipping to a different directory, I copied the skins directory from the zip file on top of the empty skins directory in my untar'd directory. You can now get rid of the zip file and the unzipped directory. [NOTE: This should really be fixed in the tar distribution. jbors, want me to send you an updated tar?]

- cd into the untar'd pycar directory. Run "python pycar.py ." That's it!

--- END INSTALL DOCUMENT HERE ----
__________________
In the service of a vengeful God.

My worklog.
Status: First carPC installed, uninstall, and selling off parts soon.

Last edited by kbyrd; 08-12-2005 at 09:38 AM. Reason: Clean up install doc.
kbyrd is offline   Reply With Quote
Advertisement
 
Advertisement
Advertisement Sponsored links

Old 08-10-2005, 01:04 AM   #2
FLAC
 
jbors's Avatar
 
Join Date: Nov 2003
Posts: 947
jbors is on a distinguished road
Quote: Originally Posted by kbyrd
Ok, so the documentation for getting Pycar running on Linux system sucks.
Since just *****ing helps very little, I thought I'd document what I had to do. I hope others add/correct it, because I know my worklog is very debian specific. For things like packages it would be nice to see something like:

Ok. I got the point
Actually I was waiting for someone who can document the whole process like you
Here is the sequence in short:
1. Install pymedia: http://indashpc.org/vbullettin/viewtopic.php?t=31
2. Get pygame-1.6 from sources and update it with the patch: http://66.159.221.186/pygame-1.6-overlay.patch.gz
3. Get pyrxp: http://www.reportlab.org/pyrxp.html
4. Get the pycar from sources and just run: "python pycar.py ."

Quote: Originally Posted by kbyrd
I have little/no framebuffer experience, so I'm no surprised I ran into trouble here. I'll finish this when I get a chance. Any help is appreciated. Here's a crazy question to display my ignorance of directfb. Does a directfb app run under X? I thought it was framebuffer or X, not an app in an X session using the framebuffer.

Directfb delivers small footprint and HW accelerated graphics. If you prefer to use X that's fine, do not define export PyCAR_DISPLAY=directfb; and it will use pygame by default.
Basically you can run XDirectfb just fine and will run some X apps, but in general it won't be fully X compatible...
PyCar can use either of those it can run in a window if you use pygame. When directfb is concerned it will run in fullscreen...
__________________
Car pc integration with ease
Car mediacenter
jbors is offline   Reply With Quote
Old 08-11-2005, 11:37 PM   #3
Maximum Bitrate
 
kbyrd's Avatar
 
Join Date: Nov 2003
Location: Mountain View, CA
Posts: 485
kbyrd is on a distinguished road
Angry Ok, giving pycar another try.

I went over to try and run headunit for a day. That went pretty smooth. jbors PM'd me offering help, that was nice of him, so I thought I would try harder to get pycar working. I'll edit my first post with instructions when I'm done, in the meantime I'll post the bits as I do them:

- I decided against my "no patch pygame" policy. So I went backed out of the framebuffer idea, uninstalled debian's pygame package and went and got the source. I ened up with pygame-1.6.2 instead of 1.6, maybe that will bite me. The patch didn't apply cleanly, in fact I don't think it applied at all. What I mean is I think those changes are in the source for pygame-1.6.2 already. That would be good news, jbors, maybe the pygame people accepted your patch?

- compiling pygame complains about several libs so I went and installed lib-sdlttf-dev and such. pygame compiled and installed.

- When to run "python pycar.py", ARRGH! Another error. No such file or directory: 'skins/pycar.cfg'.
After some investigation and re-downloading pycar-1.2.3.0-pre2-src.tar.gz I discovered that the tar package HAS NO SKINS!!!! Are you kidding me? The package isn't even complete.

- I download the zip file 1.2.3.0-pre2.zip file, unzip it and copy it's skins directory to my pycar directory.

- Now I'm getting some locale problem. My LANG environment variable was set to en_US, I got this:
Code:
headunit:~/pycar-1.2.3-pre2-src# python pycar.py open /dev/sequencer: No such file or directory Looking for translation file for language: ['en_US', 'en_gb'] !!!No translation file for en_US, see README file for more information Falling back to english... Traceback (most recent call last): File "pycar.py", line 246, in ? mainTest( s ) File "pycar.py", line 133, in mainTest locale.setlocale( locale.LC_ALL, 'us' ) File "/usr/lib/python2.3/locale.py", line 381, in setlocale return _setlocale(category, locale) locale.Error: unsupported locale setting Background tasker started Background tasker stopped

Any help would be appreciated.
__________________
In the service of a vengeful God.

My worklog.
Status: First carPC installed, uninstall, and selling off parts soon.
kbyrd is offline   Reply With Quote
Old 08-11-2005, 11:43 PM   #4
FLAC
 
jbors's Avatar
 
Join Date: Nov 2003
Posts: 947
jbors is on a distinguished road
Try this:
Code:
python pycar.py .

It is covered in README file.
Now some clarifications:
1. Pygame did accept patch but release 1.7 has been pushed back due to maintainers problems.
2. Pycar package is complete. Pycar is not an application, it is a framework for building your own application. It has no logic whatsoever inside. Skin is a set of even handlers that makes the application.
__________________
Car pc integration with ease
Car mediacenter

Last edited by jbors; 08-11-2005 at 11:50 PM.
jbors is offline   Reply With Quote
Old 08-12-2005, 09:05 AM   #5
Maximum Bitrate
 
kbyrd's Avatar
 
Join Date: Nov 2003
Location: Mountain View, CA
Posts: 485
kbyrd is on a distinguished road
I got pycar working!

Again, thanks to jbors. This is a long post. But I think it's useful. Please understand that I'm not just bashing jbors and his work. I really like pycar, I just think that the Linux distribution for this app isn't enough.

I left off with "python pycar.py" giving me locale errors. jbors suggested "python pycar.py ." This worked!

Let me respond to jbor's comments:
- About pygame. It may be the pygame 1.6.2 (which is not available) has your patch in it. It didn't apply cleanly (obviously not your fault since you said to use 1.6), and it looks like the code changes from the patch file are already in (I didn't verify the big binary blob).

- About "python pycar.py ." and being covered in the README file. Which README file? At first, I skipped over most of the pycar/README file since it's clearly written for Windows users. I went back after I had trouble and actually read it (I know, I always read the instructions AFTER I have problems), I cannot find a single reference to running pycar on anything but Windows. There is nothing in there to indicate I need to add the current directory to the cmdline as you suggested. So, I went looking for a README in pymedia, there is none. It's not covered in the README file, but it should be.

- About missing skins. What do you mean "pycar is not an application"? Of course it is! When I tried the Windows .zip package I unzipped it, read the README, ran the application and it ran! I really liked the UI, I wanted to try it on Linux. I figured it would be the same since your website says: "No modifications or recompilation needed to run PyCar on Linux vs Windows or vise versa". So, I went and grabbed the tar.gz file untar'd it and eventually discovered that the skins directory is empty. I understand that people can create their own skins, you made a skinable application. That's one of the many things I like about it. But, lets say I've never used the Windows version, I see pycar listed as a Linux front end on these forums, and I think "Great!", I go download the tar package only to find I have to make a skin before I can even run the app for the first time? How do I know what the skin is supposed to look like? It's pretty standard to include a default skin in a skinable app, either compiled in or just part of the skins directory, just like you do for the Windows distrobution.


So, to finish this off, nice work. I like the app. It's clearly a work in progress, but that's not a surprise, you have said that. My installation was hard. Much of that was my fault, I had to install the *-dev packages (for many packages debian installs just the libs, you have to get libsdl-dev to get the headers to compile against). However, I cannot see how I would have soved the last two issues using just the Linux tar package provided:

- I needed to copy skins dir from windows zip file. Why is the skins directory empty?

- Having to add the current dir to the cmdline to run pycar "pthon pycar.py .", that is not documented anywhere that I can tell.

In any case, the whole point is to make the software better, right? So, I'll begin editing my first post to give a more complete set of instructions for others.
__________________
In the service of a vengeful God.

My worklog.
Status: First carPC installed, uninstall, and selling off parts soon.
kbyrd is offline   Reply With Quote
Old 08-16-2005, 06:20 PM   #6
Maximum Bitrate
 
kbyrd's Avatar
 
Join Date: Nov 2003
Location: Mountain View, CA
Posts: 485
kbyrd is on a distinguished road
How do we make this a sticky?
__________________
In the service of a vengeful God.

My worklog.
Status: First carPC installed, uninstall, and selling off parts soon.
kbyrd is offline   Reply With Quote
Old 08-17-2005, 01:11 AM   #7
FLAC
 
jbors's Avatar
 
Join Date: Nov 2003
Posts: 947
jbors is on a distinguished road
Thanks for stepping in. Great HOWTO !
__________________
Car pc integration with ease
Car mediacenter
jbors is offline   Reply With Quote
Old 08-17-2005, 04:09 PM   #8
FLAC
 
jbors's Avatar
 
Join Date: Nov 2003
Posts: 947
jbors is on a distinguished road
kbyrd, can I use this how to on my forum ? Or if you can post it in the software section I will really appreciate it.
http://indashpc.org/vbullettin/viewforum.php?f=4
__________________
Car pc integration with ease
Car mediacenter
jbors is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 08-17-2005, 04:32 PM   #9
Maximum Bitrate
 
kbyrd's Avatar
 
Join Date: Nov 2003
Location: Mountain View, CA
Posts: 485
kbyrd is on a distinguished road
Quote: Originally Posted by jbors
kbyrd, can I use this how to on my forum ? Or if you can post it in the software section I will really appreciate it.
http://indashpc.org/vbullettin/viewforum.php?f=4

Sure, please use this however you want, in your distributions, on your forums, whatever.
__________________
In the service of a vengeful God.

My worklog.
Status: First carPC installed, uninstall, and selling off parts soon.
kbyrd is offline   Reply With Quote
Old 09-09-2005, 03:35 AM   #10
Maximum Bitrate
 
Change's Avatar
 
Join Date: Aug 2004
Location: California
Posts: 482
Change is on a distinguished road
Where does one get the latest source for pycar? I've found 1.2.3-pre2, but I'm having some problems with that (errors out with "AttributeError: 'module' object has no attribute 'Mixer'", but pygame was built with mixer support...not sure what's up)

(btw, the Debian SDL packages I installed are:
libsdl-image1.2
libsdl-image1.2-dev
libsdl-mixer1.2
libsdl-mixer1.2-dev
libsdl-ttf1.2
libsdl-ttf1.2-dev
libsdl-ttf2.0-0
libsdl1.2-dev
libsdl1.2debian-all
libsdl1.2debian
python2.3
python2.3-dev
python-dev
lost track of what other packages I've installed...pygame1.7.1 from source, pyRXP1.07 from source, pymedia 1.2.2.1)
Change is offline   Reply With Quote
Old 09-22-2006, 01:02 PM   #11
Newbie
 
Join Date: Sep 2006
Posts: 2
ihristov is an unknown quantity at this point
I am having trouble installing/running pycar on Linux

I get "AttributeError: 'module' object has no attribute 'extensions'" whatever this means. I am clueless about Python.

I installed on XUbunutu following the guide by kbyrd in the first post on this thread.
See at the end of the post how I installed on XUbuntu. Maybe someone can spot an error in that procedure.

This is the error I get with the version of PyCar I unpacked from the ISO (which seems to be the latest) and includes what I would assume a complete and good copy of the needed skin. On the rest of the other folders I tried I copied the same skins folder
Code:
vmware@xubuntu:~/dl/pycar/pycar-1.2.3.0-pre4$ cat VERSION 1.2.3.0-pre4vmware@xubuntu:~/dl/pycar/pycar-1.2.3.0-pre4$ vmware@xubuntu:~/dl/pycar/pycar-1.2.3.0-pre4$ python pycar.py . Looking for translation file for language: ('en_US', 'utf-8') Background tasker started Encodings found and used: ['UTF-8', 'utf-8'] Application pycar Module music imported Load module: music Error executing pymedia.removable.cd.init() rootDirs= val( 'params', 'audio_root' ) useCD= val( 'params', 'useCD' ) if useCD== 'enabled': rootDirs+= [ pymedia.removable.cd.CD(x).getName() for x in range( pymedia.removable.cd.getCount() ) ] root= menu.cache.setRoot( rootDirs ) menu.cache.registerArea( val( 'areas', 'filelist' ) ) menu.cache.registerArea( val( 'areas', 'iconlist' ) ) audio.aFileList.init( self, root, pymedia.audio.acodec.extensions+ ['cdda'] ) audio.aFileList.setRoot( root ) audio.playLists.init( self ) pos= audio.playLists.load( val( 'params', 'playlistDir' ) ) audio.player.setInfoRenderer( val( 'areas', 'infoRenderer' ) ) audio.player.start( self.app ) audio.player.setPlayList( audio.playLists.getActive() ) if pos!= -1: audio.player.startPlayback( pos ) within ModuleHelper.execute !! Exception happened during creation or parse of app Traceback (most recent call last): File "pycar.py", line 251, in ? mainTest( s ) File "pycar.py", line 151, in mainTest config.parse() File "/home/vmware/dl/pycar/pycar/pycar/parser.py", line 861, in parse File "/home/vmware/dl/pycar/pycar/pycar/parser.py", line 852, in parseNode File "/home/vmware/dl/pycar/pycar/pycar/parser.py", line 99, in processNodeByName File "/home/vmware/dl/pycar/pycar/pycar/parser.py", line 160, in parse File "/home/vmware/dl/pycar/pycar/pycar/parser.py", line 815, in load File "/home/vmware/dl/pycar/pycar/pycar/parser.py", line 77, in load File "/home/vmware/dl/pycar/pycar/pycar/menu/generic.py", line 220, in execute File "<string>", line 11, in ? AttributeError: 'module' object has no attribute 'extensions' Background tasker stopped


I also tried with the latest version posted on the sourceforge.net site. I got a different error there. See below.
Code:
vmware@xubuntu:~/dl/pycar/pycar-1.2.3-pre2-src$ python pycar.py . open /dev/sequencer: No such file or directory Looking for translation file for language: ('en_US', 'utf-8') Background tasker started Encodings found and used: ['UTF-8', 'utf-8'] Application pycar !! Exception happened during creation or parse of param !! Exception happened during creation or parse of app Traceback (most recent call last): File "pycar.py", line 246, in ? mainTest( s ) File "pycar.py", line 148, in mainTest config.parse() File "/home/vmware/dl/pycar/pycar-1.2.3-pre2-src/pycar/parser.py", line 855, in parse self.parseNode( self.node[ 2 ] ) File "/home/vmware/dl/pycar/pycar-1.2.3-pre2-src/pycar/parser.py", line 846, in parseNode app= self.processNodeByName( appNode ) File "/home/vmware/dl/pycar/pycar-1.2.3-pre2-src/pycar/parser.py", line 101, in processNodeByName element.parse() File "/home/vmware/dl/pycar/pycar-1.2.3-pre2-src/pycar/parser.py", line 153, in parse obj= self.processNodeByName( node ) File "/home/vmware/dl/pycar/pycar-1.2.3-pre2-src/pycar/parser.py", line 100, in processNodeByName element= cls( node ) File "/home/vmware/dl/pycar/pycar-1.2.3-pre2-src/pycar/parser.py", line 66, in __init__ self.attributes= self.getAttributes( self.node ) File "/home/vmware/dl/pycar/pycar-1.2.3-pre2-src/pycar/parser.py", line 128, in getAttributes atts= node[ 1 ] TypeError: unsubscriptable object Background tasker stopped

I also tried with the latest version pulled from CSV. What are the values that have to be placed in vars.py ?
Code:
vmware@xubuntu:~/dl/pycar/pycar_csv/pycar$ python pycarapp.py . Looking for translation file for language: ('en_US', 'utf-8') in ./i18n Encodings found and used: ['utf-8', 'UTF-8'] Application pycar (unknown) Exception occured within getParams.eval( "os.path.join( INSTALL_PATH, 'skins', 'deepsea', '800x600', 'icons' )" ) Traceback (most recent call last): File "/home/vmware/dl/pycar/pycar_csv/pycar/pycar/parser.py", line 196, in getParam vals= self.evalExpr( self.node[ 2 ][ 0 ] ) File "/home/vmware/dl/pycar/pycar_csv/pycar/pycar/menu/generic.py", line 158, in evalExpr return eval( expr, globals(), self.imports ) File "<string>", line 0, in ? NameError: name 'INSTALL_PATH' is not defined !! Exception happened during creation or parse of param !! Exception happened during creation or parse of app Traceback (most recent call last): File "pycarapp.py", line 182, in ? mainTest( path, s ) File "pycarapp.py", line 80, in mainTest config.parse() File "/home/vmware/dl/pycar/pycar_csv/pycar/pycar/parser.py", line 926, in parse self.parseNode( self.node[ 2 ] ) File "/home/vmware/dl/pycar/pycar_csv/pycar/pycar/parser.py", line 917, in parseNode app= self.processNodeByName( n ) File "/home/vmware/dl/pycar/pycar_csv/pycar/pycar/parser.py", line 99, in processNodeByName element.parse() File "/home/vmware/dl/pycar/pycar_csv/pycar/pycar/parser.py", line 161, in parse obj= self.processNodeByName( node ) File "/home/vmware/dl/pycar/pycar_csv/pycar/pycar/parser.py", line 99, in processNodeByName element.parse() File "/home/vmware/dl/pycar/pycar_csv/pycar/pycar/parser.py", line 179, in parse self.param= self.getParam() File "/home/vmware/dl/pycar/pycar_csv/pycar/pycar/parser.py", line 196, in getParam vals= self.evalExpr( self.node[ 2 ][ 0 ] ) File "/home/vmware/dl/pycar/pycar_csv/pycar/pycar/menu/generic.py", line 158, in evalExpr return eval( expr, globals(), self.imports ) File "<string>", line 0, in ? NameError: name 'INSTALL_PATH' is not defined Background tasker started Background tasker stopped

Here is how I installed on XUbunutu
Code:
First I downloaded a VMWare "appliance" with XUbuntu pre-installed from http://www.vmware.com/vmtn/appliances/directory/497 (this is a normal XUbuntu installation) then # Follow tutorial at # http://www.mp3car.com/vbulletin/pycar/56898-tutorial-installing-pycar-linux.html sudo apt-get install python python-dev libavcodec-dev liblame-dev # instead of building pygame from source (not sure if this is the same pckg) sudo apt-get install python2.4-pygame # install pyMedia from deb instead of source wget http://easynews.dl.sourceforge.net/s...i686-py2.4.deb sudo dpkg -i pymedia_1.3.5_i686-py2.4.deb # pyPXR wget http://www.reportlab.org/daily/pyRXP...daily-unix.tgz cd pyRXP-1.09-20060921/pyRXP python setup.py build sudo python setup.py install

At this point I downloaded pycar and started getting the errors. BTW I am still not sure which one is the right one.
ihristov is offline   Reply With Quote
Old 10-15-2006, 06:32 AM   #12
Newbie
 
Join Date: Oct 2006
Posts: 5
jack1226 is an unknown quantity at this point
i got error

[root@localhost pycar-1.2.3-pre2-src]# python pycar.py
Traceback (most recent call last):
File "pycar.py", line 245, in ?
import gfx, pycar
File "/car/pymedia-1.3.7.3/pycar-1.2.3-pre2-src/gfx.py", line 8, in ?
YV12_OVERLAY= pygame.YV12_OVERLAY
AttributeError: 'module' object has no attribute 'YV12_OVERLAY'
jack1226 is offline   Reply With Quote
Old 10-18-2006, 05:37 AM   #13
Newbie
 
Join Date: Oct 2006
Location: Toulouse
Posts: 6
catslab is an unknown quantity at this point
Same.....

Hi all,

First post here even if I read the forums on a regular basis.

well it's about 3 days I tries to configure pycar on a debian.
I have one installed on an EPIA PD 6000 and one at work on a Dell PIV.

I have the same problems on both.
Python 2.3 is installed, directfb, pymedia, pydfb, pygame and so on.

First under X, if I launch pycar with python pycar.py . the error is still:

Quote:
Traceback (most recent call last):
File "pycar.py", line 250, in ?
import gfx, pycar
File "/home/cede/pycar-1.2.3-pre2-src/gfx.py", line 8, in ?
YV12_OVERLAY= pygame.YV12_OVERLAY
AttributeError: 'module' object has no attribute 'YV12_OVERLAY'

Then I try on console, so no X, only framebuffer, with an export PYCAR_DISPLAY=directfb

Quote:
---------------------- DirectFB v0.9.24 ---------------------
(c) 2000-2002 convergence integrated media GmbH
(c) 2002-2004 convergence GmbH
-----------------------------------------------------------

(*) DirectFB/Core: Single Application Core. (2006-06-14 07:02)
(*) Direct/Memcpy: Using libc memcpy()
(!) DirectFB/FBDev/vt: FBIOGET_CON2FBMAP failed!
--> Invalid argument
(!) DirectFB/FBDev/vt: FBIOPUT_CON2FBMAP failed!
--> Invalid argument
(*) Direct/Thread: Running 'VT Switcher' (CRITICAL, 15252)...
(*) Direct/Thread: Running 'Linux Input' (INPUT, 15260)...
(!!!) *** UNIMPLEMENTED [fusion_reactor_set_lock] *** [../../../lib/fusion/reactor.c:797]
(*) DirectFB/Input: Dell Dell USB Mouse (1) 0.1 (convergence integrated media GmbH)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 15262)...
(*) DirectFB/Input: Dell Dell USB Keyboard Hub (2) 0.1 (convergence integrated media GmbH)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 15263)...
(*) DirectFB/Input: Dell Dell USB Keyboard Hub (3) 0.1 (convergence integrated media GmbH)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 15264)...
(*) DirectFB/Input: PC Speaker (4) 0.1 (convergence integrated media GmbH)
(*) Direct/Thread: Running 'Keyboard Input' (INPUT, 15265)...
(*) DirectFB/Input: Keyboard 0.9 (convergence integrated media GmbH)
(*) Direct/Thread: Running 'PS/2 Input' (INPUT, 15266)...
(*) DirectFB/Input: IMPS/2 Mouse 1.0 (Convergence GmbH)
(*) DirectFB/Genefx: MMX detected and enabled
(*) DirectFB/Graphics: MMX Software Rasterizer 0.6 (convergence integrated media GmbH)
(*) DirectFB/Core/WM: Default 0.2 (Convergence GmbH)
Background tasker started
Looking for translation file for language: ['fr_FR', 'fr']
!!!No translation file for fr_FR, see README file for more information
Falling back to english...
Traceback (most recent call last):
File "pycar.py", line 251, in ?
mainTest( s )
File "pycar.py", line 133, in mainTest
locale.setlocale( locale.LC_ALL, 'us' )
File "/usr/lib/python2.3/locale.py", line 381, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
Background tasker stopped
(!!!) *** WARNING [Application exited without deinitialization of DirectFB!] *** [../../../src/core/core.c:630 in dfb_core_deinit_check()]
(!) DirectFB/FBDev/vt: FBIOPUT_CON2FBMAP failed!
--> Argument invalide

My locale:

Quote:
LANG=fr_FR.UTF-8
LANGUAGE=fr_FR:fr:en_GB:en
LC_CTYPE="fr_FR.UTF-8"
LC_NUMERIC="fr_FR.UTF-8"
LC_TIME="fr_FR.UTF-8"
LC_COLLATE="fr_FR.UTF-8"
LC_MONETARY="fr_FR.UTF-8"
LC_MESSAGES="fr_FR.UTF-8"
LC_PAPER="fr_FR.UTF-8"
LC_NAME="fr_FR.UTF-8"
LC_ADDRESS="fr_FR.UTF-8"
LC_TELEPHONE="fr_FR.UTF-8"
LC_MEASUREMENT="fr_FR.UTF-8"
LC_IDENTIFICATION="fr_FR.UTF-8"
LC_ALL=

Am I missing something ?

I know a bit about linux as I feel better with BSD systems.

I had no time to check under FreeBSD on the EPIA, I might give it a try, but I wanted to use a linux distro to be able to do some wardriving too as some applications are not fully ported under FBSD.

Thanks a lot !!
catslab is offline   Reply With Quote
Old 10-19-2006, 04:52 PM   #14
Newbie
 
Join Date: Oct 2006
Location: Toulouse
Posts: 6
catslab is an unknown quantity at this point
New and better...

Ok, I had a little time to test something else.

I compiled pydfb, pymedia from cvs and got pycar from cvs too.

I copied the deepsea skin from the iso into the skins directory.
I copied the i18n/en to i18n/fr.
I desactivated all the modules but settings because audio and video where crashing pycar.

Well I'm stuck on this:
Quote:
Looking for translation file for language: ['fr_FR', 'fr'] in ./i18n
Encodings found and used: ['utf-8', 'ISO-8859-15']
(!) DirectFB/FBDev: Panning display failed!
--> Argument invalide
Background tasker started
(*) Direct/Interface: Loaded 'PNG' implementation of 'IDirectFBImageProvider'.
Application pycar (unknown)
(*) Direct/Interface: Loaded 'FT2' implementation of 'IDirectFBFont'.
Cache size is set to : 40000000
Renderer activated: screen
Traceback (most recent call last):
File "pycarapp.py", line 182, in ?
mainTest( path, s )
File "pycarapp.py", line 123, in mainTest
screen.renderChanges( gfx, forceRender )
File "/root/cvs/pycar/pycar/parser.py", line 753, in renderChanges
self.getRenderer().render( surf, rect, forceRender, self.bgColor, gfx.pygame.display.get_surface().get_size() )
File "/root/cvs/pycar/render/screen.py", line 17, in render
s.blit( a[ 0 ], (int( a[ 1 ][ 0 ] ), int( a[ 1 ][ 1 ] )), tuple( a[ 2 ] ) )
TypeError: an integer is required
Background tasker stopped

I tried to understand the code but short named vars are awfull to read and follow.
Would it be possible to use vars that mean something ?

I'd like to help as far as I can.

Cheers.
catslab is offline   Reply With Quote
Old 10-20-2006, 02:27 AM   #15
FLAC
 
jbors's Avatar
 
Join Date: Nov 2003
Posts: 947
jbors is on a distinguished road
Try to:
print a[ 2 ]
before that s.blit. It might be None or invalid.
In case if it is None, use this:
Code:
if len( a )> 2 and a[ 2 ]!= None:

Sorry for short names but they are defined locally. Sort of i, j, k in C
__________________
Car pc integration with ease
Car mediacenter
jbors is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
New Frontend for Windows and Linux gbr Other Cool Front Ends 68 01-21-2009 09:55 PM
PyCar Linux distro TS check( EPIA-M ) jbors Linux 17 05-04-2005 02:33 PM
PyCar roadmap jbors PyCar 24 03-29-2005 08:08 AM
The LOW Risk Linux Adventure... grepzen Software & Software Development 13 11-08-2004 10:12 PM
PS2 Linux -- check it out Superfly General Hardware Discussion 7 03-22-2003 12:11 AM



All times are GMT -5. The time now is 09:16 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics