From owner-freebsd-questions@freebsd.org Thu Jul 19 04:40:55 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C99D5104890A for ; Thu, 19 Jul 2018 04:40:55 +0000 (UTC) (envelope-from bah@borh.eu) Received: from cpanel.bredband2.com (cpanel.bredband2.com [82.209.169.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5E31B7CAE4 for ; Thu, 19 Jul 2018 04:40:52 +0000 (UTC) (envelope-from bah@borh.eu) Received: from 31-208-8-210.cust.bredband2.com ([31.208.8.210]:2030 helo=testbox.borh.eu) by cpanel.bredband2.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1fg0k8-0003Z9-K3; Thu, 19 Jul 2018 06:40:44 +0200 Subject: Re: PyQt4 To: Michael Beasley Cc: "freebsd-questions@freebsd.org" References: <60a28021-8b13-4c2a-3afd-803f1b1f9afe@borh.eu> <73FEA2F9-C28C-41BC-855B-125C6F3A6E45@gmail.com> From: Bernt Hansson Message-ID: Date: Thu, 19 Jul 2018 06:40:42 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <73FEA2F9-C28C-41BC-855B-125C6F3A6E45@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Bredband2-MailScanner-Information: Please contact the ISP for more information X-Bredband2-MailScanner-ID: 1fg0k8-0003Z9-K3 X-Bredband2-MailScanner: Found to be clean X-Bredband2-MailScanner-SpamCheck: X-Bredband2-MailScanner-From: bah@borh.eu X-Spam-Status: No X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel.bredband2.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - borh.eu X-Get-Message-Sender-Via: cpanel.bredband2.com: authenticated_id: bernt.hansson@bredband2.com X-Authenticated-Sender: cpanel.bredband2.com: bernt.hansson@bredband2.com X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jul 2018 04:40:56 -0000 On 07/18/18 22:16, Michael Beasley wrote: > >> On Jul 15, 2018, at 22:18, Bernt Hansson 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 >>>> Â Â Â 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'