PyQt4 installing and environment path.

5,325 views
Skip to first unread message

Byungchul Kang

unread,
Jul 29, 2013, 8:07:58 AM7/29/13
to soft...@listproc.autodesk.com
I did retry to install the PyQt4 on Softimage 2014 SP2, Win8 x64, PyQt py2.7 x64. and without (pywin32)
and i got some error as below..

# ImportError: No module named sip
#  - [line 2 in X:\Softimage_PlugIn_WorkGroup\for2014_Plug_In\Addons\PyQtForSoftimage\Application\Plugins\pyqt_example.py]
# ERROR : Traceback (most recent call last):
#   File "<Script Block 2>", line 1, in <module>
#     from PyQt4.QtCore import Qt
# ImportError: No module named PyQt4.QtCore
#  - [line 1 in X:\Softimage_PlugIn_WorkGroup\for2014_Plug_In\Addons\PyQtForSoftimage\Application\Plugins\qtevents.py]

But, I solved it. just added PYTHONPATH into EnvironPath as below.

PYTHONPATH = C:\KrakatoaSR_Python\windows;C:\Python27\Lib\site-packages;

It is working well..

is it good way to solve?? any idea?

Thanks
Kang



--
Byungchul Kang | MBC CG TEAM [http://imbc.com]
http://cgndev.com

Steven Caron

unread,
Jul 29, 2013, 10:58:09 AM7/29/13
to soft...@listproc.autodesk.com
the pyqt installer should have done this for you. that is the only way python can import a module, ie. python looks through the paths to find your module.

*written with my thumbs

Byungchul Kang

unread,
Jul 29, 2013, 1:21:03 PM7/29/13
to soft...@listproc.autodesk.com
The pyqt installer should not set the python path automatically in win8. Thanks.

Kang

2013년 7월 29일 월요일에 Steven Caron님이 작성:


--
Gmail 모바일에서 보낸 메일

Steven Caron

unread,
Jul 29, 2013, 1:47:17 PM7/29/13
to soft...@listproc.autodesk.com
sorry, i misread. i thought you meant the 'PATH' environment variable.

i do not have any experience with win8 so i don't know how the installers behave.

did you switch to system python?
file>preferences>scripting... uncheck use python installed with softimage

Byungchul Kang

unread,
Jul 29, 2013, 10:28:25 PM7/29/13
to soft...@listproc.autodesk.com
sorry... i meant  the 'PythonPath' environment variable.
and i did switch off. but not working pyqt. 
to adding PythonPath is one way to solve..

Thanks
Kang


2013/7/30 Steven Caron <car...@gmail.com>

Oscar Juarez

unread,
Jul 30, 2013, 4:23:57 AM7/30/13
to soft...@listproc.autodesk.com
Also you can do this through softimage using siutils

import siutils
siutils.add_to_syspath("Path\to\your\stuff")

olivier jeannel

unread,
Oct 22, 2013, 4:29:40 AM10/22/13
to soft...@listproc.autodesk.com
hey guys,

Since there had some discussion about QT here, I thought I could ask
here. Maybe it's unrelated but I have a program asking (missing) for
QTcore4.dll (Really not sure it's related). I don't know what it is, the
few informations I find are not clear, and I don't know if what I'm
about to download is not a virus...
So if someone here now where to download a safe QTcore4.dll, please
share a link.

Sorry for OT the noise :/

Stephen Blair

unread,
Oct 22, 2013, 6:28:59 AM10/22/13
to soft...@listproc.autodesk.com

Whatever program it is, it should include the version of the QT DLLs that it requires. Did you try reinstalling?

There are at least eight different versions of QTCore4.dll on my system, all installed by different software.

Reply all
Reply to author
Forward
0 new messages