From owner-freebsd-questions@freebsd.org Thu Aug 23 06:30:18 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 19D5F10827BD for ; Thu, 23 Aug 2018 06:30:18 +0000 (UTC) (envelope-from bah@borh.eu) Received: from gw2.borh.eu (31-208-8-210.cust.bredband2.com [31.208.8.210]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gw2.news4all.se", Issuer "gw2.news4all.se" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 8E978830F3 for ; Thu, 23 Aug 2018 06:30:15 +0000 (UTC) (envelope-from bah@borh.eu) Received: from testbox.borh.eu (testbox.news4all.se [10.0.0.3] (may be forged)) by gw2.borh.eu (8.15.2/8.15.2) with ESMTP id w7N6bq6D065237; Thu, 23 Aug 2018 08:37:52 +0200 (CEST) (envelope-from bah@borh.eu) 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: <39b1e830-2a72-2d14-6972-0560b59f11a5@borh.eu> Date: Thu, 23 Aug 2018 08:22:05 +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-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, 23 Aug 2018 06:30:18 -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. No pyqt4 is found. >>> This will show all your pyqt4 packages >>> pkg info -x 'py[23][0-9]-qt4' py27-qt4-4.12.1_1 py27-qt4-assistant-4.12.1_3,1 py27-qt4-core-4.12.1_7,1 py27-qt4-dbus-4.12.1_3,1 py27-qt4-dbussupport-4.12.1 py27-qt4-declarative-4.12.1_3 py27-qt4-demo-4.12.1_1,1 py27-qt4-designer-4.12.1_3,1 py27-qt4-designerplugin-4.12.1,1 py27-qt4-doc-4.12.1,1 py27-qt4-gui-4.12.1_3,1 py27-qt4-help-4.12.1_3 py27-qt4-multimedia-4.12.1_3 py27-qt4-network-4.12.1_3,1 py27-qt4-opengl-4.12.1_3,1 py27-qt4-phonon-4.12.1_4 py27-qt4-qscintilla2-2.10.4,1 py27-qt4-script-4.12.1_3,1 py27-qt4-scripttools-4.12.1_3,1 py27-qt4-sql-4.12.1_3,1 py27-qt4-svg-4.12.1_3,1 py27-qt4-test-4.12.1_3,1 py27-qt4-webkit-4.12.1_3 py27-qt4-xml-4.12.1_3,1 py27-qt4-xmlpatterns-4.12.1_3 >>> To see what python flavoured packages are available - >>> pkg search 'py[23][0-9]-qt4' py27-qt4-4.12.1_1              Python bindings for the Qt 4 toolkit (meta port) py27-qt4-assistant-4.12.1_3,1  Python bindings for the Qt4 toolkit, QtAssistant module py27-qt4-core-4.12.1_7,1       Python bindings for the Qt4 toolkit, QtCore module py27-qt4-dbus-4.12.1_3,1       Python bindings for the Qt4 toolkit, QtDBus module py27-qt4-dbussupport-4.12.1    Qt event loop support for dbus-python py27-qt4-declarative-4.12.1_3  Python bindings for the Qt4 toolkit, QtDeclarative module py27-qt4-demo-4.12.1_1,1       Python bindings for the Qt4 toolkit, Qt demo and examples py27-qt4-designer-4.12.1_3,1   Python bindings for the Qt4 toolkit, QtDesigner module py27-qt4-designerplugin-4.12.1,1 Python bindings for the Qt4 toolkit, QtDesigner plugin py27-qt4-doc-4.12.1,1          Python bindings for the Qt4 toolkit, documentation py27-qt4-gui-4.12.1_3,1        Python bindings for the Qt4 toolkit, QtGui module py27-qt4-help-4.12.1_3         Python bindings for the Qt4 toolkit, QtHelp module py27-qt4-multimedia-4.12.1_3   Python bindings for the Qt4 toolkit, Multimedia module py27-qt4-network-4.12.1_3,1    Python bindings for the Qt4 toolkit, QtNetwork module py27-qt4-opengl-4.12.1_3,1     Python bindings for the Qt4 toolkit, QtOpenGL module py27-qt4-phonon-4.12.1_4       Python bindings for the Qt4 toolkit, Phonon module py27-qt4-qscintilla2-2.10.4,1  Python bindings for QScintilla2 (PyQt4), QSci module py27-qt4-script-4.12.1_3,1     Python bindings for the Qt4 toolkit, QtScript module py27-qt4-scripttools-4.12.1_3,1 Python bindings for the Qt4 toolkit, QtScriptTools module py27-qt4-sql-4.12.1_3,1        Python bindings for the Qt4 toolkit, QtSql module py27-qt4-svg-4.12.1_3,1        Python bindings for the Qt4 toolkit, QtSvg module py27-qt4-test-4.12.1_3,1       Python bindings for the Qt4 toolkit, QtTest module py27-qt4-webkit-4.12.1_3       Python bindings for the Qt4 toolkit, QtWebKit module py27-qt4-xml-4.12.1_3,1        Python bindings for the Qt4 toolkit, QtXml module py27-qt4-xmlpatterns-4.12.1_3  Python bindings for the Qt4 toolkit, QtXmlPatterns module py36-qt4-4.12.1_1              Python bindings for the Qt 4 toolkit (meta port) py36-qt4-assistant-4.12.1_3,1  Python bindings for the Qt4 toolkit, QtAssistant module py36-qt4-core-4.12.1_7,1       Python bindings for the Qt4 toolkit, QtCore module py36-qt4-dbus-4.12.1_3,1       Python bindings for the Qt4 toolkit, QtDBus module py36-qt4-dbussupport-4.12.1    Qt event loop support for dbus-python py36-qt4-declarative-4.12.1_3  Python bindings for the Qt4 toolkit, QtDeclarative module py36-qt4-demo-4.12.1_1,1       Python bindings for the Qt4 toolkit, Qt demo and examples py36-qt4-designer-4.12.1_3,1   Python bindings for the Qt4 toolkit, QtDesigner module py36-qt4-designerplugin-4.12.1,1 Python bindings for the Qt4 toolkit, QtDesigner plugin py36-qt4-doc-4.12.1,1          Python bindings for the Qt4 toolkit, documentation py36-qt4-gui-4.12.1_3,1        Python bindings for the Qt4 toolkit, QtGui module py36-qt4-help-4.12.1_3         Python bindings for the Qt4 toolkit, QtHelp module py36-qt4-multimedia-4.12.1_3   Python bindings for the Qt4 toolkit, Multimedia module py36-qt4-network-4.12.1_3,1    Python bindings for the Qt4 toolkit, QtNetwork module py36-qt4-opengl-4.12.1_3,1     Python bindings for the Qt4 toolkit, QtOpenGL module py36-qt4-phonon-4.12.1_4       Python bindings for the Qt4 toolkit, Phonon module py36-qt4-qscintilla2-2.10.4,1  Python bindings for QScintilla2 (PyQt4), QSci module py36-qt4-script-4.12.1_3,1     Python bindings for the Qt4 toolkit, QtScript module py36-qt4-scripttools-4.12.1_3,1 Python bindings for the Qt4 toolkit, QtScriptTools module py36-qt4-sql-4.12.1_3,1        Python bindings for the Qt4 toolkit, QtSql module py36-qt4-svg-4.12.1_3,1        Python bindings for the Qt4 toolkit, QtSvg module py36-qt4-test-4.12.1_3,1       Python bindings for the Qt4 toolkit, QtTest module py36-qt4-webkit-4.12.1_3       Python bindings for the Qt4 toolkit, QtWebKit module py36-qt4-xml-4.12.1_3,1        Python bindings for the Qt4 toolkit, QtXml module py36-qt4-xmlpatterns-4.12.1_3  Python bindings for the Qt4 toolkit, QtXmlPatterns module