------
Softimage Mailing List.
To unsubscribe, send a mail to softimag...@listproc.autodesk.com with "unsubscribe" in the subject, and reply to confirm.
So now that I solved the problem I was having with the use of an “external” Python and have Python 2.7.11 running “in” Softimage, I run into a different set of problems. Python 2.7.11 ships with PySide 2.2.4, but now the plugin doesn’t work and is giving me the following error message:
“ERROR : [PyQtForSoftimage] Couldn’t import PySide or PyQt4! You must have one or the other to run this app.
# ERROR : Traceback (most recent call last):# File “<Script Block 2>”, line 10, in <module># import Qt.QtCore as QtCore# ImportError: No module named QtCore”
But
"import PySide
Application.LogMessage(PySide.__version__)”
(“print” doesn’t work for some reason with this “external” Python), returns “1.2.4”.
Again, I haven’t got a clue what is going on…
I really hope someone will still be able to help me, because this is starting to drive me crazy…
I am back on “internal” Python…
I uninstalled PySide 2.2 and installed PySide 2.1, but now Softimage throws a whole set of new errors at me. Strangely enough though Application.ExampleMenu() now works…
Qtevents.py doesn’t get properly loaded, but throws the following error:
# ERROR : Traceback (most recent call last):
# File "<Script Block 2>", line 281, in XSILoadPlugin
# from sisignals import EVENT_MAPPING
# File "C:\Users\Leendert\Autodesk\Softimage_2015_R2-SP2\Addons\PyQtForSoftimage\Application\Plugins\sisignals.py", line 42, in <module>
# class SISignals(QObject):
# File "C:\Users\Leendert\Autodesk\Softimage_2015_R2-SP2\Addons\PyQtForSoftimage\Application\Plugins\sisignals.py", line 50, in SISignals
# siActivate = Signal(bool) # siOnActivate
# TypeError: 'NoneType' object is not callable
# - [line 280 in C:\Users\Leendert\Autodesk\Softimage_2015_R2-SP2\Addons\PyQtForSoftimage\Application\Plugins\qtevents.py]
Application.ExampleDialog() does create a window on screen, but kills it before I can see what it is.
Application.ExampleMenu() works!!!
Application.ExampleSignalSlot() throws the following error:
# ERROR : Traceback (most recent call last):
# File "<Script Block 2>", line 165, in ExampleSignalSlot_Execute
# dialog = ExampleSignalSlot( sianchor )
# File "<Script Block 2>", line 59, in __init__
# from sisignals import signals, muteSIEvent
# File "C:\Users\Leendert\Autodesk\Softimage_2015_R2-SP2\Addons\PyQtForSoftimage\Application\Plugins\sisignals.py", line 42, in <module>
# class SISignals(QObject):
# File "C:\Users\Leendert\Autodesk\Softimage_2015_R2-SP2\Addons\PyQtForSoftimage\Application\Plugins\sisignals.py", line 50, in SISignals
# siActivate = Signal(bool) # siOnActivate
# TypeError: 'NoneType' object is not callable
# - [line 58 in C:\Users\Leendert\Autodesk\Softimage_2015_R2-SP2\Addons\PyQtForSoftimage\Application\Plugins\pyqt_example.py]
# ERROR : OLE error 0x80020101
Application.ExampleUIFile() throws the following error:
# ERROR : Traceback (most recent call last):
# File "<Script Block 2>", line 188, in ExampleUIFile_Execute
# dialog = ExampleUIFile(sianchor, uifilepath)
# File "<Script Block 2>", line 122, in __init__
# self.ui = loadUi( uifilepath, self )
# TypeError: 'NoneType' object is not callable
# - [line 121 in C:\Users\Leendert\Autodesk\Softimage_2015_R2-SP2\Addons\PyQtForSoftimage\Application\Plugins\pyqt_example.py]
# ERROR : OLE error 0x80020101
I have reinstalled PyQtForSoftimage in a Workgroup and now Qtevents.py is correctly loaded with no errors. Application.ExampleDialog() and Application.ExampleSignalSlot() do create a window on screen, but Softimage kills it before I can see what it is. Application.ExampleMenu() still works. But now Application.ExampleUIFile() throws the following error:
# ERROR : Traceback (most recent call last):
# File "<Script Block 2>", line 188, in ExampleUIFile_Execute
# dialog = ExampleUIFile(sianchor, uifilepath)
# File "<Script Block 2>", line 122, in __init__
# self.ui = loadUi( uifilepath, self )
# TypeError: 'NoneType' object is not callable
# - [line 121 in E:\Exordium\workgroups\Hirazi Workgroup\Addons\PyQtForSoftimage\Application\Plugins\pyqt_example.py]
# ERROR : OLE error 0x80020101
Qtevents.py doesn’t get properly loaded, but throws the following error:
# ERROR : Traceback (most recent call last):
# File "<Script Block 2>", line 281, in XSILoadPlugin
# from sisignals import EVENT_MAPPING
# File "C:\Users\Leendert\Autodesk\Softimage_2015_R2-SP2\Addons\PyQtForSoftimage\Application\Plugins\sisignals.py", line 42, in <module>
# class SISignals(QObject):
# File "C:\Users\Leendert\Autodesk\Softimage_2015_R2-SP2\Addons\PyQtForSoftimage\Application\Plugins\sisignals.py", line 50, in SISignals
# siActivate = Signal(bool) # siOnActivate
# TypeError: 'NoneType' object is not callable
# - [line 280 in C:\Users\Leendert\Autodesk\Softimage_2015_R2-SP2\Addons\PyQtForSoftimage\Application\Plugins\qtevents.py]
You listed PySide 2.2... did you mean 1.2.2? Did you follow the steps I listed?
*written with my thumbs
On 29/06/2016 17:32:23, Steven Caron <car...@gmail.com> wrote:
You listed PySide 2.2... did you mean 1.2.2? Did you follow the steps I listed?
*written with my thumbs
------ Softimage Mailing List. To unsubscribe, send a mail to softimag...@listproc.autodesk.com with "unsubscribe" in the subject, and reply to confirm.
What about external python, are you able to use it? No PySide... just Softimage and python 2.7, and pywin32 217
*written with my thumbs
Well I don't know where you are anymore... do you want to use system installed python or the python shipped with Softimage?
*written with my thumbs
I see your thread on fabric engine forums too, let's stay focused... either on this mailing list or on their forums?
I prefer external python because I can use PyQt/PySide for standalone applications which have nothing to do with Softimage.
Did you follow my earlier steps? Remove everything and start from scratch?
*written with my thumbs
Well if you change your mind, follow the instructions we gave about checking your installs are working before moving on to PySide or PyQtForSoftimage plugin.
It's either some versioning conflicts, failed installation steps, or some system configuration you have that is messing with Python and PySide.
*written with my thumbs
To anyone else listening... has anyone gotten PyQtForSoftimage working on Windows 10? If so what is your configuration... Softimage version, python version, pyqt or PySide version, etc.
*written with my thumbs
To anyone else listening... has anyone gotten PyQtForSoftimage working on Windows 10? If so what is your configuration... Softimage version, python version, pyqt or PySide version, etc.
*written with my thumbs
・ not work: Softimage 2015 SP1 / Windows 10 64bit / external Python
2.7.11 / PySide 1.2.1 / PyWin 217 / PyQtForSoftimage beta6 addon,
・ works fine: Softimage 2013 SP1 / Windows 10 64bit / external Python
2.7.11 / PySide 1.2.1 / PyWin 217 / PyQtForSoftimage beta6 addon,
I found that this is not python related thing but Softimage itself.
Softimage could not return 64bit int value (unsigned long long value
)for command's "ReturnValue" where using inside
QtSoftimage::getQtSoftimageArchor. With Softimage2015 AND Windows10,
the QWidget *sianchor address may exist in 64bit space, in contrast,
with softimage 2013 + windows10 it always exists in 32bit space ( I
don't know why...).
i will investigate more.
On 29/06/2016 20:52:09, Steven Caron <car...@gmail.com> wrote:
To anyone else listening... has anyone gotten PyQtForSoftimage working on Windows 10? If so what is your configuration... Softimage version, python version, pyqt or PySide version, etc.
*written with my thumbs
------ Softimage Mailing List. To unsubscribe, send a mail to softimag...@listproc.autodesk.com with "unsubscribe" in the subject, and reply to confirm.
To anyone else listening... has anyone gotten PyQtForSoftimage working on Windows 10? If so what is your configuration... Softimage version, python version, pyqt or PySide version, etc.
Did you try creating and setting the environment variable "PYTHONHOME" to the path of your "external" Python?
To get the "internal" Python back, you'd have to delete the "PYTHONHOME" environment variable again...
Are you setup to compile the C++ part of the plugin on Windows 10? If you could do that and replace the one in the workgroup and see what happens that would be great.
On 01/07/2016 10:44:31, Takayoshi Matsumoto <yamah...@gmail.com> wrote:
Here are the links,
https://www.dropbox.com/s/9x9k3u27v2oslmr/PyQtForSoftimage_win10_returnedvalue.xsiaddon?dl=0
https://www.dropbox.com/s/y1mfleopvx5cr2w/PySide-1.2.4-cp27-cp27m-win_amd64.whl?dl=0
Note:
getQtSoftimageAnchor does not return "long" value anymore, but return
as unicode (or str) value in python. so where invoking this command
in, you have to change your python code to removing explicit cast
like,
```python.diff
- sianchor = Application.getQtSoftimageAnchor()
- sianchor = Qt.wrapinstance(long(sianchor), QWidget)
+ sianchor = Application.getQtSoftimageAnchor()
+ sianchor = Qt.wrapinstance(sianchor, QWidget)
```
Full diff of PyQtForSoftimage is here:
https://github.com/yamahigashi/PyQtForSoftimage/commit/e87f74f21d5f11080ea74c96ba525a3c43511c6a
and PySide is:
https://gist.github.com/yamahigashi/f2374c3b6f29f11852c2e7d55cf89f6f
best, Takayoshi
On 01/07/2016 11:56:18, Takayoshi Matsumoto <yamah...@gmail.com> wrote:
oops something wrong when I made packaging xsiaddon. I assume that
mixing my .pyc into addon. So can yout try to remove
Addons\PyQtForSoftimage\Application\Plugins\Qt\__init__.pyc and
Addons\PyQtForSoftimage\Application\Plugins\sisignals.pyc , restart softimage
and have a challenge again?
On 01/07/2016 10:44:31, Takayoshi Matsumoto <yamah...@gmail.com> wrote:
Here are the links,
https://www.dropbox.com/s/9x9k3u27v2oslmr/PyQtForSoftimage_win10_returnedvalue.xsiaddon?dl=0
https://www.dropbox.com/s/y1mfleopvx5cr2w/PySide-1.2.4-cp27-cp27m-win_amd64.whl?dl=0
Note:
getQtSoftimageAnchor does not return "long" value anymore, but return
as unicode (or str) value in python. so where invoking this command
in, you have to change your python code to removing explicit cast
like,
```python.diff
- sianchor = Application.getQtSoftimageAnchor()
- sianchor = Qt.wrapinstance(long(sianchor), QWidget)
+ sianchor = Application.getQtSoftimageAnchor()
+ sianchor = Qt.wrapinstance(sianchor, QWidget)
```
Full diff of PyQtForSoftimage is here:
https://github.com/yamahigashi/PyQtForSoftimage/commit/e87f74f21d5f11080ea74c96ba525a3c43511c6a
and PySide is:
https://gist.github.com/yamahigashi/f2374c3b6f29f11852c2e7d55cf89f6f
best, Takayoshi