-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PyQT issues with Softimage 2014 SP2 #15
Comments
thanks for this repro script... i am pretty sure i validated 2014 SP2 but i will check again tonight. |
ok the linked code doesn't have any pyqin.debugger.brk() line and it works in 2014 SP2 on my machine. it logs
|
the line is just below the InjectButton.setGeometry. So you did not have any problems running it? It must be something else in our pipeline confilicting then. I will send you another TreeView test. We cannot get the tree view to load either. Thank you so much for looking at this. I hate to bug you about it. Greg ok the linked code doesn't have any pyqin.debugger.brk() line and it works in 2014 SP2 on my machine. it logs INFO : Inject Clicked— |
That is odd. I just got a response from the Soft developers. They were able to reproduce the problem. They also tried it with 2013 using Python 2.7.3 externally and had the same issue. I am sure that I sent you the right code. Here it is below: ''' BASE TEMPLATE FILE FOR CONSTRUCTING A PYQT INTERFACE IN SOFTIMAGE Fill in below AuthorFirstName and AuthorLastName. The code will AuthorFirstName = "" Do a Find+Replace for TestPyQTTreeView and replace it with the ####################################################################### #PyQt BASE IMPORTS class TestPyQTButton( QDialog ): self.InputWidget = QWidget(self) def clickedInject(self): ################################################################################################################### XSI Hooks################################################################################################################### #Menu Hommand Hook! Change the first param to the correct menu placement.in_reg.RegisterMenu(c.siMenuMCPEditID,"Make_TestPyQTButton",False,False)def Make_TestPyQTTreeView_Init( in_ctxt ):oMenu = in_ctxt.SourceoMenu.AddCallbackItem("TestPyQTButton","TestPyQTButton_Init_Execute")return Truedef TestPyQTButton_Init_Execute( in_ctxt=None ): ----- Original Message ----- ok the linked code doesn't have any pyqin.debugger.brk() line and it works in 2014 SP2 on my machine. it logs INFO : Inject Clicked— |
so they say they reproduce it? what other information have they given? yes, that looks like the same code but it worked when i ran it last night |
They tried the code with 2014SP2 with the internal python, and it would not work. They tried it again with 2014 with external Python 2.7.3 and it would not work. They tried it with 2014 with external Pyton 2.6.4 and it does work. They also said with 2013 and external Python 2.7.3, it does not work. That is exactly what I am seeing here. ----- Original Message ----- so they say they reproduce it? what other information have they given? yes, that looks like the same code but it worked when i ran it last night — |
i will double check my configuration tonight... |
I figured out what it was. What version of PyQT were you using? The lastest version (4.10.3) breaks the tools. I put 4.9 for Python 2.7, and everything works fine now. You must have an older version of PyQt, which was why it worked for you. Thanks, Greg i will double check my configuration tonight... — |
ok, interesting... i should try compiling with a more compatible version of Qt/PyQt. ie. PyQt version 4.10.3 uses Qt 4.8.5. |
i found this issue on the mailing list... https://groups.google.com/forum/#!msg/xsi_list/0hJqWGMf71I/Vu5Lj58qLbkJ its me! haha i forgot this was an issue. i will have to update the docs |
i am using python 2.7.3 and pyqt version 4.7.3. i will try and investigate why the newer versions wont work but i can't promise anything |
That is funny that you had the issue before with 4.10 and had posted about it. No problem, we can just use the 4.9.4 version with Python 2.7. I am just glad that there is a good workaround for this. i am using python 2.7.3 and pyqt version 4.7.3. i will try and investigate why the newer versions wont work but i can't promise anything — |
There was a similar question this week in si-community (pyqt4.10.x) :) |
We are having some issues with some PyQt functionality in Soft 2014 sp2. I have a simple button press script that works with 2013, but will not work with 2014. If you run the pywin debugger, and uncomment the pywin.debugger.brk() line, and then press F5 to continue that script then it will work. Here is the script:
http://client.elementxcreative.com/public/code_sample/testPyQTButton.py
The text was updated successfully, but these errors were encountered: