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?
2016-07-01 18:08 GMT+09:00 Leendert A. Hartog <[email protected]>: > 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 <[email protected]> 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 > > 2016-07-01 15:49 GMT+09:00 Takayoshi Matsumoto : >> 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 : >>> 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 >>> 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 " > > > ------ > 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.

