State:Closed|icon_bug|icon_katana|database:public|Resolution:Fixed|TargetRelease:3.5v3|BugID:426888|
[ERROR python.root]: An AttributeError occurred in "RecordItemModel.py": 'NoneType' object has no attribute 'aboutToQuit'
Customer reported versionprint('TEST SUBPROCESS')
2. In the Python tab, run:import subprocess
CMD = 'katana --script /tmp/subprocessCommand.py'
subprocess.Popen(CMD, shell=True)
Make sure to change 'katana' to the path of your katanaBin installation.[ERROR python.root]: An AttributeError occurred in "RecordItemModel.py": 'NoneType' object has no attribute 'aboutToQuit'
Traceback (most recent call last):
File "python/Main/Main.py", line 443, in <module>
File "python/Main/Main.py", line 409, in __main
File "MainScript.py", line 40, in Main
File "MainCommon.py", line 97, in SetupVirtualKatanaUI
File "Tabs/__init__.py", line 8, in <module>
File "Tabs/BaseTab.py", line 9, in <module>
File "Widgets/__init__.py", line 27, in <module>
File "Util/__init__.py", line 56, in <module>
File "Util/LogRecordItemModel.py", line 249, in <module>
File "Util/LogRecordItemModel.py", line 187, in __init__
File "Util/RecordItemModel.py", line 103, in __init__
AttributeError: 'NoneType' object has no attribute 'aboutToQuit'
subprocess.Popen() prevents the crash from occurring. For example:import subprocess
import os
# subprocessCommand.py is a file containing "print('TEST SUBPROCESS')"
CMD = 'katana --script /tmp/subprocessCommand.py'
env = os.environ.copy()
subprocess.Popen(CMD, shell=True, env=env)
We're sorry to hear that
Please tell us why