python-ardrone icon indicating copy to clipboard operation
python-ardrone copied to clipboard

Error 10038 'An operation was attempted on something that is not a socket'

Open ambikaverma opened this issue 8 years ago • 1 comments

I try to run the following commands -

import ardrone drone = ardrone.ARDrone()

environment - using jupyter notebook to run the demo code. Using python 2.7 version. Line on with error is reported is - File "ardrone\network.py", line 99, in run inputready, outputready, exceptready = select.select([self.drone.video_pipe, self.drone.nav_pipe], [], [], 1) error: (10038, 'An operation was attempted on something that is not a socket')

ambikaverma avatar Oct 03 '17 20:10 ambikaverma

Are you on Windows? Using select on pipes is not supported on Windows. From https://docs.python.org/2.7/library/select.html#select.select:

Note: File objects on Windows are not acceptable, but sockets are. On Windows, the underlying select() function is provided by the WinSock library, and does not handle file descriptors that don’t originate from WinSock.

AdeelH avatar Oct 04 '17 06:10 AdeelH