473,701 Members | 2,361 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help on installing PyQt on MacOSX 10.3 needed

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 python as
Macosx already has python.

I had no problem with compiling SIP and also no problem with compiling
PyQt nor did I have any error message during make install.

Now the last step in the install documentation says that I have to
edit several files regarding python itself, and then recompile it.
This is where I got stuck. The mac native python cannot find the
package qt with a import qt command on the commandline, and I have no
experience whatsoever with python.

Maybe somebody has been successful installing PyQt with the native
python in macosx 10.3 and can help me?

--
Svenn
Jul 18 '05 #1
10 2203
>
Maybe somebody has been successful installing PyQt with the native
python in macosx 10.3 and can help me?


Try posting this on the pykde mailinglist, which is the authorative source
for pyqt os well.
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Maybe there is something in the list archives - I don't look at mac related
questions there as I unfortunately don't own one of these nice pieces of
hardware...

--
Regards,

Diez B. Roggisch
Jul 18 '05 #2
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I am working on a PyQt package bundle for OS X. I have everything
installed correctly on my Mac (10.3.6), and am running Eric3 without a
problem. Building everything isn't terribly difficult, but it is very
time-consuming (think two or three days of continuous compiling).
Putting together a package installer is actually harder than building it
because there are so many moving parts (patch Qt, build Qt, build
QScintilla, build SIP, build and install PyQt). I've gotten a
Sourceforge project approved, and as soon as I get everything worked
out, I will announce the release. So, if you can wait a little longer...
sv*******@bjerk em.de wrote:
| 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 python as
| Macosx already has python.
|
| I had no problem with compiling SIP and also no problem with compiling
| PyQt nor did I have any error message during make install.
|
| Now the last step in the install documentation says that I have to
| edit several files regarding python itself, and then recompile it.
| This is where I got stuck. The mac native python cannot find the
| package qt with a import qt command on the commandline, and I have no
| experience whatsoever with python.
|
| Maybe somebody has been successful installing PyQt with the native
| python in macosx 10.3 and can help me?
|
- --
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@wordt ech-software.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBkCCBJmd Qs+6YVcoRAh8EAJ wNFTUpXnCxV2fBb xIgjPTbiQHItwCg iyeN
Kf8GFPCPJOTkK3u 3RYbd8JA=
=Kmx9
-----END PGP SIGNATURE-----

Jul 18 '05 #3
> 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 python as
Macosx already has python.

I had no problem with compiling SIP and also no problem with compiling
PyQt nor did I have any error message during make install.

Now the last step in the install documentation says that I have to
edit several files regarding python itself, and then recompile it.
This is where I got stuck. The mac native python cannot find the
package qt with a import qt command on the commandline, and I have no
experience whatsoever with python.

Maybe somebody has been successful installing PyQt with the native
python in macosx 10.3 and can help me?


Where does it say that you need to re-compile Python? You don't need to
touch Python - unless you are deploying applications and want to build a
version of Python with PyQt as builtin modules.

Phil

Jul 18 '05 #4
On 2004-11-09 10:23:21 +0100, "Phil Thompson"
<ph**@riverbank computing.co.uk > said:
Maybe somebody has been successful installing PyQt with the native
python in macosx 10.3 and can help me?


Where does it say that you need to re-compile Python? You don't need to
touch Python - unless you are deploying applications and want to build a
version of Python with PyQt as builtin modules.


Hi Phil,

you are perfectly right. I went back to the documentation and paid a
bit more attention and with your information in mind, I now see that it
is talking about a selfcontained python with pyqt. I guess that I want
to use the qt bindings *dynamically*. That means that I have to find a
way to tell Python where to find the pyqt that I installed.

In tcl I would either have installed into a directory in auto_path or I
would have extended auto_path. How is this done in Python?

Kind regards,
--
Svenn

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

Svenn Are Bjerkem wrote:

|
| you are perfectly right. I went back to the documentation and paid a bit
| more attention and with your information in mind, I now see that it is
| talking about a selfcontained python with pyqt. I guess that I want to
| use the qt bindings *dynamically*. That means that I have to find a way
| to tell Python where to find the pyqt that I installed.
|
| In tcl I would either have installed into a directory in auto_path or I
| would have extended auto_path. How is this done in Python?
|

PyQt is installed in the site-packages directory on OS X--there's
nothing special you need to do, it "just works" and loads up fine.
- --
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@wordt ech-software.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBkTwRJmd Qs+6YVcoRAj0rAJ 9bRjtLXWTYZV5jF eyVBESisqbasgCd Fwwa
lW+8v04/KiAWzKM6glr3PVE =
=ZpPs
-----END PGP SIGNATURE-----

Jul 18 '05 #6
Kevin Walzer wrote:
Svenn Are Bjerkem wrote:

|
| you are perfectly right. I went back to the documentation and paid a bit
| more attention and with your information in mind, I now see that it is
| talking about a selfcontained python with pyqt. I guess that I want to
| use the qt bindings *dynamically*. That means that I have to find a way
| to tell Python where to find the pyqt that I installed.
|
| In tcl I would either have installed into a directory in auto_path or I
| would have extended auto_path. How is this done in Python?
|

PyQt is installed in the site-packages directory on OS X--there's
nothing special you need to do, it "just works" and loads up fine.


Well, then I must have done something wrong since I get the error
message that there is no module called qt available.

On the command line of Python I did import sys and print sys.path to get
the built-in search path. I checked the location where make install put
the pyqt build vs the list of directories in sys.path and found that
Python *should* be able to find pyqt. (There is a README file in that
directory saying that this is the place to put third-party files, but I
don't know if I have to do anything special in that sites.py which is
mentioned in that README file)

When I do import qt on the Python commandline, which file(s) in the
third-party directory will be searched for first? If I knew that I could
check if make install was successful generating all needed files.

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

Svenn Are Bjerkem wrote:

| Kevin Walzer wrote:
|
|> Svenn Are Bjerkem wrote:
|>
|> |
|> | you are perfectly right. I went back to the documentation and paid a
|> bit
|> | more attention and with your information in mind, I now see that it is
|> | talking about a selfcontained python with pyqt. I guess that I want to
|> | use the qt bindings *dynamically*. That means that I have to find a way
|> | to tell Python where to find the pyqt that I installed.
|> |
|> | In tcl I would either have installed into a directory in auto_path or I
|> | would have extended auto_path. How is this done in Python?
|> |
|>
|> PyQt is installed in the site-packages directory on OS X--there's
|> nothing special you need to do, it "just works" and loads up fine.
|
|
| Well, then I must have done something wrong since I get the error
| message that there is no module called qt available.
|
| On the command line of Python I did import sys and print sys.path to get
| the built-in search path. I checked the location where make install put
| the pyqt build vs the list of directories in sys.path and found that
| Python *should* be able to find pyqt. (There is a README file in that
| directory saying that this is the place to put third-party files, but I
| don't know if I have to do anything special in that sites.py which is
| mentioned in that README file)
|
| When I do import qt on the Python commandline, which file(s) in the
| third-party directory will be searched for first? If I knew that I could
| check if make install was successful generating all needed files.
|

How are you launching your program? Are you using pythonw instead of
Python? That's how to launch Python GUI programs on Mac OS X.

Do you have the MacPython add-ons installed? These make double-clicking
on Python apps the easiest way to launch them. See
http://homepages.cwi.nl/~jack/macpython/.

Also, my installer package is now live. See
http://www.wordtech-software.com/pyqt-mac.html. It installs most stuff
directly, then you just need to run sudo make install in the directories
for PyQt and Sip. It's a straightforward build, nothing fancy, and works
fine for me. Perhaps you should give that a try and see if you find it
helpful.

When I try to assemble a standalone verison of a PyQt app (using py2app,
like py2exe but on the Mac, with the Qt libraries), I do have problems
seeing the PyQt path--I get some of the same error messages that you are
seeing. I haven't figured out how to debug those yet. However, when just
running the script, or doing an applet bundle
(http://www.wordtech-software.com/pyt...tutorial.html), things
run fine. I've bundled up Eric3 (released with my PyQt distro) and Kodos
(just on my own box) this way, and they work fine.

- --
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@wordt ech-software.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBke0tJmd Qs+6YVcoRAqOUAJ 4/Vzj77nud2hqbzzC v/sKZ1CuCPgCgi5b9
aV8JEbxCTR08WzI sHCCUg3c=
=j8KC
-----END PGP SIGNATURE-----

Jul 18 '05 #8
Kevin Walzer wrote:
How are you launching your program? Are you using pythonw instead of
Python? That's how to launch Python GUI programs on Mac OS X.
I have used python until this advice. After reading your advice I tried
pythonw, but on its commandline I got the same error message that qt is
not a module. Somewhere down the compile and install pipe a file that
python need to know that qt is available must have slipped through.

Do you have the MacPython add-ons installed? These make double-clicking
on Python apps the easiest way to launch them. See
http://homepages.cwi.nl/~jack/macpython/.
Yes, I have installed the MacPython add-ons. So far I haven't
experimented with it, but I will now.

Also, my installer package is now live. See
http://www.wordtech-software.com/pyqt-mac.html. It installs most stuff
directly, then you just need to run sudo make install in the directories
for PyQt and Sip. It's a straightforward build, nothing fancy, and works
fine for me. Perhaps you should give that a try and see if you find it
helpful.


But I have already installed Mac/qt by myself, and it is working. I
don't know what will happen if I start to install something on top of
it. Do you have a possibility to create a version that do not include
Mac/qt, or will this make no sense?

I hope to get some more time to play with python and qt this evening,
and then I will check some of your advices.

Thanks,
--
Svenn
Jul 18 '05 #9
On 2004-11-09 22:52:18 +0100, Kevin Walzer <sw@wordtech-software.com> said:
PyQt is installed in the site-packages directory on OS X--there's
nothing special you need to do, it "just works" and loads up fine.


Am I supposed to create static or dynamic libraries for sip and pyqt if
I only want to use with the MacOSX python?

--
Svenn

Jul 18 '05 #10

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

Similar topics

4
2705
by: reh | last post by:
Have installed on Redhat 9.0 in the following order; Qscintilla sip PyQt When I install eric3 (python install.py), I get this error; Sorry, please install QScintilla and/or reinstall PyQt with QScintilla support.
5
1809
by: JamesW | last post by:
Dear All, I need to install wxPython to run some programs that interest me. I have had numerous problems, probably due to knowing little about the packages and python, and taking the computer over from soemone else. I have recently carried out a clean install of Linux RH 9.0, hoping this may eleviate the problems. I hoped that the prerequisites would already be installed, but I doubt
16
2130
by: Nanoscalesoft | last post by:
hello all, I am planning to start coding a nanoscale design software in python with QT interface.I have to do this in windows or linux.Intially windows would be fine. I have struggled almost full day today trying to make from import qt * execute...........................I have the basic python core. I went through the sites like riverbankcomputing and trolltech and few online pages and books which talk about PyQT but never say about...
10
2161
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 go with it eventually!) I'm currently using PyQt 3.12 that comes with the BlackAdder demo, it seems to work fine with Python 2.3.5 except that it doesn't support the WinXP look'n'feel, the QStyle "WindowsXP" isn't included, and using a...
17
11824
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 _both_toolkits_. I'm only mildly interested in the IDEs and UI designers for each, as i want to do as much as i can in just Xemacs and xterm. Feel free to rant, rave, pontificate, whatever. t.i.a., E
3
3021
by: Kenneth McDonald | last post by:
I'm wondering if anyone has experience/tips to offer on installing Eric on OS X and XP. Installation on both seems to require a number of steps, some of them seeming potentially fragile, and I'm wondering if I'm looking at a job of perhaps hours (days?), or if everyone manages in just a few minutes. Thanks, Ken
1
6074
by: Peter TB Brett | last post by:
Hi folks, Although the PyQt documentation indicates that QGLWidget & friends have been ported to Python for the PyQt bindings, I'm not entirely sure what's necessary to make the normal OpenGL/GLUT interface available. Does PyQt work okay with PyOpenGL? Or is a more complicated workaround needed? If anyone has experience with working with Python/Qt/OpenGL and can offer
2
4602
by: wd.jonsson | last post by:
Hello! I must be doing something wrong here because I'm getting all these missing .dll messages after installing PyQT. This is what I've done (no step excluded): 1. Fresh installation of Python25 2. I run the PyQt-gpl-4.1.1-Py2.5-Qt4.2.2.exe file which should include SIP 3. I run the qt-win-opensource-4.2.2-mingw.exe file
2
2950
by: Pradnyesh Sawant | last post by:
Hello, I have a newly installed ubuntu 6.06 system. I am trying to install pyqt4 on it, but without success. The contents of the /etc/apt/sources.list file are: ******************************************************************************** deb http://in.archive.ubuntu.com/ubuntu/ dapper main restricted universe deb http://in.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse deb...
0
8649
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9221
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9082
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8975
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7822
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6567
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4410
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3102
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2035
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.