473,883 Members | 1,626 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

installing wxPython on Linux and Windows

Recently I replaced Win2k with Linux on my desktop computer. Using mostly
multi-platform software I thought this would be easy. It was not as
easy as expected getting wxPython to work. There seemed to be no SuSE RPM
so I installed from source. Here are my steps (gtk 2.4 was already
installed):

- Built wxWidgets (.configure --enable-unicode)
- Built wxPython (python setup.py install)
error: "you should use wx-config program for compilation"
- Tried wx-config with various options
- Examined (huge) error output more closely: There was a message
"Usage: wx-config [options]" right at the beginning
- Debugged setup.py: message was caused by wx-config option unicode=no
- Debugged config.py: wx-config option unicode=no was caused by UNICODE=0
- Set UNICODE=1, next build, error: compiler couldn't find stc.h
- Set BUILD_STC = 0 and some other BUILD_s as well
- I worked! started demo.py, splash screen started up and - error in
demo's Main.py 'DemoCodeEditor ' object has no attribute 'editor'
- Ah, STC is for StyledTextContr ol! set BUILD_STC = 1 again but how can
I get styledTextContr ol?
- Downloaded/built scintilla, but where's the slot for scintilla.a?
- Realized that I had to build STC (wxWidgets' contribs) separately.
- Built wxPython, start demo.py - it worked FINALLY!

Took me with all tries and dead ends approx. 8 hours.

Same task on Win2k: download wxPython-setup.exe, double-click, done.
Took me approx. 1 minute. This strikes me. Why are some tasks so hard
on Linux and so easy on Windows? After all wxPython/Win and wxPython/Lin
are made by the same developers. My guess: the software deployment
infrastructure on Linux needs to be improved.

Disclaimer: I don't want to blame anyone here. wxPython is a fine
piece of software otherwise I wouldn't have tried so hard to get
it working.

--
-------------------------------------------------------------------
Peter Maas, M+R Infosysteme, D-52070 Aachen, Tel +49-241-93878-0
E-mail 'cGV0ZXIubWFhc0 BtcGx1c3IuZGU=\ n'.decode('base 64')
-------------------------------------------------------------------
Jul 18 '05 #1
13 4594
> Same task on Win2k: download wxPython-setup.exe, double-click, done.
Took me approx. 1 minute. This strikes me. Why are some tasks so hard
on Linux and so easy on Windows? After all wxPython/Win and wxPython/Lin
are made by the same developers. My guess: the software deployment
infrastructure on Linux needs to be improved.


On debian, it

apt-get install wxPython2.5.3

So it clearly depends on you distribution. That this is unfortunate is of
course true...

I think there are several reasons for windows having easier installation:

- on unix, progams usually are linked to libraries available on the
machine, so missing dependencies make the installation fail. On windows,
the installer installs all the dependencies - and possibly overwrites
system dlls (CorelDraw 7 killed Exchange by that, back in 1998)

- there is more commercially available installers for windows - maybe
because free software developers on UNIXes are less keen to pay for such
tools, or the admins of such systems can be trusted to be more apt dealing
with configure and the like.

- the variety of hardware _and_ software unix systems run on is much
larger, so compiling is the only way to go if you don't want to support a
plethorea of binaries (and have hardware available for these). On windows,
you can compile at home and install it on the big iron at work.

All the points are of course only an explanation, no excuse - there _could_
be better installers. As I showed, in parts that's already available, e.g.
for debian which handles dependencies usually much better and is easier to
use for online updates. I think we have to wait until consistent dependency
checking and so on are established - maybe LSB helps us there.

--
Regards,

Diez B. Roggisch
Jul 18 '05 #2
| On debian, it
|
| apt-get install wxPython2.5.3
|
| So it clearly depends on you distribution.
|
| That this is unfortunate is of course true...
| ....

Diez ....

The package for wxPython2.5.3 currently is available
for Debian Sid/unstable but not for Sarge/testing ....

--
Cousin Stanley
Human Being
Phoenix, Arizona
Jul 18 '05 #3
Diez B. Roggisch schrieb:
Same task on Win2k: download wxPython-setup.exe, double-click, done.
Took me approx. 1 minute. This strikes me. Why are some tasks so hard
on Linux and so easy on Windows? After all wxPython/Win and wxPython/Lin
are made by the same developers. My guess: the software deployment
infrastructur e on Linux needs to be improved.

On debian, it

apt-get install wxPython2.5.3


I have heard praises of Debian's install system but Debian is quite
conservative with latest versions. There are some packages (e.g. Python,
PostgreSQL, Subversion) where I'd like to have the latest versions.
I don't want to be too tightly bound to the update cycles of the
Linux distribution.
All the points are of course only an explanation, no excuse - there _could_
be better installers. As I showed, in parts that's already available, e.g.
for debian which handles dependencies usually much better and is easier to
use for online updates. I think we have to wait until consistent dependency
checking and so on are established - maybe LSB helps us there.


If there would be a common specification how to query and change
configuration data of the system and applications this would be
really helpful.

--
-------------------------------------------------------------------
Peter Maas, M+R Infosysteme, D-52070 Aachen, Tel +49-241-93878-0
E-mail 'cGV0ZXIubWFhc0 BtcGx1c3IuZGU=\ n'.decode('base 64')
-------------------------------------------------------------------
Jul 18 '05 #4
> The package for wxPython2.5.3 currently is available
for Debian Sid/unstable but not for Sarge/testing ....


Nevertheless, the point remains valid: _If_ you have proper
dependency-management, installation of packages is easy. Of course tracking
dependencies takes effort, and so unless a general scheme is adopted, no
software project will burden itself with the task of doing this. So you
have to wait for your distribution to do that for them - which may result
in not-so-latest verisons. Or even none at all....

--
Regards,

Diez B. Roggisch
Jul 18 '05 #5
> I have heard praises of Debian's install system but Debian is quite
conservative with latest versions. There are some packages (e.g. Python,
PostgreSQL, Subversion) where I'd like to have the latest versions.
I don't want to be too tightly bound to the update cycles of the
Linux distribution.
Then you can go for debian testing or (as I do) unstable. They usually have
the latest stuff in, and for a desktop-system that doesn't need uptimes
measured in years its really good. Occasionally, some dependency matters
occur in these releases, and I have to force installation of packages. But
usually, things are smooth, and apart from a hd-crash in January, I never
had to reinstall my system for now 2-3 years. Before that, I used Suse, and
switching between releases did give me quite a few headaches - usually I
reinstalled the system, as my home was on its own partition.

However, a warning has to be voiced: Commercial distributions do a better
job on the hardware detection/integration side of linux-life. Debian can do
what can be done on linux in general, but it might require some
config-file-fiddling and the occasional kernel build. Still worth the
effort for me, though.

If there would be a common specification how to query and change
configuration data of the system and applications this would be
really helpful.


Yup. And above that, tool support for configure or the like that will
integrate this - for example, on debian nearly all libs come with an extra
dev-package you need when compiling against them. No big deal, but
compiling software yourself usually means to downtrack these packages by
making multiple configure runs, until all missing headerfiles are there.

--
Regards,

Diez B. Roggisch
Jul 18 '05 #6
Op 2004-12-02, Peter Maas schreef <pe***@somewher e.com>:
Diez B. Roggisch schrieb:
Same task on Win2k: download wxPython-setup.exe, double-click, done.
Took me approx. 1 minute. This strikes me. Why are some tasks so hard
on Linux and so easy on Windows? After all wxPython/Win and wxPython/Lin
are made by the same developers. My guess: the software deployment
infrastructu re on Linux needs to be improved.

On debian, it

apt-get install wxPython2.5.3


I have heard praises of Debian's install system but Debian is quite
conservative with latest versions. There are some packages (e.g. Python,
PostgreSQL, Subversion) where I'd like to have the latest versions.
I don't want to be too tightly bound to the update cycles of the
Linux distribution.


Debian has muliple distributions. Only the stable distribution is
really conservative. The PostgreSQL version in the testing distribution
is 7.4.6-4, the download page of PostgreSQL gives 7.4.6 as the latest
version. That seems to be in order.

--
Antoon Pardon
Jul 18 '05 #7
I have used the Fedora2 RPM's of wxPython 2.5.3.1 successfully on SUSE
9.1 Pro, 9.2 Pro and SLES 9 (and Fedora 3 for that matter) so you don't
need to get a specific RPM for SUSE.

I even built wxPython 2.5.3.1 with Python 2.4 on Fedora 2 today, it was
not that hard - just followed http://wxpython.org/BUILD.html

I have no way to build it on Windows though, as I don't have Visual C++
7.1, for that we must wait for Robin Dunn.

Jul 18 '05 #8
I have used the Fedora2 RPM's of wxPython 2.5.3.1 successfully on SUSE
9.1 Pro, 9.2 Pro and SLES 9 (and Fedora 3 for that matter) so you don't
need to get a specific RPM for SUSE.

I even built wxPython 2.5.3.1 with Python 2.4 on Fedora 2 today, it was
not that hard - just followed http://wxpython.org/BUILD.html

I have no way to build it on Windows though, as I don't have Visual C++
7.1, for that we must wait for Robin Dunn.

Jul 18 '05 #9
> I have no way to build it on Windows though, as I don't have Visual C++
7.1, for that we must wait for Robin Dunn.


Would it be too difficult of a task to try getting the build working
with Dev-C++? That way those without enough incentive for purchasing
Visual C++ (in excess of $100, I believe) could build it. Forgive my
ignorance if this has already been considered ;)

Bickett
Jul 18 '05 #10

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

Similar topics

5
1818
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
2
3603
by: C GIllespie | last post by:
Dear All, I have wxpython under both windows and Linux. Under Windows there is a nice little demo, which demonstrates all the widgets (with accompanied source code). I presume the same demo is under Linux, but I can't find it. Where should I look? I'm using Debian, is it a separate package? Thanks
1
2580
by: timothy.williams | last post by:
I'm trying to install wxPython 2.5.3.1 using Python 2.3.2 on a Fedora 2 machine. I have python in a non-standard place, but I'm using --prefix with the configure script to point to where I have everything. The make install in $WXDIR seemed to go fine. I have the libxw* libraries in my lib/ directory libwx_base-2.5.so@ libwx_gtk_adv-2.5.so.3.0.0* libwx_base-2.5.so.3@ libwx_gtk_core-2.5.so@
22
5784
by: dcrespo | last post by:
Hi all... I think wxPython is much better than PyGTK. First of all, PyGTK needs the GTK runtime installed, whereas wxPython is entirely Python's modules, so It facilitates the apps' distribution. Also, PyGTK uses specific controls or widgets of GTK, while wxPython uses native controls of the platform where the app is running. I'm learning both, but at a slow step, so I want to know all the comments about this subject in this group.
25
4299
by: TPJ | last post by:
GUI's etc: PyGtk on Windows "(...) So if someone develops mainly for X and just wants to make sure that it is not impossible to run on Windows, you can use PyGTK. (...)", July 2nd, 1999 pyGTK on Windows "(...) > can i use pyGTK under > Windows???
6
4768
by: zdp | last post by:
Dear all: I made a window program by wxPython. Split windows, treectrl, listctrl and textctrl are used. When I program in python, the look & feel of the window controls are like the windos XP look & feel, with thin and flat border (My os is window XP). It's natural because, as I know, wxPython use native look and feel. But when I convert the program to EXE file by Py2exe, and run it, the look & feel is bad. It's just like the windows...
2
1196
by: ahlongxp | last post by:
Sorry, I know this is not the most appropriate place to talk about wxPython. But I can't have access to wxPython mail list page(because I don't pay enough). I downloaded python2.5 and wxPython 2.8.4.0 from pythonmac.org and installed them into one of my friends' Mac 10.4.8(intel) and I found wx.lib.flatnotebook and wx.xrc were broken(which are quite OK under both Linux and Windows).
0
1106
by: Robin Dunn | last post by:
Announcing ---------- The 2.8.8.1 release of wxPython is now available for download at http://wxpython.org/download.php. This is a minor bugfix release with several fixes for problems discovered in the 2.8.8.0 release. Source code is available, as well as binaries for Python 2.3, 2.4 and 2.5, for Windows and Mac, as well some packages for various Linux distributions. A summary of changes is listed below and also at
0
944
by: Robin Dunn | last post by:
Announcing ---------- The 2.8.9.1 release of wxPython is now available for download at http://wxpython.org/download.php. This release adds a quick fix for a compatibility problem with Python 2.4. Source code is available, as well as binaries for Python 2.3, 2.4 and 2.5, for Windows and Mac, as well some packages for various Linux distributions. A summary of changes is listed below and also at
0
9944
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9793
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
10752
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
10858
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,...
1
7974
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
5804
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...
0
5996
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4619
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
3238
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.