OpenPype icon indicating copy to clipboard operation
OpenPype copied to clipboard

Update to Python 3.9

Open antirotor opened this issue 3 years ago • 6 comments

Feature

This PR is updating base OpenPype Python to 3.9 to match VFX platform CY2022

Close #3480

antirotor avatar Jul 20 '22 17:07 antirotor

first incompatibility:

Traceback (most recent call last):
  File "C:\Users\annat\.pyenv\pyenv-win\versions\3.9.6\lib\threading.py", line 973, in _bootstrap_inner
    self.run()
  File "C:\Users\annat\.pyenv\pyenv-win\versions\3.9.6\lib\threading.py", line 910, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\annat\Documents\pype\op-p3.9\openpype\modules\ftrack\tray\ftrack_tray.py", line 207, in set_action_server
    elif not self.thread_socket_server.isAlive():
AttributeError: 'SocketThread' object has no attribute 'isAlive'

as isAlive() was removed in favour of is_alive()

antirotor avatar Jul 20 '22 17:07 antirotor

I believe this is actually testable. Tested in Maya 2020 so far without trouble....

antirotor avatar Aug 02 '22 06:08 antirotor

README.md in root needs to be updated too.

kalisp avatar Aug 05 '22 15:08 kalisp

Tested on Centos 7, need tests on Macs

antirotor avatar Sep 14 '22 09:09 antirotor

Should work on macs, tested on virtual Catalina

antirotor avatar Oct 13 '22 15:10 antirotor

LGTM

64qam avatar Oct 18 '22 15:10 64qam