From owner-freebsd-questions@freebsd.org Mon Jul 16 03:19:05 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 1FBF5103A94D for ; Mon, 16 Jul 2018 03:19:05 +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 9A3207C2E6 for ; Mon, 16 Jul 2018 03:19:03 +0000 (UTC) (envelope-from bah@borh.eu) Received: from 31-208-8-210.cust.bredband2.com ([31.208.8.210]:1791 helo=testbox.borh.eu) by cpanel.bredband2.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1feu2O-0003v5-LV; Mon, 16 Jul 2018 05:19:00 +0200 Subject: Re: PyQt4 To: Shane Ambler , "freebsd-questions@freebsd.org" References: From: Bernt Hansson Message-ID: <60a28021-8b13-4c2a-3afd-803f1b1f9afe@borh.eu> Date: Mon, 16 Jul 2018 05:18:58 +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: 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: 1feu2O-0003v5-LV 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: Mon, 16 Jul 2018 03:19:05 -0000 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. > 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' > >