PyQt4
Bernt Hansson
bah at borh.eu
Thu Jul 19 04:40:56 UTC 2018
On 07/18/18 22:16, Michael Beasley wrote:
>
>> On Jul 15, 2018, at 22:18, Bernt Hansson <bah at borh.eu> wrote:
>>
>> 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.
> At a Python shell prompt try - help(‘modules’); to see if the module can be seen by your Python installation.
It is not found by the python i have (2.7.15) So i'm a bit confused.
>
>>> 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