geaxgx / tello-openpose

MIT License
299 stars 87 forks source link

tello_openpose.py: dont work #2

Closed 0x77dev closed 5 years ago

0x77dev commented 5 years ago
0x77@0x77mac ~/tello-openpose> python3 tello_openpose.py
objc[1633]: Class CaptureDelegate is implemented in both /usr/local/lib/python3.7/site-packages/cv2/cv2.cpython-37m-darwin.so (0x11cecd6a8) and /usr/local/opt/opencv/lib/libopencv_videoio.4.1.dylib (0x126c9d920). One of the two will be used. Which one is undefined.
objc[1633]: Class SDLTranslatorResponder is implemented in both /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib (0x117e3b258) and /usr/local/lib/python3.7/site-packages/pygame/.dylibs/libSDL-1.2.0.dylib (0x12a381680). One of the two will be used. Which one is undefined.
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
  File "tello_openpose.py", line 1004, in <module>
    main(use_multiprocessing=args.multiprocess, log_level=args.log_level)
  File "tello_openpose.py", line 127, in main
    log_level=log_level, child_cnx=child_cnx)
  File "tello_openpose.py", line 212, in __init__
    self.drone = tellopy.Tello(start_recv_thread=not self.use_multiprocessing)
TypeError: __init__() got an unexpected keyword argument 'start_recv_thread'
0x77@0x77mac ~/tello-openpose>
0x77dev commented 5 years ago

fixed using replacing line 212 to

         self.drone = tellopy.Tello(self.use_multiprocessing)