GithubHelp home page GithubHelp logo

Comments (2)

PaulBouchier avatar PaulBouchier commented on July 21, 2024

Problem understood.

From http://sourceforge.net/p/pyserial/code/HEAD/tree/tags/release2_7/CHANGES.txt:

Version 2.6 2011-11-02

Bugfixes:

  • [Bug 3093882] calling open() on an already open port now raises an exception

On Ubuntu 14.04:
less /usr/lib/python2.7/less /usr/lib/python2.7/dist-packages/serial/init.py shows:
VERSION = '2.6'

On the working Ubuntu 12.04 system, the same command shows VERSION = '2.5'

The actual code which throws the exception is in serialposix.py:
def open(self):
"""Open port with current settings. This may throw a SerialException
if the port cannot be opened."""
if self._port is None:
raise SerialException("Port must be configured before it can be used.")
if self._isOpen:
raise SerialException("Port is already open.")

I confirmed by opening a port in python manually that it does throw that exception.

So the root cause is the API changed between pySerial 2.5 used on Ubuntu 12.04 and pySerial 2.6 used on Ubuntu 14.04. The solution is the open() statement has to be removed in Indigo. I'll submit a pull request for the github official turtlebot repo in a little while, which will fix some other breaks in the turtlebot build, but someone should fix the yujinrobot repo.

from turtlebot_create.

kentsommer avatar kentsommer commented on July 21, 2024

Fixed with this merge: #18

:bowtie:

from turtlebot_create.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.