I did a similar exercise late last year, using opencv v4 beta and python. I defaulted to py3. And immediately had problems, even with example-ish code. Camera misconfiguration and intermittent latency excursions, IIRC. So I backtracked to the "road well traveled" of py2. Which just worked.
While I understand the desire for a unified Python ecosystem as much as anyone - this kind of pettifogging is not going to convince anyone to switch to Py3.
Consider if the authors of the article had used (for example) Ruby - you probably wouldn't ask why they didn't do it in Python3, so why do you do it if they write it in Python2?
4 months 25 days 5 hours left until Python 2 is retired. After that point it will no longer be maintained by the Python project.
Of course Linux distros and companies will keep Python 2 running for years to come because of all of the tools that are Python 2 only.
New projects ought to be written in Python 3. However, in this case my guess would be that OP probably used Python 2.7 because macOS ships with Python 2.7 preinstalled.
So if we could, Apple are the ones that we ought to speak to. Convince Apple to ship macOS with Python 3 pre-installed.
The switch from Python 2 to 3 was slowed down tremendously because major libraries did not fully support Python 3 immediately. The question regarding the dependencies was legitimate.
With respect, if nobody finds the issues in the upstream dependencies and works to make them compatible with Python 3, they won't be supported. That would be a shame for this project and others that use the same upstreams.
I'd have hard time finding support for some Ruby 1.8 upstream dependencies for recent projects, so I don't agree with you.
mncharity|6 years ago
jpeanuts|6 years ago
Consider if the authors of the article had used (for example) Ruby - you probably wouldn't ask why they didn't do it in Python3, so why do you do it if they write it in Python2?
codetrotter|6 years ago
Python 2 will be EOLed soon.
https://pythonclock.org/
4 months 25 days 5 hours left until Python 2 is retired. After that point it will no longer be maintained by the Python project.
Of course Linux distros and companies will keep Python 2 running for years to come because of all of the tools that are Python 2 only.
New projects ought to be written in Python 3. However, in this case my guess would be that OP probably used Python 2.7 because macOS ships with Python 2.7 preinstalled.
So if we could, Apple are the ones that we ought to speak to. Convince Apple to ship macOS with Python 3 pre-installed.
rerx|6 years ago
ViViDboarder|6 years ago
newaccoutnas|6 years ago
I'd have hard time finding support for some Ruby 1.8 upstream dependencies for recent projects, so I don't agree with you.
unknown|6 years ago
[deleted]
40four|6 years ago