tbird20d / grabserial

Grabserial - python-based serial dump and timing program - good for embedded Linux development
GNU General Public License v2.0
198 stars 79 forks source link

Error when closing #23

Closed SmickBones closed 6 years ago

SmickBones commented 6 years ago

Hello, I am running grabserial to log moisture data from an Arduino on a Raspberry Pi.

The command that I run is as follows:

grabserial -d /dev/ttyACM0 -T -e 3600 -o "%Y-%m-%d.txt" -a -Q

This seems to work fine, logging the data to the file, (I know the length of time/timestamp doesn't make sense, I haven't finalized that) but when I press Ctrl+C I get the following error:

^CTraceback (most recent call last):
  File "/usr/local/bin/grabserial", line 4, in <module>
    __import__('pkg_resources').run_script('grabserial==1.9.6', 'grabserial')
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 739, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1501, in run_script
    exec(script_code, namespace, namespace)
  File "/usr/local/lib/python2.7/dist-packages/grabserial-1.9.6-py2.7.egg/EGG-INFO/scripts/grabserial", line 530, in <module>

  File "/usr/local/lib/python2.7/dist-packages/grabserial-1.9.6-py2.7.egg/EGG-INFO/scripts/grabserial", line 419, in grab

  File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 472, in read
    ready, _, _ = select.select([self.fd, self.pipe_abort_read_r], [], [], timeout.time_left())
KeyboardInterrupt

Thanks