Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jul 2018 15:16:50 -0500
From:      Michael Beasley <youvegotmoxie@gmail.com>
To:        Bernt Hansson <bah@borh.eu>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: PyQt4
Message-ID:  <73FEA2F9-C28C-41BC-855B-125C6F3A6E45@gmail.com>
In-Reply-To: <60a28021-8b13-4c2a-3afd-803f1b1f9afe@borh.eu>
References:  <bf855404-f142-8707-9c82-25769a5e218e@borh.eu> <e451a2d6-4852-1dc0-3afb-d34252d82199@ShaneWare.Biz> <60a28021-8b13-4c2a-3afd-803f1b1f9afe@borh.eu>

next in thread | previous in thread | raw e-mail | index | archive | help


> On Jul 15, 2018, at 22:18, Bernt Hansson <bah@borh.eu> wrote:
>=20
> On 07/16/18 04:59, Shane Ambler wrote:
>> On 15/07/2018 21:38, Bernt Hansson wrote:
>>> Hello list.
>>>=20
>>> Trying to get a python script working again but no luck so far.
>>>=20
>>> This is the error i'm getting
>>>=20
>>> % python flatcam.py
>>> Traceback (most recent call last):
>>> =C3=82  File "flatcam.py", line 2, in <module>
>>> =C3=82 =C3=82 =C3=82  from PyQt4 import QtGui
>>> ImportError: No module named PyQt4
>>>=20
>>> I've installed py-qt4 but no luck.
>>>=20
>>> 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
>=20
> Py-qt4 is installed as py27-qt4 and py36-qt4. Still it is not found.

At a Python shell prompt try - help(=E2=80=98modules=E2=80=99); to see =
if the module can be seen by your Python installation.

>> This will show all your pyqt4 packages
>> pkg info -x 'py[23][0-9]-qt4'
>>=20
>> To see what python flavoured packages are available -
>> pkg search 'py[23][0-9]-qt4'
>>=20
>>=20
>=20
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to =
"freebsd-questions-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?73FEA2F9-C28C-41BC-855B-125C6F3A6E45>