ros-drivers / axis_camera

Contains basic Python drivers for accessing an Axis camera's MJPG stream. Also provides control for PTZ cameras.
BSD 3-Clause "New" or "Revised" License
52 stars 72 forks source link

support for python3? #63

Closed ghost closed 3 years ago

ghost commented 3 years ago

axis.py tries to import: import urllib2

but since python 3 that library is broken into parts and cannot be imported that way:

https://stackoverflow.com/a/2792652

Python 2 is no longer supported as of January 2020

Hiroaki-K4 commented 3 years ago

@zoombinis Hi. Did you remake axis_camera by using python3?

civerachb-cpr commented 3 years ago

When we update for Noetic we'll be fixing these issues and moving to Python3. Python2 is still usable by necessity in Melodic (python2 being used throughout Ubuntu 18.04), so I don't think we'll be backporting those changes unless absolutely necessary.

Hiroaki-K4 commented 3 years ago

ok, I understood.