Menu

What are the steps to setting up python and the dependencies? (first time python user)

Anonymous
2016-08-31
2016-09-09
  • Anonymous

    Anonymous - 2016-08-31

    Hello, I really like your project and figured it would make some good use of my old dartboard. However, after completing all of the steps up until the point of running the pydarts program, I have run into some trouble.

    I have installed python and pygame but I am unsure about what steps to take in order to set up pydarts.

    A simple guide would be very beneficial.

    Thanks, Jake.

     
  • poilou

    poilou - 2016-08-31

    Hello Jake !

    If you run Windows, please follow this page :
    https://sourceforge.net/p/pydarts/wiki/Installation%20on%20Windows/

    If you run Linux, please follow this one :
    https://sourceforge.net/p/pydarts/wiki/Installation%20on%20GNU-Linux/

    Basically, you have to install a bunch of python packages : pygame, pyserial, netifaces python package, wxPython AND an arduino driver.

    But if your dart board is not ready yet, you do not really need the arduino driver, since you have no dart board plugged on USB.

    Tell me if it is clearer for you :)
    Cheers !

     
  • Anonymous

    Anonymous - 2016-09-01

    This is Jake again, Thanks for the speedy response. So I went through everything one by one and finally got it all properly installed. I think my problem was that i would download some of the dependencies as 64 bit versions and others as 32. None the less my dartboard is finally working now.

    With the exception of a new problem. I'm wondering if I should start a second thread on this one but I will ask the question here. So instead of reusing the old boards buttons, I decided to just wire up a few tactile buttons. The problem is that none of them work, and while I am pretty new to projects like this, I can't seem to figure out why the buttons would not work.

    Let me know if you can help me with this problem. Also I am thinking about using a bluetooth module instead of directly plugging into my computer, have you had any success or attempts at this?

    Thanks.

     
  • poilou

    poilou - 2016-09-01

    Hi Jake !
    Plased to read that you reach the end of your dart board !
    I'll update the wiki straight away to notice user that they have to download x32 versions of packages. I am thinking of an easier way of installing pydarts, like a single package, or something similar. I have only tiny skills on windows.

    Regarding your buttons, what do you call "tactile buttons"? The only problem that come to my mind now is that you used the digital inputs of the Arduino instead of the analogics ones.
    Except that...

    Check this page : https://sourceforge.net/p/pydarts/wiki/Debugging/
    Use "cu" to check if your button works properly. That's the only advice I can give you now...

    For a bluetooth module it would be really interesting. I don't know if such a module exists for Arduino.

    Good luck and let me know !

     
  • Anonymous

    Anonymous - 2016-09-07

    Ok so I have been away for the weekend but I got to working on it again today and solved the problem almost immediately. I had one of my rows set up as a column, which when my buttons were triggered sent signals to two rows instead of a row and column. :)

    The arduino does have bluetooth modules available, in fact I just bought one however I have not been able to use it yet. Also I have no experience with python. I know that the arduino bluetooth module makes the arduino show up on your computer as two coms. I believe its one for sending information and one for recieving.

    I will report back when I find out more.

    Thanks.

     
  • poilou

    poilou - 2016-09-07

    Hi Jake,
    Good to read you.

    I think bluetooth is just a mater of system driver, and it is not impossible that there is no change to make to pyDarts, unless a new com port is available on the system.
    Anyway let me know if you have time to release a few test, I would be interested in.

    Note that pyDarts require only one-side communication from arduino, reading only.

    Cheers !

     
  • Anonymous

    Anonymous - 2016-09-07

    You are correct, I figured it out yesterday and got it working. Now i just need to make some new games ; ).

     
  • poilou

    poilou - 2016-09-08

    Good job Jake !

     
  • poilou

    poilou - 2016-09-09

    Just a detail Jake : if you plan to add game to pydarts, I suggest that you use the developpement version (v1.0alpha). There is no change in the game structure between v0.9 & v1.0 so far, but just in case. When your games are ready, send them to me and I will append them to the main pydarts source.
    Good luck !

     

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.