Menu

Keep Getting Cannot Load Serial Error

Anonymous
2014-01-31
2016-06-07
1 2 3 > >> (Page 1 of 3)
  • Anonymous

    Anonymous - 2014-01-31

    When I start your program in Windows based Python27, I get cannot load serial. My board is all hooked up and every segment tested on Arduino Serial.

    Unable to load serial port : /dev/ttyACM0 . Please check your pyDarts! device connection or use -s argument.

    I changed the /dev/tty.... to Com4 in the CConfig.py file, but it still gives me the above Debug info.

    Please help, as I was excited to try this out.

    Thanks!

    Mark D

     
  • poilou

    poilou - 2014-01-31

    Hi Mark ! Nice to read you !

    You're the first who try our toy, so we're really pleased ;)

    Please only make changes in your pydarts.cfg which should be located under
    c:\Users\{Username}\.pydarts\ on a windows basis.

    Here you should put the COM port you get in the Windows device manager (COM4 in your case). Then you should be able to launch software. Please don't edit by hand any of the ".py" file, it should not be necessary to start using pyDarts.

    You're very close to make it work, congrats !!

    Olivier

     
  • poilou

    poilou - 2014-01-31

    Yop Mark,

    Another small thing that you should know if you never went into the pydarts.cfg file :

    You need to configure each part of your dart board in the pydarts.cfg file to make the board parts tie in your arduino output. To do this, you maybe have to use the last git source code, in which the InputDebug mode as been improved.

    We keep in touch, to make your darts board work properly.

     
  • Anonymous

    Anonymous - 2014-01-31

    Thanks so much! I will try it!

    Mark

     
  • Anonymous

    Anonymous - 2014-02-14

    Hi Mark !

    What's the news ?

    Poilou

     
  • Anonymous

    Anonymous - 2014-03-21

    I nice project. i have a question i want to use a real dart board from a old arcade dart machine but my matrix has 4 communs and 16 rows (like a keyboard encoder ) can you help me how it is gone stay the code on the arduino?
    Cheers

     
    • diego

      diego - 2014-03-21

      Hello,
      you have to make a new arduino_uno_config 4*16 file.
      with 4 rows and 16 columns instead of 8 rows and 9 columns like in our example.
      with the matrix:
      {0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f}
      {g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v}
      {w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L}
      {M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,?,.}

      and

      byte rowPins[numRows] = {AO, A1, A2, A3}
      byte rowPins[numRows] = {A4, A5, 2 ,3 ,4 ,5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15}

      but you might have to make a bigger matrix if you want to use button of the machine...

      give me your email adress I can send you the program for your board
      diego

       
  • Anonymous

    Anonymous - 2014-03-21

    Thanks yes you are wright maybe bigger is better let´s say 4*20 ??
    if you could do that to me i would apreciate that.Thanks
    paulocamposvpa@gmail.com

    Paulo

     
  • Anonymous

    Anonymous - 2016-05-08

    I have the same ERROR with windows 7 :

    [FATAL] Unable to load serial port : /dev/ttyACM0 . Common errors are :
    * Your board is not connected (connected and tested in Arduino Monitor Serie)
    * Your config file is not set properly (pydarts.cfg in your home folder) (Got an Out of Range each time I run pydarts.bat or pydarts.py, pydarts.cfg is not created and command prompt give me this Error)
    * Your arduino driver is not installed properly (windows only) (Installed Arduino IDE that contains drivers)
    * You're not part of the dialout group (Linux only). // (Not Linux)
    -- Note : You can use -s argument to bypass serial connection.

    Note; I have installed pyton 2.7, pyserial, pygame for 32 bits..

    what I am doing wrong??? Thank you

     
  • poilou

    poilou - 2016-05-08

    Hi Anonymous :)
    You need a dart board connected by USB. To learn how to build your board, please refer to the wiki.

    For windows, the serial port vill be COM1, COM2, COM3, and so on... but never /dev/ttyACMO0 which is the default for Linux.

    Please check this requirements and come back. We are here to help !

    Bye

     

    Last edit: poilou 2016-05-08
  • Anonymous

    Anonymous - 2016-05-08

    Hellow poilou, I am Diego from the other post... I have built the board with an Arduino Uno, and in the Arduino IDE, I have tested that the computer reconize perfectly the dart board with the Arduino ( all caracters that are written in the Arduino Sample Code 2 of the zip.

    I am stuck with this problem, I do not know why pydarts.bat do not create the pydart.cfg

    Diego

    thank you both of you for the great job that you have made with all the project!!!

     
  • poilou

    poilou - 2016-05-08

    Hi Diego !

    Don't you have any directory named .pydarts in c:\users\diego\AppData\ ?

    It should be here after your first launch of pydarts.bat, except if there was another error before.

    Run pydarts.bat from a terminal to see output.

    Poilou

     
  • Anonymous

    Anonymous - 2016-05-08

    Thank you for the support Poilou, but I do not have any directory called pydarts in c:\users\diego\AppData\ ... The Arduino Uno is conected in COM16 ( I have tested in several COM but without result),,, Pydarts starts but it says "Unable to load Serial!" and after "Bye amigo!" the program exit...

    I have donwloaded pyserial 2.7 and installed it with administrador privileges, and because it continue saying Unable to load Serial... I downloaded pyserial.3.0.1 and instaled it in a prompt with Aministrator privileges... No result...

    I don not know which is the problem... thank you!

    Diego

     
  • Anonymous

    Anonymous - 2016-05-08

    I forgot prompt's log after launching pydarts.bat :

    C:\Users\Diego\Desktop\pydarts_v0.8.1>pydarts.bat

    C:\Users\Diego\Desktop\pydarts_v0.8.1>c:\python27\python.exe pydarts.py
    [WARNING] You have 15 options in the section SectionGlobals, but you should have
    17
    [FATAL] Unable to load serial port : /dev/ttyACM0 . Common errors are :
    * Your board is not connected
    * Your config file is not set properly (pydarts.cfg in your home folder)
    * Your arduino driver is not installed properly (windows only)
    * You're not part of the dialout group (Linux only).
    -- Note : You can use -s argument to bypass serial connection.

    C:\Users\Diego\Desktop\pydarts_v0.8.1>

    And this is the dir command in AppData:

    http://www.overpic.net/viewer.php?file=xxr77xnrsgqc0uekie52f.jpg

     
  • poilou

    poilou - 2016-05-08

    Hi Diego,
    The fact that the soft tells you that you have 15 options instead of 17 is a proof that your config file exists somewhere ! We've juste to find it :)

    I think this is my mistake. The folder should be c:\users\diego\.pydarts and inside the file is pydarts.cfg

    Could you double check this path ? AppData is a wrong path. And don't forget to addapt your config file to the port COM (COM1, COM2, or COM3, or whatever) that is in your device manager associated to your aduino :
    See here :
    https://sourceforge.net/p/pydarts/wiki/Installation%20on%20Windows/

    Once it's done, you can start to adapt your config file :
    https://sourceforge.net/p/pydarts/wiki/Configure%20pyDarts%20for%20your%20new%20board/

    Let me know it's something goes wrong.

     

    Last edit: poilou 2016-05-08
  • Anonymous

    Anonymous - 2016-05-08

    Hi again! I have take a look in all the folders in C:\Users and there is no pydarts.cfg...

    I changed to COM2... but no response yet..

    it driving me mad!! lol
    thank you for your help!

    Edit: Maybe,the problem is that soft is thinking I am running Linux and try to find the serial port in /dev/ttyACM0 intead of COMX..

     

    Last edit: Anonymous 2016-05-08
  • poilou

    poilou - 2016-05-08

    No no !
    The folder is : c:\users\diego and not c:\users
    Maybe the folder is hidden (I don't know why but at this stage...), and maybe you can perform a research in your c:\users folder for a pydarts.cfg file. There should be somethig !

    You have to change the com port to COM16 or COM2 (I did not really understood which one you get from your device manager) in the config file like this :

    serialport:COMxx

    While the software tells you about : /dev/ttyACM0, that show that your config file is still the default one, and the default is configured for linux. Good luck, you're close to the end !

     

    Last edit: poilou 2016-05-08
  • Anonymous

    Anonymous - 2016-05-08

    Hi, I am sorry if I did not explain well... i have been without writting a word in english for a long time and I make seveal mistakes... This photos will help.

     
  • poilou

    poilou - 2016-05-08

    The only possibility I see now is this one : If you launch pydarts from a "Administrator Terminal", the $HOME folder will be the administrator one.

    I just tried with my Windows 7 and the double click on the pydarts.bat file trigger the creation of a .pydarts folder as expected... Could you perform a research on your system ?

    ps : don't be sorry I read too fast sometimes. My daughter still disrupt my concentration...

    Cheers

     

    Last edit: poilou 2016-05-08
  • poilou

    poilou - 2016-05-08

    Another idea is that you have winndows UAC enabled. Try disabling UAC which can prevent a software to write in this directory :

    http://www.mydigitallife.info/how-to-disable-and-turn-off-uac-in-windows-7/

    Tell me if I am on the good way !

     
  • Anonymous

    Anonymous - 2016-05-08

    There is not pydarts.cfg in $HOME folder. I try to resechear and there is no result for "pydarts.cfg".

    I am going to try disabling UAC... I'll be back in a few minutes haha
    thanks

    Diego

     
  • Anonymous

    Anonymous - 2016-05-08

    I am here again... UAC was already disabled..

    =(

     
  • Anonymous

    Anonymous - 2016-05-08

    could you post how your pydarts.cfg identify COM? could it be : serialport:COMX ???

     
  • poilou

    poilou - 2016-05-08

    Ok Diego.
    Let's keep it from start.

    If your username name is diego, the file should be exactly :
    c:\users\diego\.pydarts\pydarts.cfg

    This file has been created. I know it because pydarts returned : [WARNING] you have 15 options in your config file but you should have 17. This is the proof that a file has been created somewhere, do you agree ?

    I think it will drive me nuts as well... ;)

    The default file contains :
    serialport:/dev/ttyACM0

    That should be replaced on W$ by :
    serialport:COMxx (replace xx by your port number)

    That's all :)

    I am working on a piece of code that will automatically detect your com port. It will be easier. In the meantime, please search again :) Your file is somewhere. The soft tells you it exists !

    Let me know...

     

    Last edit: poilou 2016-05-08
    • Anonymous

      Anonymous - 2016-05-08

      "If your username name is diego, the file should be exactly :
      c:\users\diego.pydarts\pydarts.cfg
      This file has been created. I know it because pydarts returned : [WARNING] you have 15 options in your config file but you should have 17. This is the proof that a file has been created somewhere, do you agree ?"

      import ConfigParser
      DeprecatedOptions=['colwidth','colheight','ledspace','flechespace','leftspace','bottomspace','pydartsversion']
      SectionLength={'SectionGlobals':17,'SectionKeys':65}

      This piece of code is from pydarts_v0.8rc1 's CConfig.py

      import ConfigParser
      DeprecatedOptions=['colwidth','colheight','ledspace','flechespace','leftspace','bottomspace','pydartsversion']
      SectionLength={'SectionGlobals':15,'SectionKeys':65}

      This is from pydarts_v0.8.1 CConfig.py

      I have run both, and this is why the WARNING appeared.

      I owe you a beer =)

      I am waiting for you piece of code, because I don't know what is happening...

      Diego

       
1 2 3 > >> (Page 1 of 3)

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.