Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: Tutorial for installing pycar on Linux

  1. #11
    Newbie
    Join Date
    Sep 2006
    Posts
    2
    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
    #  Tutorial for installing pycar on Linux
    
    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.

  2. #12
    Newbie
    Join Date
    Oct 2006
    Posts
    5
    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'

  3. #13
    Newbie
    Join Date
    Oct 2006
    Location
    Toulouse
    Posts
    6

    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:

    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

    ---------------------- 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:

    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 !!

  4. #14
    Newbie
    Join Date
    Oct 2006
    Location
    Toulouse
    Posts
    6

    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:
    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.

  5. #15
    FLAC jbors's Avatar
    Join Date
    Nov 2003
    Posts
    959
    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

  6. #16
    Newbie
    Join Date
    Oct 2006
    Location
    Toulouse
    Posts
    6
    Thanks,
    seems to run a bit better.

    In the skins action.xml and cfg I saw many getActiveArea(), getActiveScreen() and so on, ending in error.
    Apparently, they need to be sourced as common.getActiveArea().

    This way, if I only enable settings in pycar.cfg, I'm able to launch the frontend.
    But it crashes with 'module' object has no attribute 'abstractlist'

    It looks like it's in skins/deepsea/settings_actions.xml

    a= val( 'areas', 'logo_dialog' )
    menu.abstractList.init( [ { 'title': x } for x in settings.xmlSettings.getValue( 'logos' )[ 1 ] ] )
    a.init( "menu.abstractList, 0" )
    a.setParams( _('Select logo from the list'), '', common.getActiveArea(), ('logo_change',item) )
    Well I continue to check

  7. #17
    Newbie
    Join Date
    Oct 2006
    Location
    Toulouse
    Posts
    6

    Going better ...

    I thought I posted a reply, but apparently the reply is gone with my windoze crash.

    I reloaded the pycar from the sourceforge cvs today.

    Here's what I have now:

    carbox:~/cvs/pycar# python pycarapp.py .
    Looking for translation file for language: ['fr_FR', 'fr'] in ./i18n
    Encodings found and used: ['utf-8', 'ISO-8859-15']
    Background tasker started
    Application pycar (unknown)
    Module settings imported
    Load module: settings
    Cache size is set to : 80000000
    Renderer activated: screen
    Unload module: settings
    Background tasker stopped
    Traceback (most recent call last):
    File "pycarapp.py", line 182, in ?
    mainTest( path, s )
    File "pycarapp.py", line 147, in mainTest
    common.getActiveArea().execute( 'onTick', tickTime, 0, 0, 1 )
    File "/root/cvs/pycar/common.py", line 33, in getActiveArea
    return vars.activeScreen.getActiveArea()
    AttributeError: 'NoneType' object has no attribute 'getActiveArea'
    I don't know what to put into vars.py
    I added already
    audio_root='/root/audio'
    video_root='/root/video'
    useCD='enabled'

    Cheers

  8. #18
    Newbie shurke's Avatar
    Join Date
    Jun 2006
    Location
    Vorarlberg, AT
    Posts
    5
    i have the same error, with todays (10-27-2006) CVS version of pycar with debian on a EPIA-MII

    does anybody have an idea where to check?

  9. #19
    Newbie
    Join Date
    Nov 2006
    Posts
    2

    Also attempting pycar on Linux

    I'm putting a computer into my car, it will be this one running Debian.

    I'm working through what I need to know about installing and configuring pycar (as that seems to be the only game in town AFAICT) by messing with the install in a virtual machine via VMware. I have pycar and seemingly all of its dependent software parts installed.

    When I run I get a brief screen showing "Loading..." then a stack trace (this is typed by hand because I don't have any X in the virtual machine yet):

    Code:
    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 "/root/pycar_not_packaged/pycar/pycar/parser.py", line 861, in parse
        self.parseNode( self.node[ 2 ] )
      File "/root/pycar_not_packaged/pycar/pycar/parser.py", line 852, in parseNode
        app= self.processNodeByName( appNode )
      File "/root/pycar_not_packaged/pycar/pycar/parser.py", line 99, in processNodeByName
        element.parse()
      File "/root/pycar_not_packaged/pycar/pycar/parser.py", line 160, in parse
        target[ obj.id ]= obj.load()
      File "/root/pycar_not_packaged/pycar/pycar/parser.py", line 815, in load
        NodeElement.load( self )
      File "/root/pycar_not_packaged/pycar/pycar/parser.py", line 77, in load
        self.execute( 'onLoad', None, None, None )
      File "/root/pycar_not_packaged/pycar/pycar/menu/generic.py", line 220, in execute
        exec( s1 )
      File "<string>", line 11, in ?
    AttributeError: 'module' object has no attribute 'extensions'
    Background tasker stopped
    Looks like the config file is missing something?

Page 2 of 2 FirstFirst 12

Similar Threads

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •