Please or Register to create posts and topics.

[Solved] Maya inits two Prism Browser windows on startup.

We solved this problem, but since a few people on the production had this problem I thought it was worth a share.

When starting Maya, the script editor threw me this error:

# Traceback (most recent call last): # File "C:\Prism\Scripts\ProjectScripts\", line 525, in enterEvent # QApplication.restoreOverrideCursor() # AttributeError: 'NoneType' object has no attribute 'restoreOverrideCursor' # Traceback (most recent call last): # File "C:\Prism\Scripts\ProjectScripts\", line 391, in <lambda> # self.tw_aFiles.leaveEvent = lambda x: self.tableLeaveEvent(x, "af") # File "C:\Prism\Scripts\ProjectScripts\", line 288, in func_wrapper # exc_info = sys.exc_info() # AttributeError: 'NoneType' object has no attribute 'exc_info'

This caused Prism to create two Project Browser windows on startup.
I'm not sure when or how this happened, but inside of the maya Prism had inserted the following code twice:


from maya import OpenMaya as omya

if omya.MGlobal.mayaState() != omya.MGlobal.kBatch:
import PrismInit
pcore = PrismInit.prismInit()
print "Error occured while loading pcore"

This seemed to be the cause of the error and removing one of the parts solved the problem.

Thanks for posting this solution. I found the problem for this behavior and fixed it in the latest Prism version. So that shouldn't happen again.