473,396 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

PyQt on MAC OS X

Hi,

I'm trying to get PyQt up and running under Mac OS X 10.2.8, but
can't get past configuring sip.

I installed fink's qt3-3.2.3-2 and restarted my shells to get
qt3's environment variables QTDIR and QMAKESPEC.

I downloaded sip-4.1 from
http://www.river-bank.demon.co.uk,
unpacked it, ran

python configure.py

and got this error:

Error: /sw/share/qt3/mkspecs/darwin-g++/qmake.conf: macro
'QMAKE_LIBDIR/$(TARGET1)' is not defined.
Any ideas?

Michael
Jul 18 '05 #1
10 3201
> Hi,

I'm trying to get PyQt up and running under Mac OS X 10.2.8, but
can't get past configuring sip.

I installed fink's qt3-3.2.3-2 and restarted my shells to get
qt3's environment variables QTDIR and QMAKESPEC.

I downloaded sip-4.1 from
http://www.river-bank.demon.co.uk,
unpacked it, ran

python configure.py

and got this error:

Error: /sw/share/qt3/mkspecs/darwin-g++/qmake.conf: macro
'QMAKE_LIBDIR/$(TARGET1)' is not defined.
Any ideas?


The Fink version of Qt isn't officially supported (the native version is),
although there is a user contributed README.Fink (either with SIP or PyQt,
can't remember which).

Phil

Jul 18 '05 #2
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I've assembled a binary installer for the native version of PyQt. See
http://www.wordtech-software.com/pyqt-mac.html

I built it on Panther. Not sure if it will work on Jaguar, but you're
welcome to give it a try.

Michael McGarry wrote:
| Hi,
|
| I'm trying to get PyQt up and running under Mac OS X 10.2.8, but
| can't get past configuring sip.
|
| I installed fink's qt3-3.2.3-2 and restarted my shells to get
| qt3's environment variables QTDIR and QMAKESPEC.
|
| I downloaded sip-4.1 from
| http://www.river-bank.demon.co.uk,
| unpacked it, ran
|
| python configure.py
|
| and got this error:
|
| Error: /sw/share/qt3/mkspecs/darwin-g++/qmake.conf: macro
| 'QMAKE_LIBDIR/$(TARGET1)' is not defined.
|
|
| Any ideas?
|
| Michael
- --
Cheers,

Kevin Walzer, PhD
WordTech Software--Open Source Applications and Packages for OS X
http://www.wordtech-software.com
http://www.smallbizmac.com
http://www.kevin-walzer.com
mailto:sw@wordtech-software.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBvb9CJmdQs+6YVcoRAsv2AJ4rkwZ2kO8kPcBKoZ5h1F 8vEof+lwCeNO8n
rK8yurwPQaJFH8yK6PlbOtg=
=0LQg
-----END PGP SIGNATURE-----

Jul 18 '05 #3
Kevin Walzer wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I've assembled a binary installer for the native version of PyQt. See
http://www.wordtech-software.com/pyqt-mac.html

I built it on Panther. Not sure if it will work on Jaguar, but you're
welcome to give it a try.

Michael McGarry wrote:
| Hi,
|
| I'm trying to get PyQt up and running under Mac OS X 10.2.8, but
| can't get past configuring sip.
|
| I installed fink's qt3-3.2.3-2 and restarted my shells to get
| qt3's environment variables QTDIR and QMAKESPEC.
|
| I downloaded sip-4.1 from
| http://www.river-bank.demon.co.uk,
| unpacked it, ran
|
| python configure.py
|
| and got this error:
|
| Error: /sw/share/qt3/mkspecs/darwin-g++/qmake.conf: macro
| 'QMAKE_LIBDIR/$(TARGET1)' is not defined.
|
|
| Any ideas?
|
| Michael
- --
Cheers,

Kevin Walzer, PhD
WordTech Software--Open Source Applications and Packages for OS X
http://www.wordtech-software.com
http://www.smallbizmac.com
http://www.kevin-walzer.com
mailto:sw@wordtech-software.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBvb9CJmdQs+6YVcoRAsv2AJ4rkwZ2kO8kPcBKoZ5h1F 8vEof+lwCeNO8n
rK8yurwPQaJFH8yK6PlbOtg=
=0LQg
-----END PGP SIGNATURE-----

Kevin,

thanks that did the trick!!!

One problem is my Window created in Qt appears underneath all others on
the screen and focus never goes completely onto this window. Kind of weird.

Any ideas?

Michael
Jul 18 '05 #4
In article <ONpvd.95971$EZ.74694@okepread07>,
Michael McGarry <re**********@nospam.org> wrote:
One problem is my Window created in Qt appears underneath all others on
the screen and focus never goes completely onto this window. Kind of weird.

Any ideas?


If the application is not properly bundled you will see symptoms like
this - perhaps this is the problem?
Jul 18 '05 #5
glenn andreas wrote:
In article <ONpvd.95971$EZ.74694@okepread07>,
Michael McGarry <re**********@nospam.org> wrote:

One problem is my Window created in Qt appears underneath all others on
the screen and focus never goes completely onto this window. Kind of weird.

Any ideas?

If the application is not properly bundled you will see symptoms like
this - perhaps this is the problem?

What do you mean?
Jul 18 '05 #6
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michael McGarry wrote:
| Kevin Walzer wrote:
|
| I've assembled a binary installer for the native version of PyQt. See
| http://www.wordtech-software.com/pyqt-mac.html
|
| I built it on Panther. Not sure if it will work on Jaguar, but you're
| welcome to give it a try.
|
|
|
| Michael McGarry wrote:
| | Hi,
| |
| | I'm trying to get PyQt up and running under Mac OS X 10.2.8, but
| | can't get past configuring sip.
| |
| | I installed fink's qt3-3.2.3-2 and restarted my shells to get
| | qt3's environment variables QTDIR and QMAKESPEC.
| |
| | I downloaded sip-4.1 from
| | http://www.river-bank.demon.co.uk,
| | unpacked it, ran
| |
| | python configure.py
| |
| | and got this error:
| |
| | Error: /sw/share/qt3/mkspecs/darwin-g++/qmake.conf: macro
| | 'QMAKE_LIBDIR/$(TARGET1)' is not defined.
| |
| |
| | Any ideas?
| |
| | Michael
|
|
|>
| Kevin,

| thanks that did the trick!!!

| One problem is my Window created in Qt appears underneath all others on
| the screen and focus never goes completely onto this window. Kind of
weird.

| Any ideas?

| Michael

Michael,

Are you referring to the application you're developing, or the Eric3 IDE
that I bundled? I've observed that Eric3 hesitates for a second before
taking focus, though it eventually does if you click on the window. I've
observed this with other Qt apps in general, including some of the other
PyQt apps I've bundled on my own machine.

If the window never takes focus at all, it might be something as basic
as starting your application with "python" instead of "pythonw" if you
are launching it from the command line. You need to use "pythonw" to
correctly access the windowing system.

An easy way to start your app wtih the correct python command is simply
to double-click it instead of running it from terminal. That will
automatically call pythonw.

Hope this helps,
Kevin

- --
Cheers,

Kevin Walzer, PhD
WordTech Software--Open Source Applications and Packages for OS X
http://www.wordtech-software.com
http://www.smallbizmac.com
http://www.kevin-walzer.com
mailto:sw@wordtech-software.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBvmgNJmdQs+6YVcoRAvyaAJ49ngIqK467Z+4KilzZd/EnPGveWgCfZcfb
ot+z9Qf61R3ZhpqTRPAnnKc=
=Z3Bw
-----END PGP SIGNATURE-----

Jul 18 '05 #7
Michael McGarry <re**********@nospam.org> wrote:

thanks that did the trick!!!

One problem is my Window created in Qt appears underneath all others on
the screen and focus never goes completely onto this window. Kind of weird.

Any ideas?


You must use pythonw for graphics application =)
So launch the script with pythonw instead of python ;-)

--
Whamoo www.rknet.it
Powerd by: MacOsX, Gnu/Linux Debian Sarge,
Amiga Os 3.9, Milk.
Jul 18 '05 #8
whamoo wrote:
Michael McGarry <re**********@nospam.org> wrote:

thanks that did the trick!!!

One problem is my Window created in Qt appears underneath all others on
the screen and focus never goes completely onto this window. Kind of weird.

Any ideas?

You must use pythonw for graphics application =)
So launch the script with pythonw instead of python ;-)

Thanks using pythonw did the trick.

I appreciate everyone's help.
Jul 18 '05 #9
dMichael McGarry <re**********@nospam.org> wrote:
You must use pythonw for graphics application =)
So launch the script with pythonw instead of python ;-)

Thanks using pythonw did the trick.

I appreciate everyone's help.


;-) Happy programming with your mac and python
--
Whamoo www.rknet.it
Powerd by: MacOsX, Gnu/Linux Debian Sarge,
Amiga Os 3.9, Milk.
Jul 18 '05 #10

On 14-dec-04, at 0:42, Michael McGarry wrote:
Kevin,

thanks that did the trick!!!

One problem is my Window created in Qt appears underneath all others
on the screen and focus never goes completely onto this window. Kind
of weird.

Any ideas?


Did you use pythonw to start your script? If you use the normal
interpreter (the one named python) you've run into an annoying feature
of the MacOS X display system, pythonw can be used to circumvent that
feature.

Ronald

Jul 18 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Ilya Knizhnik | last post by:
Dear All, I am fairly new to Python. I have found it an easy language to learn and a very usefull one for many tasks. Currently I am working on a python project that involves a GUI and it was...
2
by: Dennis Sylvester | last post by:
Interested in any opinions, studies, etc., concerning the GUI tool(s) to use for Python. Specifically, which would you recommend (and why) for building GUI apps in Python: TKinter BOA PyQT ...
35
by: Vamsi Mudrageda | last post by:
I am kind of new to Python, and after trying and using wxPython, I found it kind of lacking in easy-to-read documentation, speed at loading, and GUI response-time. So I am looking for an another...
8
by: simo | last post by:
OK, so I'm at the stage where I want to make a choice between wxPython and PyQt. Currently I'm using wxPython mainly due to the fact that it has GPL Linux and Windows versions. I prefer Qt to...
10
by: svenn.are | last post by:
Hi, I wanted to run a program that is written in PyQt on my mac, and went over to Riverbank to get PyQ 3.13 and SIP 4.1.1 sources. I followed the installation guide except for the compiling...
3
by: Fabio | last post by:
Hi all, I'm about to write an application, and I'd like to use PyQt, but before choosing this toolkit I would like to clarify some particular licensing issues; if some user has already touched...
10
by: Simon John | last post by:
After quite a while of wxPython I'm getting back into PyQt, mainly due to the announcement by Trolltech that they will make a GPL version of Qt4 for Windows (and Phil-T said he will make a PyQt to...
4
by: Phil Thompson | last post by:
Riverbank Computing is pleased to announce the release of PyQt v3.14 available from http://www.riverbankcomputing.co.uk/. Changes since the last release include support for QScintilla v1.5. ...
17
by: eholbroo | last post by:
I've narrowed down my toolkit selection for my project to wxPython and pyQt, and now i'd like to hear any opinions, war stories, peeves, etc, about them, particularly from anyone who's used...
3
by: Phil Thompson | last post by:
Riverbank Computing is pleased to announce the release of PyQt v4.0beta1 available from http://www.riverbankcomputing.co.uk/pyqt/. PyQt is a comprehensive set of Qt bindings for the Python...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.