cthuun / python-xbee

Automatically exported from code.google.com/p/python-xbee
MIT License
1 stars 0 forks source link

dispatch_async: serialposix.py TypeError #45

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ~/python/XBee-2.1.0/examples# python dispatch_async.py

What is the expected output? What do you see instead?
expected to see output of the handlers.

Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/site-packages/xbee/base.py", line 95, in run
    self._callback(self.wait_read_frame())
  File "/usr/lib/python2.7/site-packages/xbee/base.py", line 399, in wait_read_frame
    frame = self._wait_for_frame()
  File "/usr/lib/python2.7/site-packages/xbee/base.py", line 117, in _wait_for_frame
    if self.serial.inWaiting() == 0:
  File "/usr/lib/python2.7/site-packages/serial/serialposix.py", line 337, in inWaiting
    s = fcntl.ioctl(self.fd, TIOCINQ, TIOCM_zero_str)
TypeError: argument must be an int, or have a fileno() method.

What version of the product are you using? On what operating system?
XB-2.1.0
Python 2.7.3 (default, May 29 2013, 21:25:00)
Linux beaglebone 3.8.13 #1 SMP Wed Jun 5 11:21:00 CEST 2013 armv7l GNU/Linux

Please provide any additional information below.
receive_samples_async.py is working.

Original issue reported on code.google.com by pde...@gmail.com on 17 Feb 2014 at 11:08

GoogleCodeExporter commented 9 years ago
This happens when using pySerial 2.4, which is the version that comes with 
Angstrom...
Fix:
Install pySerial 2.7 from source ( 
http://pyserial.sourceforge.net/pyserial.html#installation ) and it's working.

You may close this issue.

Original comment by pde...@gmail.com on 17 Feb 2014 at 11:31

GoogleCodeExporter commented 9 years ago
Hi, i can confirm this issue on a MAC OS X Mavericks with pySerial 2.7, build 
from source.

Any hints how to solve this problem?

Thanks and Kind regards

Lyn

Original comment by lyn.s.ma...@gmail.com on 7 Jun 2014 at 12:07

GoogleCodeExporter commented 9 years ago
Closing as WontFix due to pdemil's workaround listed above. Thanks pdemil!

Original comment by pmalms...@gmail.com on 15 Aug 2014 at 12:44