Date: Thu, 19 Jul 2018 06:40:42 +0200 From: Bernt Hansson <bah@borh.eu> To: Michael Beasley <youvegotmoxie@gmail.com> Cc: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Re: PyQt4 Message-ID: <c5cb8899-fdcb-57e6-898f-cf3c8001e4be@borh.eu> In-Reply-To: <73FEA2F9-C28C-41BC-855B-125C6F3A6E45@gmail.com> References: <bf855404-f142-8707-9c82-25769a5e218e@borh.eu> <e451a2d6-4852-1dc0-3afb-d34252d82199@ShaneWare.Biz> <60a28021-8b13-4c2a-3afd-803f1b1f9afe@borh.eu> <73FEA2F9-C28C-41BC-855B-125C6F3A6E45@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 07/18/18 22:16, Michael Beasley wrote: > >> On Jul 15, 2018, at 22:18, Bernt Hansson <bah@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'
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c5cb8899-fdcb-57e6-898f-cf3c8001e4be>