I am faced with a situation wherein since Ubuntu 12.04 uses Python 2.7 and Houdini 12.5 uses Python2.6, The trouble is with Installing PyQt4 for Houdini 12.5
Related post on the forum:
http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=28181&sid=8348a8564f8403f7053bde90b316f1f9 [sidefx.com]
I created the folders
/opt/hfs12.5.316.22/houdini/pyqt/houdini12/lib/python2.6
/opt/hfs12.5.316.22/houdini/pyqt/houdini12/include/python2.6
/opt/hfs12.5.316.22/houdini/pyqt/houdini12/share/sip
/opt/hfs12.5.316.22/houdini/pyqt/houdini12/bin
Downloaded the latest SIP version for Linux from the Riverbankcomputing website.
Installed updates from Terminal
sudo apt-get install python-qt4
sudo apt-get install g++
Then proceeded with the custom build of PyQt using the Houdini12 Hython interpreter.
/opt/hfs12.5.316.22/bin/hython configure.py –bindir=/opt/hfs12.5.316.22/houdini/pyqt/houdini12/bin –destdir=/opt/hfs12.5.316.22/houdini/pyqt/houdini12/lib/python2.6 –incdir=/opt/hfs12.5.316.22/houdini/pyqt/houdini12/include/python2.6 –sipdir=/opt/hfs12.5.316.22/houdini/pyqt/houdini12/share/sip
sudo make
sudo make install
sudo /opt/hfs12.5.316.22/bin/hython configure.py –bindir=/opt/hfs12.5.316.22/houdini/pyqt/houdini12/bin –destdir=/opt/hfs12.5.316.22/houdini/pyqt/houdini12/lib/python2.6 –plugin-destdir=/opt/hfs12.5.316.22/houdini/pyqt/houdini12/plugins –sipdir=/opt/hfs12.5.316.22/houdini/pyqt/houdini12/share/sip –assume-shared
This is SIP 4.14.5 for Python 2.6.4 on linux2.
Usage: python configure.py
configure.py: error: no such option: –plugin-destdir
sudo /opt/hfs12.5.316.22/bin/hython configure.py –bindir=/opt/hfs12.5.316.22/houdini/pyqt/houdini12/bin –destdir=/opt/hfs12.5.316.22/houdini/pyqt/houdini12/lib/python2.6 –sipdir=/opt/hfs12.5.316.22/houdini/pyqt/houdini12/share/sip –assume-shared
This is SIP 4.14.5 for Python 2.6.4 on linux2.
Usage: python configure.py
configure.py: error: no such option: –assume-shared
sudo /opt/hfs12.5.316.22/bin/hython configure.py –bindir=/opt/hfs12.5.316.22/houdini/pyqt/houdini12/bin –destdir=/opt/hfs12.5.316.22/houdini/pyqt/houdini12/lib/python2.6 –sipdir=/opt/hfs12.5.316.22/houdini/pyqt/houdini12/share/sip
sudo make
sudo make install
export PYTHONPATH=/opt/hfs12.5.316.22/houdini/pyqt/houdini12/lib/python2.6
sudo cp /opt/hfs12.5.316.22/houdini/help/hom/cookbook/pyqt/part2/pyqt_thread_helper.py /opt/hfs12.5.316.22/python/lib/python2.6/site-packages
echo $PYTHONPATH
/opt/hfs12.5.316.22/houdini/pyqt/houdini12/lib/python2.6
The only change I did was to edit/remove the –plugin-destdir and the –assume-shared flags due to the above errors.
Iḿ not sure what else I have to do to get PyQt4 to work with Houdini.
Any help would be greatly appreciated.
Thanks,
Nikhil.
PyQT setup for Houdini 12.5 on Ubuntu 12.04
3716 5 1- futurcraft
- Member
- 3 posts
- Joined: Aug. 2006
- Offline
- googuy
- Member
- 7 posts
- Joined: March 2013
- Offline
- googuy
- Member
- 7 posts
- Joined: March 2013
- Offline
And be sure to be in the right folder ,sine there s a configure.py for sip and another inthe pyqt distrib before running hython
I installed Ubuntu and followed my updated post (read about sipconfig)
http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=28181&sid=8348a8564f8403f7053bde90b316f1f9 [sidefx.com]
and it worked
from PyQt4.QtCore import *
returns no error
let me know if u have problems
Cheers
I installed Ubuntu and followed my updated post (read about sipconfig)
http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=28181&sid=8348a8564f8403f7053bde90b316f1f9 [sidefx.com]
and it worked
from PyQt4.QtCore import *
returns no error
let me know if u have problems
Cheers
- futurcraft
- Member
- 3 posts
- Joined: Aug. 2006
- Offline
Hi,
Thanks for your reply and for the further steps you suggested regarding the sigconfig too.
I also included the line to appened the sipconfig path within the configure.py within the PyQt folder. This time around repeated the SIP make and install steps and then moved into the PyQt directory and ran the following:
MacBookPro:~/openSource/PyQt$ sudo /opt/hfs12.5.316.22/bin/hython configure.py –bindir=/opt/hfs12.5.316.22/houdini/pyqt/houdini12/bin –destdir=/opt/hfs12.5.316.22/houdini/pyqt/houdini12/lib/python2.6 –plugin-destdir=/opt/hfs12.5.316.22/houdini/pyqt/houdini12/plugins –sipdir=/opt/hfs12.5.316.22/houdini/pyqt/houdini12/share/sip –assume-shared
Error: Make sure you have a working Qt qmake on your PATH or use the -q
argument to explicitly specify a working Qt qmake.
This is the error I received while trying to install PyQt using the Hython interpreter. Would you have any suggestions?
Thanks again.
Cheers,
Nikhil.
Thanks for your reply and for the further steps you suggested regarding the sigconfig too.
I also included the line to appened the sipconfig path within the configure.py within the PyQt folder. This time around repeated the SIP make and install steps and then moved into the PyQt directory and ran the following:
MacBookPro:~/openSource/PyQt$ sudo /opt/hfs12.5.316.22/bin/hython configure.py –bindir=/opt/hfs12.5.316.22/houdini/pyqt/houdini12/bin –destdir=/opt/hfs12.5.316.22/houdini/pyqt/houdini12/lib/python2.6 –plugin-destdir=/opt/hfs12.5.316.22/houdini/pyqt/houdini12/plugins –sipdir=/opt/hfs12.5.316.22/houdini/pyqt/houdini12/share/sip –assume-shared
Error: Make sure you have a working Qt qmake on your PATH or use the -q
argument to explicitly specify a working Qt qmake.
This is the error I received while trying to install PyQt using the Hython interpreter. Would you have any suggestions?
Thanks again.
Cheers,
Nikhil.
- googuy
- Member
- 7 posts
- Joined: March 2013
- Offline
The error looks like either
-qt doesnt exist on your system : if u are on ubuntu as u suggested, try to instll qt4 with the apt-get command (google a bit if not familiar with it). Before that u can use the command apt-cache i think to list available packges for ur system.
- If it is installed but not in your path, add it in your path as suggested by the error.
export PATH=your-path:$PATH
-qt doesnt exist on your system : if u are on ubuntu as u suggested, try to instll qt4 with the apt-get command (google a bit if not familiar with it). Before that u can use the command apt-cache i think to list available packges for ur system.
- If it is installed but not in your path, add it in your path as suggested by the error.
export PATH=your-path:$PATH
- futurcraft
- Member
- 3 posts
- Joined: Aug. 2006
- Offline
-
- Quick Links