PyQtForSoftimage Examples "Out of present range" error

169 views
Skip to first unread message

Leendert A. Hartog

unread,
Jun 25, 2016, 12:25:54 PM6/25/16
to soft...@listproc.autodesk.com
I have tried installing the PyQtForSoftimage addon today, after having successfully installed PyQt and PySide, but the PyQt_EXamples all return a "COM Error: Out of present range. (0x-7ffdfff6) (...) # ERROR : OLE error 0x80020101"-error... I haven't got a clue what is going on...

Greetz
Leendert
AKA Hirazi Blue
Softimage hobbyist, admin at si-community.com & xsiforum.de


Martin

unread,
Jun 25, 2016, 10:12:31 PM6/25/16
to soft...@listproc.autodesk.com
Yeah that's the same problem I had a few months ago.

My "solution" was to use the internal Python and load pyside modules in a workgroup. I can send you that workgroup folder if you want.

Martin
Sent from my iPhone
------
Softimage Mailing List.
To unsubscribe, send a mail to softimag...@listproc.autodesk.com with "unsubscribe" in the subject, and reply to confirm.

Steven Caron

unread,
Jun 25, 2016, 10:37:36 PM6/25/16
to soft...@listproc.autodesk.com
which operating system are you guys on?

Martin

unread,
Jun 25, 2016, 10:51:13 PM6/25/16
to soft...@listproc.autodesk.com
 I'm on Windows 7 Ultimate.


Martin
Sent from my iPhone

Steven Caron

unread,
Jun 25, 2016, 10:56:58 PM6/25/16
to soft...@listproc.autodesk.com
Ok, I have windows 7 and everything is working as expected. Let's debug this?

Win 7 64bit, check...
Softimage version?
Python version?
PyQt or PySide? which version exactly...
Version of PyQtForSoftimage plugin?

Leendert A. Hartog

unread,
Jun 26, 2016, 1:44:29 AM6/26/16
to soft...@listproc.autodesk.com
Windows 10
Softimage 2015 R2-SP2
"internal" Python 2.7.3
Pyside 1.2.2
PyQtForSoftimage_beta6.xsiaddon

Greetz
Leendert
AKA Hirazi Blue
Softimage hobbyist, admin at si-community.com & xsiforum.de


Leendert A. Hartog

unread,
Jun 26, 2016, 1:45:20 AM6/26/16
to soft...@listproc.autodesk.com
Oh... and 64 bit, obviously...


Greetz
Leendert
AKA Hirazi Blue
Softimage hobbyist, admin at si-community.com & xsiforum.de


Martin

unread,
Jun 26, 2016, 11:06:46 AM6/26/16
to soft...@listproc.autodesk.com
I'll have to go to my office to verify all the versions but I think SI crashed with every version of Python and Softimage I tried, independently if I used PyQT for Softimage plugin, PySide, or not.

What I did was installing a the same Python version SI is using, then PySide, copy this PySide folder to my Workgroup, use the internal Python and load this PySide folder and PyQT for SI plugin.

Martin
Sent from my iPhone

Leendert A. Hartog

unread,
Jun 27, 2016, 8:45:32 AM6/27/16
to soft...@listproc.autodesk.com
I was able to use the Windows installer for PySide ("PySide-1.2.2.win-amd64-py2.7.exe"), after setting "HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.7\InstallPath" in the registry to point to the "internal" Python and running the installer "as an Administrator" (as I have my Softimage installed in the "Program Files"directory).


Greetz
Leendert
AKA Hirazi Blue
Softimage hobbyist, admin at si-community.com & xsiforum.de


Martin

unread,
Jun 27, 2016, 9:50:29 PM6/27/16
to soft...@listproc.autodesk.com
I used a workgroup to load PySide if it isn't loaded yet, because it would be easier to move and share it as a part of my own workgroup tools.

Martin
Sent from my iPhone

Steven Caron

unread,
Jun 28, 2016, 12:57:07 AM6/28/16
to soft...@listproc.autodesk.com
i don't have windows 10.. hoping i can reproduce on windows 7

Leendert A. Hartog

unread,
Jun 28, 2016, 4:25:23 PM6/28/16
to soft...@listproc.autodesk.com

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…

Greetz
Leendert
AKA Hirazi Blue
Softimage hobbyist, admin at si-community.com & xsiforum.de


Leendert A. Hartog

unread,
Jun 28, 2016, 4:26:27 PM6/28/16
to soft...@listproc.autodesk.com
Correction again: “print” doesn’t work for some reason with this “external” Python), returns “2.2.4” (NOT "1.2.4").


Greetz
Leendert
AKA Hirazi Blue
Softimage hobbyist, admin at si-community.com & xsiforum.de


Leendert A. Hartog

unread,
Jun 28, 2016, 5:24:59 PM6/28/16
to soft...@listproc.autodesk.com
I have reverted back to "internal" Python and now Softimage crashes hard when invoking the examples...


Greetz
Leendert
AKA Hirazi Blue
Softimage hobbyist, admin at si-community.com & xsiforum.de


Steven Caron

unread,
Jun 28, 2016, 5:59:51 PM6/28/16
to soft...@listproc.autodesk.com
I had a feeling from the get go you had some weird install or something not finishing during install.

I would remove, python from your machine, remove pyside, and remove pyqt. Make sure softimage internal python is working again. until that is the case, don't move forward. Remove them using proper uninstallers if you can. Undo anything you did to the PATH, PYTHONPATH, or PYTHONHOME.

Install python, I have 2.7.3 at home and 2.7.6 at work. you can try 2.7.11 I don't see why it wouldn't work.
Install pywin32 217
Turn off internal python in Softimage, test to make sure this works. If it doesn't work... I am lost.
Otherwise...
Install ONLY PySide, I think 1.2.1 is what I have at home but 1.2.4 should work too.
In softimage, try to use PySide...
"from PySide import QtCore"
If this works, install the PyQtForSoftimage plugin, beta6 support PySide.
Now run the examples.

Leendert A. Hartog

unread,
Jun 29, 2016, 5:38:36 AM6/29/16
to soft...@listproc.autodesk.com

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


Greetz
Leendert
AKA Hirazi Blue
Softimage hobbyist, admin at si-community.com & xsiforum.de


Leendert A. Hartog

unread,
Jun 29, 2016, 6:54:56 AM6/29/16
to soft...@listproc.autodesk.com

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


Greetz
Leendert
AKA Hirazi Blue
Softimage hobbyist, admin at si-community.com & xsiforum.de


Leendert A. Hartog

unread,
Jun 29, 2016, 7:00:17 AM6/29/16
to soft...@listproc.autodesk.com
But after restarting Softimage I am back at:

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]


Greetz
Leendert
AKA Hirazi Blue
Softimage hobbyist, admin at si-community.com & xsiforum.de


Leendert A. Hartog

unread,
Jun 29, 2016, 10:41:42 AM6/29/16
to soft...@listproc.autodesk.com
Sorry for polluting this thread with error messages, but it seems as if every time I restart Softimage or reinstall the plugin a different set of errors are thrown. I really do not understand what is going on. Now the Qtevents.py still offers the same error message as in my previous post, but now the examples again behave like before:

Leendert A. Hartog

unread,
Jun 29, 2016, 10:58:41 AM6/29/16
to soft...@listproc.autodesk.com
And as the icing on the cake, the next restart brought back the "Out of present range" errors. Something is terribly wrong and I haven't got a clue, what I can do to fix this...


Greetz
Leendert
AKA Hirazi Blue
Softimage hobbyist, admin at si-community.com & xsiforum.de


Steven Caron

unread,
Jun 29, 2016, 11:32:11 AM6/29/16
to soft...@listproc.autodesk.com

You listed PySide 2.2... did you mean 1.2.2? Did you follow the  steps I listed?

*written with my thumbs

Leendert A. Hartog

unread,
Jun 29, 2016, 11:35:40 AM6/29/16
to soft...@listproc.autodesk.com
I meant PySide 1.2.1.
I reinstalled Softimage, installed PySide 1.2.1 and all the weirdness reported in this thread started to happen...


Greetz
Leendert
AKA Hirazi Blue
Softimage hobbyist, admin at si-community.com & xsiforum.de


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.

Steven Caron

unread,
Jun 29, 2016, 11:40:33 AM6/29/16
to soft...@listproc.autodesk.com

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

Leendert A. Hartog

unread,
Jun 29, 2016, 12:29:30 PM6/29/16
to soft...@listproc.autodesk.com
No, it seemed to work yesterday, but when I tried to revert to "internal" I had to reinstall Softimage to fix the ensuing errors...


Greetz
Leendert
AKA Hirazi Blue
Softimage hobbyist, admin at si-community.com & xsiforum.de


Steven Caron

unread,
Jun 29, 2016, 12:52:27 PM6/29/16
to soft...@listproc.autodesk.com

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

Leendert A. Hartog

unread,
Jun 29, 2016, 1:29:56 PM6/29/16
to soft...@listproc.autodesk.com
Sorry for the confusion... I have been working on this problem for hours and it shows!!!

I was trying to get it to work using the "internal" Python, but now I am thinking I've tried everything with the "internal" Python, so next up would be completely reinstalling "external" Python and giving that another go...


Greetz
Leendert
AKA Hirazi Blue
Softimage hobbyist, admin at si-community.com & xsiforum.de


Steven Caron

unread,
Jun 29, 2016, 2:12:27 PM6/29/16
to soft...@listproc.autodesk.com

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

Leendert A. Hartog

unread,
Jun 29, 2016, 2:19:00 PM6/29/16
to soft...@listproc.autodesk.com
I opened the Fabric thread out of desperation, 
but you will have seen we didn't come any closer to a solution there either.
After one failed attempt with "external" Python and one last attempt with "internal" Python and PySide 1.2.4, I am still getting  either "Out of present range" errors or "Failed to save scene..." hard crash errors. 
I would like to say it was a fun experience, but it wasn't... No Kraken for me, then...


Greetz
Leendert
AKA Hirazi Blue
Softimage hobbyist, admin at si-community.com & xsiforum.de


Steven Caron

unread,
Jun 29, 2016, 2:29:18 PM6/29/16
to soft...@listproc.autodesk.com

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

Leendert A. Hartog

unread,
Jun 29, 2016, 2:47:49 PM6/29/16
to soft...@listproc.autodesk.com
It probably is "some system configuration" that is messed up. That's the scary part. I don't know enough about Windows 10 to figure out what could be going on. I uninstalled everything and cleared out the path and the pythonpath. But the weird thing is that Softimage was returning different errors after every restart or reinstallation of the plugin. 


Greetz
Leendert
AKA Hirazi Blue
Softimage hobbyist, admin at si-community.com & xsiforum.de


Steven Caron

unread,
Jun 29, 2016, 2:52:03 PM6/29/16
to soft...@listproc.autodesk.com

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

Oscar Juarez

unread,
Jun 29, 2016, 3:54:12 PM6/29/16
to soft...@listproc.autodesk.com
I had an external artist using Windows 10, and I couldnt make PyQtForSoftimage work on it, if I remember right it was this out of range error. I had to leave it due to time constrain things, and that we don't use windows 10 ourselves. But the PySide implementation that comes with Shotgun toolkit worked alright, probably that doesn't help you at all but just to let you know that I also found that problem with win 10.

external Python 2.7.3 / PySide 1.1.3 / PyWin 218, the same config works fine in windows 7

On Wed, Jun 29, 2016 at 8:51 PM, 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


Takayoshi Matsumoto

unread,
Jun 30, 2016, 12:46:35 AM6/30/16
to soft...@listproc.autodesk.com
I have problem to work PyQtForSoftimage with,

・ 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.

Steven Caron

unread,
Jun 30, 2016, 12:48:32 AM6/30/16
to soft...@listproc.autodesk.com
Thanks for your feedback... still investigating.

Steven Caron

unread,
Jun 30, 2016, 1:00:54 AM6/30/16
to soft...@listproc.autodesk.com
Thanks for this break down Takayoshi.

I know Softimage 2015 works on Windows 7 since that is what I am running.
I also know Softimage 2015 SP1 is working with Windows 7 from feedback have gotten from other users.

your findings about the return value for the anchor command are interesting.

Leendert A. Hartog

unread,
Jun 30, 2016, 5:44:52 AM6/30/16
to soft...@listproc.autodesk.com
Let me add one more observation, I made while struggling with this. I tried to get "PyQtForSoftimage" to work after uninstalling PySide and installing only PyQt, but ran into the same set of weird (and ever-changing) errors...


Greetz
Leendert
AKA Hirazi Blue
Softimage hobbyist, admin at si-community.com & xsiforum.de


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.

Martin Chatterjee

unread,
Jun 30, 2016, 7:32:57 AM6/30/16
to soft...@listproc.autodesk.com
Hi Steven,

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.


I've got one relatively new box on Windows 10 Pro and just gave it a try.

I can confirm that on my side Softimage does already crash on start up when trying to use the external python at all. This is without PySide or the PyQtForSoftimage addon involved.

Windows 10 Pro
Softimage 2015 R2 SP2
Python 2.7.11 x64
PyWin32 Build 220
No PySide/PyQT installation


Unfortunately I don't have the time right now to try to hunt down a potentially working set of software versions, just wanted to give you a heads up.

Thanks, -M

--
       Martin Chatterjee

 
[ Freelance Technical Director ]
[   http://www.chatterjee.de   ]

Leendert A. Hartog

unread,
Jun 30, 2016, 7:35:54 AM6/30/16
to soft...@listproc.autodesk.com
Did you try creating and setting the environment variable "PYTHONHOME" to the path of your "external" Python?

Greetz
Leendert
AKA Hirazi Blue
Softimage hobbyist, admin at si-community.com & xsiforum.de


Martin Chatterjee

unread,
Jun 30, 2016, 9:15:50 AM6/30/16
to soft...@listproc.autodesk.com
Hi Leendert, hi Steven,


Did you try creating and setting the environment variable "PYTHONHOME" to the path of your "external" Python?


Oh, is that supposed to be necessary? Having to set that sort of defies the usefulness of the Soft preferences checkbox, doesn't it?

Anyway, I gave it a try:

a.) With PYTHONHOME set to my external Python and 'use external Python' off I don't have Python support at all anymore inside Soft.

b.) But with PYTHONHOME set to my external Python and 'use external Python' on  I can sucessfully use my external Python inside Soft.
     ( verified by calling     import os; LogMessage(os.__file__)         )

----


Now that I have that part up and running I did:

a.) install PySide 1.2.2 into my external Python (verified by running   from PySide.QtCore import *   in a standalone Python shell)

b.) verify that Pyside can be imported inside Softimage (again verified by running   from PySide.QtCore import *   in the Script Editor)

c.) installed PyQtForSoftimage_beta6.xsiaddon into a fresh workgroup, and restarted Soft.

d.) After startup verified that there are no errors on load, checked the Plugin Manager to make sure that all plugins got loaded without errors

e.) Called Application.ExampleDialog(). 


This fails with this error on my side as well:  

# ERROR : Traceback (most recent call last):
#   File "<Script Block 2>", line 156, in ExampleDialog_Execute
#     sianchor = Application.getQtSoftimageAnchor()
#   File "<COMObject Application>", line 2, in getQtSoftimageAnchor
# COM Error: Out of present range. (0x-7ffdfff6) - [line 155 in C:\TEMP\DBG_WG\Addons\PyQtForSoftimage\Application\Plugins\pyqt_example.py]
# ERROR : OLE error 0x80020101
Application.ExampleDialog()
# ERROR : Traceback (most recent call last):
#   File "<Script Block >", line 1, in <module>
#     Application.ExampleDialog()
#   File "<COMObject Application>", line 2, in ExampleDialog
# COM Error: Exception occurred. (0x-7ffdfff7) - [line 1]


Cheers, -M

Leendert A. Hartog

unread,
Jun 30, 2016, 10:35:04 AM6/30/16
to soft...@listproc.autodesk.com
To get the "internal" Python back, you'd have to delete the "PYTHONHOME" environment variable again...


Greetz
Leendert
AKA Hirazi Blue
Softimage hobbyist, admin at si-community.com & xsiforum.de


Martin Chatterjee

unread,
Jun 30, 2016, 11:26:20 AM6/30/16
to soft...@listproc.autodesk.com
To get the "internal" Python back, you'd have to delete the "PYTHONHOME" environment variable again...

Yeah of course, I get that. 

But as far as I remember (it's been a few years since we've actually done that facility-wide) having to set PYTHONHOME was not a requirement for using an external Python inside Soft. 

Apparently now you have to manage setting the environment variable and setting a softimage preference in sync for this to work...

Leendert A. Hartog

unread,
Jun 30, 2016, 12:11:36 PM6/30/16
to soft...@listproc.autodesk.com
I consider having to set the environment variable under Windows 10 a workaround, as it apparently isn't a requirement for those of us still using Windows 7...


Greetz
Leendert
AKA Hirazi Blue
Softimage hobbyist, admin at si-community.com & xsiforum.de


Steven Caron

unread,
Jun 30, 2016, 1:07:40 PM6/30/16
to soft...@listproc.autodesk.com
Hey Martin

Thanks for your detailed response!

This PYTHONHOME thing is definitely new, I wonder if this is unique to Softimage 2015 R2-SP2, er whatever Autodesk left us with, or if it has to do with Windows 10 and Python?

This 'Out of present range' is sounding more like what Takayoshi was pointing out... The size of the return value.

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.

Steven

Takayoshi Matsumoto

unread,
Jul 1, 2016, 2:50:11 AM7/1/16
to soft...@listproc.autodesk.com
Hi all,

OK, we've done ;) It works on Windows10(64bit) + Softimage2015(SP1) +
external Python(2.7.11) + PyQtForSoftimage(samples) and Kraken!!

I've tryed to build PyQtForSoftimage for avoiding limitation of return
value's size, returning as CString value and then parse it into
long(ptr, 16) later on python. This seems ok.
But... unfortunately I encountered a another problem
http://tech-artists.org/forum/showthread.php?3949-pyside-and-wrapInstance
, https://bugreports.qt.io/browse/PYSIDE-103
So I built PySide modified "unsigned long" into "size_t". This also
seems ok. And after short modfied on py scripts invoking
"Qt.wrapInstance(ptr, base)", all samples work! and Kraken launch
again!
I will redistribute PyQtForSoftimage( or pull request) and PySide later.

# summary Win10 + Soft2015:

## external python does not work

solutions:
* set environment variable "PYTHONHOME"
* (pywin ?)


## crash or got error "Out of present range. (0x-7ffdfff6)" when
calling getQtSoftimageAnchor

problem:
The limitation of size of returned value on Command

solution:
custom build


## PySide's strange behaviour (dialog disappear shortly, crash)

problem:
Official PySide's shiboken.wrapInstance has overflow bug

https://bugreports.qt.io/browse/PYSIDE-103
http://tech-artists.org/forum/showthread.php?3949-pyside-and-wrapInstance

solution:
custom build

offtopic:
I think other dcc applications that include PySide are avoiding this issue.
http://www.autodesk.com/company/legal-notices-trademarks/open-source-distribution


cheers,

Takayoshi

Martin Chatterjee

unread,
Jul 1, 2016, 3:28:23 AM7/1/16
to soft...@listproc.autodesk.com
Hey Steven,
 
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.

I gave it a quick try yesterday night. I built the plugin with VS 2012 against Soft 2015 R2-SP2 and QT 4.8.5, and it errors out as well.

I guess I'll bow out of this now as Takayoshi seems to have sorted it out already. :)

Cheers, Martin

Takayoshi Matsumoto

unread,
Jul 1, 2016, 4:45:32 AM7/1/16
to soft...@listproc.autodesk.com
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

Leendert A. Hartog

unread,
Jul 1, 2016, 5:03:28 AM7/1/16
to soft...@listproc.autodesk.com
Thanks for the effort.
But trying this I get the following errors:

# ERROR : Traceback (most recent call last):
#   File "<Script Block 2>", line 7, in <module>
#     import Qt
# SystemError: dynamic module not initialized properly
#  - [line 7 in C:\Users\Leendert\Autodesk\Softimage_2015_R2-SP2\Addons\PyQtForSoftimage\Application\Plugins\pyqt_example.py]
# ERROR : Traceback (most recent call last):
#   File "<Script Block 2>", line 6, in <module>
#     import Qt
# SystemError: dynamic module not initialized properly
#  - [line 6 in C:\Users\Leendert\Autodesk\Softimage_2015_R2-SP2\Addons\PyQtForSoftimage\Application\Plugins\qtevents.py]

Greetz
Leendert
AKA Hirazi Blue
Softimage hobbyist, admin at si-community.com & xsiforum.de


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

Takayoshi Matsumoto

unread,
Jul 1, 2016, 5:57:14 AM7/1/16
to soft...@listproc.autodesk.com
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?

Leendert A. Hartog

unread,
Jul 1, 2016, 6:03:26 AM7/1/16
to soft...@listproc.autodesk.com
After the removal of the pyc-files the error remains the same...


Greetz
Leendert
AKA Hirazi Blue
Softimage hobbyist, admin at si-community.com & xsiforum.de


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?

Leendert A. Hartog

unread,
Jul 1, 2016, 6:08:56 AM7/1/16
to soft...@listproc.autodesk.com
Throwing the dll at the Dependency Walker I get the following info:

Error: At least one required implicit or forwarded dependency was not found.
Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module.
Error: Modules with different CPU types were found.
Warning: At least one delay-load dependency module was not found.
Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.

Greetz
Leendert
AKA Hirazi Blue
Softimage hobbyist, admin at si-community.com & xsiforum.de


Stephen Blair

unread,
Jul 1, 2016, 10:44:01 AM7/1/16
to soft...@listproc.autodesk.com
More and more, Dependency Walker is all about knowing what to ignore..

There will always be error and warnings

Leendert A. Hartog

unread,
Jul 1, 2016, 10:47:59 AM7/1/16
to soft...@listproc.autodesk.com
You're probably right, 
but in the end the only thing that matters is the sad fact that I still cannot get the plugin to work...


Greetz
Leendert
AKA Hirazi Blue
Softimage hobbyist, admin at si-community.com & xsiforum.de


Takayoshi Matsumoto

unread,
Jul 1, 2016, 11:42:45 AM7/1/16
to soft...@listproc.autodesk.com
I think the Qt module included in PyQtForSoftimage addon is not
related any dll. So this error may indicate some installation issue
like conflict.
> # ERROR : Traceback (most recent call last):
> # File "<Script Block 2>", line 7, in <module>
> # import Qt
> # SystemError: dynamic module not initialized properly

Can you check to there is any other module or file named "Qt" under
PYTHON_PATH directories exclude the
Addons\PyQtForSoftimage\Application\Plugins\Qt\__init__.py?

Leendert A. Hartog

unread,
Jul 1, 2016, 11:59:58 AM7/1/16
to soft...@listproc.autodesk.com
There indeed was. I fixed that, but now I am getting the following "Overflow" errors while running the examples:

# ERROR : Traceback (most recent call last):
#   File "<Script Block 2>", line 157, in ExampleDialog_Execute
#     sianchor = Qt.wrapinstance( sianchor, QWidget )
#   File "E:\Exordium\workgroups\Hirazi Workgroup\Addons\PyQtForSoftimage\Application\Plugins\Qt\__init__.py", line 232, in wrapinstance
#     return shiboken.wrapInstance(ptr, base)
# OverflowError
#  - [line 156 in E:\Exordium\workgroups\Hirazi Workgroup\Addons\PyQtForSoftimage\Application\Plugins\pyqt_example.py]
# ERROR : OLE error 0x80020101
Application.ExampleDialog()
# ERROR : Traceback (most recent call last):
#   File "<Script Block 2>", line 164, in ExampleSignalSlot_Execute
#     sianchor = Qt.wrapinstance( sianchor, QWidget )
#   File "E:\Exordium\workgroups\Hirazi Workgroup\Addons\PyQtForSoftimage\Application\Plugins\Qt\__init__.py", line 232, in wrapinstance
#     return shiboken.wrapInstance(ptr, base)
# OverflowError
#  - [line 163 in E:\Exordium\workgroups\Hirazi Workgroup\Addons\PyQtForSoftimage\Application\Plugins\pyqt_example.py]
# ERROR : OLE error 0x80020101
Application.ExampleSignalSlot()
# ERROR : Traceback (most recent call last):
#   File "<Script Block 2>", line 171, in ExampleMenu_Execute
#     sianchor = Qt.wrapinstance( sianchor, QWidget )
#   File "E:\Exordium\workgroups\Hirazi Workgroup\Addons\PyQtForSoftimage\Application\Plugins\Qt\__init__.py", line 232, in wrapinstance
#     return shiboken.wrapInstance(ptr, base)
# OverflowError
#  - [line 170 in E:\Exordium\workgroups\Hirazi Workgroup\Addons\PyQtForSoftimage\Application\Plugins\pyqt_example.py]
# ERROR : OLE error 0x80020101
Application.ExampleMenu()
# ERROR : Traceback (most recent call last):
#   File "<Script Block 2>", line 186, in ExampleUIFile_Execute
#     sianchor = Qt.wrapinstance( sianchor, QWidget )
#   File "E:\Exordium\workgroups\Hirazi Workgroup\Addons\PyQtForSoftimage\Application\Plugins\Qt\__init__.py", line 232, in wrapinstance
#     return shiboken.wrapInstance(ptr, base)
# OverflowError
#  - [line 185 in E:\Exordium\workgroups\Hirazi Workgroup\Addons\PyQtForSoftimage\Application\Plugins\pyqt_example.py]
# ERROR : OLE error 0x80020101
Application.ExampleUIFile()


Greetz
Leendert
AKA Hirazi Blue
Softimage hobbyist, admin at si-community.com & xsiforum.de


Steven Caron

unread,
Jul 1, 2016, 3:01:09 PM7/1/16
to soft...@listproc.autodesk.com
Thanks Martin, I think I will get a Windows 10 machine running and work with Takayoshi to sort this out.

Steven Caron

unread,
Jul 1, 2016, 3:06:23 PM7/1/16
to soft...@listproc.autodesk.com
Arigato Takayoshi! I will look at what you have found and your proposed fixes. I am really saddened to think I need to ship a custom build of PySide. Changing the python or the Softimage command for returning the anchor I can live with. I still need to get access to a Windows 10 machine to really be of any help yet.

Steven

Leendert A. Hartog

unread,
Jul 1, 2016, 3:36:55 PM7/1/16
to soft...@listproc.autodesk.com
After reinstalling the "alternative" PySide and the plugin, now neither pyqtexample.py, nor qtevents.py nor QtSoftimage.64.dll get properly loaded and I am getting "import Qt.QtCore as QtCore
# ImportError: No module named QtCore" errors... Would really like to know, what is going on...

Greetz
Leendert
AKA Hirazi Blue
Softimage hobbyist, admin at si-community.com & xsiforum.de


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

Felix Geremus

unread,
Aug 2, 2016, 7:12:11 AM8/2/16
to soft...@listproc.autodesk.com
Just as additional info for every poor soul who is trying to get this running after updating to Windows 10 recently (like us). We can confirm that Takayoshi's custom PySide build works perfectly with Windows 10 and Soft 2015. 
One thing that took us a while to figure out, is that for us it only works with external Python. And external Python now only works by setting PYTHON_HOME and installing pywin32 . After updating our sianchor calls according to Takayoshi's mail everything works again. Thanks for keeping the Zombie running :)

Cheers, 

Felix

Leendert A. Hartog

unread,
Aug 5, 2016, 6:10:50 AM8/5/16
to soft...@listproc.autodesk.com
Today I tried to install an "external" Python again, with the corresponding pywin32, but now trying to "pip install" the "alternative" Pyside gets me the following error: "ImportError: DLL load failed: The specified procedure could not be found." Haven't got a clue what this means. Help would be very much appreciated...


Greetz
Leendert
AKA Hirazi Blue
Softimage hobbyist, admin at si-community.com & xsiforum.de


Reply all
Reply to author
Forward
0 new messages