lilyinstarlight / python-ardrone

A Python library for controlling the Parrot AR.Drone 2.0 over a network
MIT License
26 stars 14 forks source link

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

Open ambikaverma opened 7 years ago

ambikaverma commented 7 years ago

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')

AdeelH commented 7 years ago

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.