PyQt4

Bernt Hansson bah at borh.eu
Mon Jul 16 03:19:05 UTC 2018


On 07/16/18 04:59, Shane Ambler wrote:
> On 15/07/2018 21:38, Bernt Hansson wrote:
>> Hello list.
>>
>> Trying to get a python script working again but no luck so far.
>>
>> This is the error i'm getting
>>
>> % python flatcam.py
>> Traceback (most recent call last):
>>   File "flatcam.py", line 2, in <module>
>>     from PyQt4 import QtGui
>> ImportError: No module named PyQt4
>>
>> I've installed py-qt4 but no luck.
>>
>> Where do i find qtgui and pyqt4?
> pyqt is installed for a specific python version, you need to use the
> same python version that has pyqt4 installed.
python --version
Python 2.7.15

Py-qt4 is installed as py27-qt4 and py36-qt4. Still it is not found.
> This will show all your pyqt4 packages
> pkg info -x 'py[23][0-9]-qt4'
>
> To see what python flavoured packages are available -
> pkg search 'py[23][0-9]-qt4'
>
>



More information about the freebsd-questions mailing list