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 2016-07-01 2:06 GMT+09:00 Steven Caron <[email protected]>: > 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 > > On Thu, Jun 30, 2016 at 6:15 AM, Martin Chatterjee > <[email protected]> wrote: >> >> 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 >> >> -- >> Martin Chatterjee >> >> [ Freelance Technical Director ] >> [ http://www.chatterjee.de ] >> [ https://vimeo.com/chatterjee ] >> >> >> ------ >> Softimage Mailing List. >> To unsubscribe, send a mail to [email protected] >> with "unsubscribe" in the subject, and reply to confirm. > > > > ------ > Softimage Mailing List. > To unsubscribe, send a mail to [email protected] with > "unsubscribe" in the subject, and reply to confirm. ------ Softimage Mailing List. To unsubscribe, send a mail to [email protected] with "unsubscribe" in the subject, and reply to confirm.

