4 Replies Latest reply on Dec 1, 2015 1:12 PM by BrechtW

    Install Serial library

    BrechtW

      I tried to install the Serial library as mentioned by Intel_Alvarado, since there is no Serial preinstalled. I'm using the EGLIBC microSD card image (210 MB) from IoT - Intel® Galileo Board Download | Intel® Developer Zone.

       

      To use the serial library you can install pyserial. You can see more information on pyserial here https://pypi.python.org/pypi/pyserial . Download the source file and put its contents in the SD card. De compress the folder using tar xvf pyserial-2.7.tar.gz.  That will create a folder called pyserial-2.7. Enter that folder and inside it type python setup.py install. Try running the code once again.

       

      root@galileo:/# cd media/

      root@galileo:/media# ls

      blinkMRAA.py  card  mmcblk0p1  test.txt  testservosMraa.py  uartMRAA.py

      root@galileo:/media# cd card

      root@galileo:/media/card# ls

      System Volume Information  bzimage  pyserial-2.7.tar.gz

      boot                      firmware  win-driver

      root@galileo:/media/card# tar xvf pyserial-2.7.tar.gz

      pyserial-2.7/

      pyserial-2.7/test/

      pyserial-2.7/test/test_readline.py

      pyserial-2.7/test/run_all_tests.py

      pyserial-2.7/test/test_advanced.py

      pyserial-2.7/test/test_iolib.py

      pyserial-2.7/test/test_url.py

      pyserial-2.7/test/test.py

      pyserial-2.7/test/test_high_load.py

      pyserial-2.7/setup.py

      pyserial-2.7/CHANGES.txt

      pyserial-2.7/PKG-INFO

      pyserial-2.7/LICENSE.txt

      pyserial-2.7/serial/

      pyserial-2.7/serial/serialposix.py

      pyserial-2.7/serial/rfc2217.py

      pyserial-2.7/serial/serialjava.py

      pyserial-2.7/serial/win32.py

      pyserial-2.7/serial/__init__.py

      pyserial-2.7/serial/sermsdos.py

      pyserial-2.7/serial/urlhandler/

      pyserial-2.7/serial/urlhandler/protocol_loop.py

      pyserial-2.7/serial/urlhandler/protocol_socket.py

      pyserial-2.7/serial/urlhandler/__init__.py

      pyserial-2.7/serial/urlhandler/protocol_rfc2217.py

      pyserial-2.7/serial/urlhandler/protocol_hwgrep.py

      pyserial-2.7/serial/serialutil.py

      pyserial-2.7/serial/serialcli.py

      pyserial-2.7/serial/tools/

      pyserial-2.7/serial/tools/list_ports_osx.py

      pyserial-2.7/serial/tools/miniterm.py

      pyserial-2.7/serial/tools/__init__.py

      pyserial-2.7/serial/tools/list_ports_posix.py

      pyserial-2.7/serial/tools/list_ports.py

      pyserial-2.7/serial/tools/list_ports_windows.py

      pyserial-2.7/serial/tools/list_ports_linux.py

      pyserial-2.7/serial/serialwin32.py

      pyserial-2.7/examples/

      pyserial-2.7/examples/tcp_serial_redirect.py

      pyserial-2.7/examples/port_publisher.py

      pyserial-2.7/examples/setup-miniterm-py2exe.py

      pyserial-2.7/examples/wxTerminal.wxg

      pyserial-2.7/examples/scanwin32.py

      pyserial-2.7/examples/port_publisher.sh

      pyserial-2.7/examples/wxSerialConfigDialog.wxg

      pyserial-2.7/examples/scan.py

      pyserial-2.7/examples/rfc2217_server.py

      pyserial-2.7/examples/enhancedserial.py

      pyserial-2.7/examples/setup-wxTerminal-py2exe.py

      pyserial-2.7/examples/wxSerialConfigDialog.py

      pyserial-2.7/examples/setup-rfc2217_server-py2exe.py

      pyserial-2.7/examples/wxTerminal.py

      pyserial-2.7/examples/scanlinux.py

      pyserial-2.7/documentation/

      pyserial-2.7/documentation/pyparallel.rst

      pyserial-2.7/documentation/appendix.rst

      pyserial-2.7/documentation/index.rst

      pyserial-2.7/documentation/examples.rst

      pyserial-2.7/documentation/pyserial.png

      pyserial-2.7/documentation/Makefile

      pyserial-2.7/documentation/conf.py

      pyserial-2.7/documentation/pyserial_api.rst

      pyserial-2.7/documentation/pyserial.rst

      pyserial-2.7/documentation/shortintro.rst

      pyserial-2.7/MANIFEST.in

      pyserial-2.7/README.txt

      root@galileo:/media/card# ls

      System Volume Information  bzimage  pyserial-2.7        win-driver

      boot                      firmware  pyserial-2.7.tar.gz

      root@galileo:/media/card# cd pyserial-2.7

      root@galileo:/media/card/pyserial-2.7# python setup.py

      /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution opti                                                                                                            on: 'use_2to3'

        warnings.warn(msg)

      usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]

        or: setup.py --help [cmd1 cmd2 ...]

        or: setup.py --help-commands

        or: setup.py cmd --help

       

       

      error: no commands supplied

      root@galileo:/media/card/pyserial-2.7#