Menu

Impossible de lancer pydarts

Realshibby
2022-04-15
2023-11-05
  • Realshibby

    Realshibby - 2022-04-15

    bonjour a tous .
    je suis actuellement en train d construire ma cible connecté
    le cablage de la cible a l arduino cest tres bien passé et mon arduino est reconnu par mon pc.
    la config 7x10 televersé sa's problème , bref au oetits oignons.
    mon probleme est que pydarts ne se lance pas .
    la commande se lance une fenetre souvre une seconde et disparaît.
    je suis sous windows 7 64 bits sur un intel atom cpu 230.
    tout les drivers sont bon , jene trouva pas la solution .
    pouvez vous maider svp ?

     
  • nauleau

    nauleau - 2022-04-24

    Est ce que tu utilises la version 1.10 ... .exe?

     
    • poilou

      poilou - 2022-08-22

      Salut tout le monde,

      Je viens de mettre en ligne une nouvelle version (1.2-rc1). Si quelqu'un
      peut tester en lançant dans un terminal :

      pydarts.exe --debuglevel=1

      Et si jamais ça crashe, merci de m'envoyer le retour du terminal.

      Bonne journée !

       
      • poukah

        poukah - 2022-08-22

        Bonjour poilou,
        j'ai testé la dernière version. celle-ci se lance et ne crash pas.
        j'ai pu configurer une cible et commencer une partie de 301.
        cependant, je n'ai pas de son.
        voici le résultat du debug:

        [DEBUG] Config file C:\Users\poukah/.pydarts/pydarts.cfg exists. We use it so...
        [DEBUG] Working on section SectionGlobals of your config file.
        [DEBUG] Working on section SectionAdvanced of your config file.
        [DEBUG] Working on section SectionKeys of your config file.
        ################ Welcome to pyDarts ##########################
        #      A Free, Open-Source and Open-Hardware Darts Game      #
        #             Please check the website to know more          #
        #               http://pydarts.sourceforge.net               #
        #                     or check the Wiki                      #
        #         https://obilhaut.freeboxos.fr/pydarts-wiki         #
        #            or use --help for available options             #
        ##############################################################
        pygame 1.9.6
        Hello from the pygame community. https://www.pygame.org/contribute.html
        No module named 'requests'
        [DEBUG] Your detected locale name is "fr_FR".
        [DEBUG] Your locale is mapped on locale : "fr_FR.UTF-8".
        [DEBUG] Using display mode : 1000x700
        [WARNING] Unable to load cross-plateform text-to-speech pyttsx3 lib.
        [WARNING] Unable to load audio while trying to play file : sounds/niceshot.ogg
        [DEBUG] Inserting image into cache images/background.png
        [DEBUG] Inserting image into cache images/dart1.png
        [DEBUG] Inserting image into cache images/dart2.png
        [DEBUG] Pydarts.ch stats tool disabled cause no apikey is set.
        [DEBUG] Unable to load dependancy 'requests' or 'json' for Pydarts.ch. External has been disabled
        [DEBUG] Successfully loaded serial port COM3 at speed 9600
        [DEBUG] Solo option is set to : 2000 s
        [DEBUG] Input debug (pyGame) : resize
        [DEBUG] Using display mode : 1000x700
        [DEBUG] Input debug (pyGame) : (179, 199)
        [DEBUG] Clicked on f1
        [DEBUG] Inserting image into cache images/key_enter.png
        [DEBUG] Input debug (pyGame) : (871, 135)
        [DEBUG] Clicked on remove|0
        [DEBUG] You hit (871, 135) and previous key was None.
        [DEBUG] Input debug (pyGame) : (304, 147)
        [DEBUG] Clicked on playername|0
        [DEBUG] You hit f1 and previous key was (871, 135).
        [DEBUG] Input debug (pyGame) : p
        [DEBUG] You hit p and previous key was f1.
        [DEBUG] Input debug (pyGame) : o
        [DEBUG] You hit o and previous key was p.
        [DEBUG] Input debug (pyGame) : u
        [DEBUG] You hit u and previous key was o.
        [DEBUG] Input debug (pyGame) : k
        [DEBUG] You hit k and previous key was u.
        [DEBUG] Input debug (pyGame) : a
        [DEBUG] You hit a and previous key was k.
        [DEBUG] Input debug (pyGame) : h
        [DEBUG] You hit h and previous key was a.
        [DEBUG] Input debug (pyGame) : enter
        [DEBUG] You hit enter and previous key was h.
        [DEBUG] Input debug (pyGame) : enter
        [DEBUG] Found these games :
        [DEBUG] Waiting for game choice
        [DEBUG] Inserting image into cache images/321_Zlip.png
        [DEBUG] Input debug (pyGame) : down
        [DEBUG] Inserting image into cache images/Cricket.png
        [DEBUG] Input debug (pyGame) : down
        [DEBUG] Inserting image into cache images/Football.png
        [DEBUG] Input debug (pyGame) : down
        [DEBUG] Inserting image into cache images/Ho_One.png
        [DEBUG] Input debug (pyGame) : down
        [DEBUG] Inserting image into cache images/Kapital.png
        [DEBUG] Input debug (pyGame) : up
        [DEBUG] Input debug (pyGame) : enter
        [WARNING] Unable to load audio while trying to play file : sounds/goodchoice.ogg
        [DEBUG] Working on section Ho_One of your config file.
        [DEBUG] Don't forget that you may create section named Ho_One to customize pyDarts
        [DEBUG] Waiting for game options
        [DEBUG] Input debug (pyGame) : enter
        [DEBUG] Checking for handicaps!
        [ERROR] Handicap failed : list index out of range
        [DEBUG] Local game id is : 2
        [DEBUG] ###### NEW ROUND #########
        [DEBUG] Game Round 1. Round of player poukah. Dart 1.
        [DEBUG] Checking for handicaps!
        [ERROR] Handicap failed : list index out of range
        [WARNING] Unable to load audio while trying to play file : sounds/ho_one_intro.ogg
        [DEBUG] Probably first player of first round. Nothing to backup.
        [DEBUG] Backuped score in case of BackUpTurn request.
        [DEBUG]
        [DEBUG] Sound file poukah was not found and no default was selected!
        [DEBUG] Trying to speech text poukah with engine pyttsx3
        [WARNING] Problem running cross-platform text-to-speech pyttsx3.
        [DEBUG] Error was : 'CScreen' object has no attribute 'tts'
        [WARNING] Unable to load audio while trying to play file : sounds/beep1.ogg
        [DEBUG] Inserting image into cache images/target.png
        [DEBUG] Input debug (pyGame) : BACKUPBUTTON
        [WARNING] Backup Turn is disabled on first round of first player ! Naughty you !
        [DEBUG] Input debug (pyGame) : GAMEBUTTON
        [DEBUG] Input restrained is : GAMEBUTTON
        [DEBUG] At this stage, PostDarts returns -1, EarlyPlayerButton is -1, and MissedDart is -1
        [DEBUG] Memo: 0: nothing special, 1: jump to next player,  2: game over, 3: victory, 4: current player not allowed to play
        [DEBUG] Who has pushed the Game Button ?
        [DEBUG] This game is over
        [DEBUG] Displaying Hi score table for game "Ho_One" and options "startingat=301|max_round=20|double_in=False|double_out=False|master_in=False|master_out=False|league=False|split_bull=True|"
        [DEBUG] Input debug (pyGame) : (179, 594)
        [DEBUG] Displaying Hi score table for game "Ho_One" and options "startingat=301|max_round=20|double_in=False|double_out=False|master_in=False|master_out=False|league=False|split_bull=True|"
        [DEBUG] Input debug (pyGame) : escape
        [DEBUG] Displaying Hi score table for game "Ho_One" and options "startingat=301|max_round=20|double_in=False|double_out=False|master_in=False|master_out=False|league=False|split_bull=True|"
        [DEBUG] Input debug (pyGame) : escape
        [DEBUG] Displaying Hi score table for game "Ho_One" and options "startingat=301|max_round=20|double_in=False|double_out=False|master_in=False|master_out=False|league=False|split_bull=True|"
        [DEBUG] Input debug (pyGame) : escape
        [DEBUG] Input debug (pyGame) : (192, 407)
        [DEBUG] Clicked on escape
        

        pour comparer, j'ai téléchargé la dernière version mais depuis la source cette fois.
        j'ai bien le son.
        le log:

        [DEBUG] Config file C:\Users\poukah/.pydarts/pydarts.cfg exists. We use it so...
        [DEBUG] Working on section SectionGlobals of your config file.
        [DEBUG] Working on section SectionAdvanced of your config file.
        [DEBUG] Working on section SectionKeys of your config file.
        ################ Welcome to pyDarts ##########################
        #      A Free, Open-Source and Open-Hardware Darts Game      #
        #             Please check the website to know more          #
        #               http://pydarts.sourceforge.net               #
        #                     or check the Wiki                      #
        #         https://obilhaut.freeboxos.fr/pydarts-wiki         #
        #            or use --help for available options             #
        ##############################################################
        pygame 2.0.1 (SDL 2.0.14, Python 3.6.4)
        Hello from the pygame community. https://www.pygame.org/contribute.html
        [DEBUG] Your detected locale name is "fr_FR".
        [DEBUG] Your locale is mapped on locale : "fr_FR.UTF-8".
        [DEBUG] Using display mode : 1000x700
        [DEBUG] Inserting image into cache images/background.png
        [DEBUG] Inserting image into cache images/dart1.png
        [DEBUG] Inserting image into cache images/dart2.png
        [DEBUG] Updating debug facility from DEBUG to WARNING and above.
        Error in sys.excepthook:
        
        Original exception was:
        
         

        Last edit: poukah 2022-08-22
        • poilou

          poilou - 2022-08-23

          Salut Poukah !

          Je viens de mettre à jour la version 1.2.0-rc1, peux-tu me dire ce qu'il
          en est ?

          Merci

          On 22/08/2022 18:35, poukah wrote:

          Bonjour poilou,
          j'ai testé la dernière version. celle-ci se lance et ne crash pas.
          j'ai pu configurer une cible et commencer une partie de 301.
          cependant, je n'ai pas de son.
          voici le résultat du debug:

          ~~~
          [DEBUG] Config file C:\Users\poukah/.pydarts/pydarts.cfg exists. We use it so...
          [DEBUG] Working on section SectionGlobals of your config file.
          [DEBUG] Working on section SectionAdvanced of your config file.
          [DEBUG] Working on section SectionKeys of your config file.

          ########## Welcome to pyDarts

          A Free, Open-Source and Open-Hardware Darts Game

          Please check the website to know more

          http://pydarts.sourceforge.net

          or check the Wiki

          https://obilhaut.freeboxos.fr/pydarts-wiki

          or use --help for available options

          pygame 1.9.6
          Hello from the pygame community. https://www.pygame.org/contribute.html
          No module named 'requests'
          [DEBUG] Your detected locale name is "fr_FR".
          [DEBUG] Your locale is mapped on locale : "fr_FR.UTF-8".
          [DEBUG] Using display mode : 1000x700
          [WARNING] Unable to load cross-plateform text-to-speech pyttsx3 lib.
          [WARNING] Unable to load audio while trying to play file : sounds/niceshot.ogg
          [DEBUG] Inserting image into cache images/background.png
          [DEBUG] Inserting image into cache images/dart1.png
          [DEBUG] Inserting image into cache images/dart2.png
          [DEBUG] Pydarts.ch stats tool disabled cause no apikey is set.
          [DEBUG] Unable to load dependancy 'requests' or 'json' for Pydarts.ch. External has been disabled
          [DEBUG] Successfully loaded serial port COM3 at speed 9600
          [DEBUG] Solo option is set to : 2000 s
          [DEBUG] Input debug (pyGame) : resize
          [DEBUG] Using display mode : 1000x700
          [DEBUG] Input debug (pyGame) : (179, 199)
          [DEBUG] Clicked on f1
          [DEBUG] Inserting image into cache images/key_enter.png
          [DEBUG] Input debug (pyGame) : (871, 135)
          [DEBUG] Clicked on remove|0
          [DEBUG] You hit (871, 135) and previous key was None.
          [DEBUG] Input debug (pyGame) : (304, 147)
          [DEBUG] Clicked on playername|0
          [DEBUG] You hit f1 and previous key was (871, 135).
          [DEBUG] Input debug (pyGame) : p
          [DEBUG] You hit p and previous key was f1.
          [DEBUG] Input debug (pyGame) : o
          [DEBUG] You hit o and previous key was p.
          [DEBUG] Input debug (pyGame) : u
          [DEBUG] You hit u and previous key was o.
          [DEBUG] Input debug (pyGame) : k
          [DEBUG] You hit k and previous key was u.
          [DEBUG] Input debug (pyGame) : a
          [DEBUG] You hit a and previous key was k.
          [DEBUG] Input debug (pyGame) : h
          [DEBUG] You hit h and previous key was a.
          [DEBUG] Input debug (pyGame) : enter
          [DEBUG] You hit enter and previous key was h.
          [DEBUG] Input debug (pyGame) : enter
          [DEBUG] Found these games :
          [DEBUG] Waiting for game choice
          [DEBUG] Inserting image into cache images/321_Zlip.png
          [DEBUG] Input debug (pyGame) : down
          [DEBUG] Inserting image into cache images/Cricket.png
          [DEBUG] Input debug (pyGame) : down
          [DEBUG] Inserting image into cache images/Football.png
          [DEBUG] Input debug (pyGame) : down
          [DEBUG] Inserting image into cache images/Ho_One.png
          [DEBUG] Input debug (pyGame) : down
          [DEBUG] Inserting image into cache images/Kapital.png
          [DEBUG] Input debug (pyGame) : up
          [DEBUG] Input debug (pyGame) : enter
          [WARNING] Unable to load audio while trying to play file : sounds/goodchoice.ogg
          [DEBUG] Working on section Ho_One of your config file.
          [DEBUG] Don't forget that you may create section named Ho_One to customize pyDarts
          [DEBUG] Waiting for game options
          [DEBUG] Input debug (pyGame) : enter
          [DEBUG] Checking for handicaps!
          [ERROR] Handicap failed : list index out of range
          [DEBUG] Local game id is : 2
          [DEBUG] ###### NEW ROUND #########
          [DEBUG] Game Round 1. Round of player poukah. Dart 1.
          [DEBUG] Checking for handicaps!
          [ERROR] Handicap failed : list index out of range
          [WARNING] Unable to load audio while trying to play file : sounds/ho_one_intro.ogg
          [DEBUG] Probably first player of first round. Nothing to backup.
          [DEBUG] Backuped score in case of BackUpTurn request.
          [DEBUG]
          [DEBUG] Sound file poukah was not found and no default was selected!
          [DEBUG] Trying to speech text poukah with engine pyttsx3
          [WARNING] Problem running cross-platform text-to-speech pyttsx3.
          [DEBUG] Error was : 'CScreen' object has no attribute 'tts'
          [WARNING] Unable to load audio while trying to play file : sounds/beep1.ogg
          [DEBUG] Inserting image into cache images/target.png
          [DEBUG] Input debug (pyGame) : BACKUPBUTTON
          [WARNING] Backup Turn is disabled on first round of first player ! Naughty you !
          [DEBUG] Input debug (pyGame) : GAMEBUTTON
          [DEBUG] Input restrained is : GAMEBUTTON
          [DEBUG] At this stage, PostDarts returns -1, EarlyPlayerButton is -1, and MissedDart is -1
          [DEBUG] Memo: 0: nothing special, 1: jump to next player, 2: game over, 3: victory, 4: current player not allowed to play
          [DEBUG] Who has pushed the Game Button ?
          [DEBUG] This game is over
          [DEBUG] Displaying Hi score table for game "Ho_One" and options "startingat=301|max_round=20|double_in=False|double_out=False|master_in=False|master_out=False|league=False|split_bull=True|"
          [DEBUG] Input debug (pyGame) : (179, 594)
          [DEBUG] Displaying Hi score table for game "Ho_One" and options "startingat=301|max_round=20|double_in=False|double_out=False|master_in=False|master_out=False|league=False|split_bull=True|"
          [DEBUG] Input debug (pyGame) : escape
          [DEBUG] Displaying Hi score table for game "Ho_One" and options "startingat=301|max_round=20|double_in=False|double_out=False|master_in=False|master_out=False|league=False|split_bull=True|"
          [DEBUG] Input debug (pyGame) : escape
          [DEBUG] Displaying Hi score table for game "Ho_One" and options "startingat=301|max_round=20|double_in=False|double_out=False|master_in=False|master_out=False|league=False|split_bull=True|"
          [DEBUG] Input debug (pyGame) : escape
          [DEBUG] Input debug (pyGame) : (192, 407)
          [DEBUG] Clicked on escape
          ~~~


          Impossible de lancer pydarts


          Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/pydarts/discussion/general/

          To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

           
          • poukah

            poukah - 2022-08-23

            désolé, toujours pas de son de mon côté:

            C:\Users\poukah\Downloads\pydarts_v1.2.0-rc1-win_x32_bin\pydarts_v1.2.0-rc1>pydarts.exe --debuglevel=1 --noserial
            [DEBUG] Config file C:\Users\poukah/.pydarts/pydarts.cfg exists. We use it so...
            [DEBUG] Working on section SectionGlobals of your config file.
            [DEBUG] Working on section SectionAdvanced of your config file.
            [DEBUG] Working on section SectionKeys of your config file.
            ################ Welcome to pyDarts ##########################
            #      A Free, Open-Source and Open-Hardware Darts Game      #
            #             Please check the website to know more          #
            #               http://pydarts.sourceforge.net               #
            #                     or check the Wiki                      #
            #         https://obilhaut.freeboxos.fr/pydarts-wiki         #
            #            or use --help for available options             #
            ##############################################################
            pygame 1.9.6
            Hello from the pygame community. https://www.pygame.org/contribute.html
            No module named 'requests'
            [DEBUG] Your detected locale name is "fr_FR".
            [DEBUG] Your locale is mapped on locale : "fr_FR.UTF-8".
            [DEBUG] Using display mode : 1000x700
            [WARNING] Unable to load cross-plateform text-to-speech pyttsx3 lib.
            [WARNING] Unable to load audio while trying to play file : C:\Users\poukah/.pydarts/sounds/niceshot.ogg
            [DEBUG] Inserting image into cache images/background.png
            [DEBUG] Inserting image into cache images/dart1.png
            [DEBUG] Inserting image into cache images/dart2.png
            [DEBUG] Pydarts.ch stats tool disabled cause no apikey is set.
            [DEBUG] Unable to load dependancy 'requests' or 'json' for Pydarts.ch. External has been disabled
            [DEBUG] Serial connection bypass as requested. No need for a dart board mate !
            [DEBUG] Solo option is set to : 2000 s
            [DEBUG] Input debug (pyGame) : resize
            [DEBUG] Using display mode : 1000x700
            [DEBUG] Input debug (pyGame) : escape
            
             
            • poilou

              poilou - 2022-08-23

              En effet, je remarque aussi un souci avec pygame.

              Je regarde et reviens vers toi.

              Si en attendant tu peux faire quelques essais sur cette version (même
              sans le son), je suis évidemment preneur :)

              A bientôt,

              Poilou

               
        • Anonymous

          Anonymous - 2023-11-04

          Bonjour, je n'arrive pas a avoir le son sur la v1.2 windows, vous avez réussi

           
  • Anonymous

    Anonymous - 2023-11-05

    Pour la version 1.2 sous windows
    la version 1.2 :pydarts_v1.2.0-rc1-win_x32_bin.zip est bugger pour le son
    1- Il faut télécharger et installer python 3.8 32 bits (cocher add PATH)
    2- utiliser pip pour installer les dépendances :
    pip.exe install pygame pyserial netifaces pexpect pyttsx3
    3 - télécharger les sources de pydart 1.2 (et non pas le bin)
    https://sourceforge.net/code-snapshots/git/p/py/pydarts/source.git/pydarts-source-bfb4ccbde9aed4ffde382f4c9fae44010ec57b09.zip
    4- decompacter les sources dans un repertoire
    5 lancer pydarts.bat

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.