473,385 Members | 1,863 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,385 software developers and data experts.

wxPython installation issues on Debian

Hi all,

I'm trying to install wxPython on Debian using 'apt-get install
python-wxgtk2.4.' I've got both Python 2.3 and 2.4 installed with 2.4
set as my default. For whatever reason, wxPython always installs under
/usr/lib/python2.3/site-packages.

Does anyone know how I can force it to install in 2.4's site-packages
directory?

Thanks,
Aaron

Nov 24 '05 #1
9 2748
am****@yahoo.com wrote:
Hi all,

I'm trying to install wxPython on Debian using 'apt-get install
python-wxgtk2.4.' I've got both Python 2.3 and 2.4 installed with 2.4
set as my default. For whatever reason, wxPython always installs under
/usr/lib/python2.3/site-packages.

Does anyone know how I can force it to install in 2.4's site-packages
directory?


Install the right package: python2.4-wxgtk2.4

--
Robert Kern
ro*********@gmail.com

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter

Nov 24 '05 #2
Hi Robert,

Thanks for the suggestion, but an apt-cache search python2.4-wxgtk2.4
returns no results for a package with that name.

Aaron

Nov 30 '05 #3
> Thanks for the suggestion, but an apt-cache search python2.4-wxgtk2.4
returns no results for a package with that name.


As you observed, the Debian wxPython packages currently only support one
version of Python at a time. That decision ripples down and ends up
affecting a number of other things -- for instance, it's also the reason
that the Pythoncard Debian packages I maintain are only supported for a
single version of Python.

I'm sure that Ron (the Debian wxWidgets maintainer) has a good reason
for supporting only one Python version, but I don't personally know what
it is. This package does seem to be rather difficult to maintain, and
that could be why he chose to do things this way. Or, it might just be
that the default version of Python in Debian (even in etch) is still
2.3, and he's decided to support only the default version. You could
try writing him to find out for sure.

If you really can't live with using Python 2.3, then I guess you have
two choices -- you can either download, modify and rebuild the Debian
package (apt-get source and dpkg-buildpackage) or try to get an upstream
binary distribution for your platform (which I guess could be
problematic unless you also get binaries for the underlying libraries,
etc.).

Or, of course, you can also try building from the upstream source and
install to /usr/local or something. Using that option, you might get
away with installing the underlying wxWidgets shared libraries from the
Debian package, and only the Python parts from source (if you're lucky).

I imagine that's not the answer you're looking for, but I hope that
helps a little,

KEN

--
Kenneth J. Pronovici <pr******@ieee.org>
http://www.cedar-solutions.com/
Nov 30 '05 #4
Hi Ken,

Thanks a lot for the clarification. I don't have a compelling reason
not to use 2.3 other than having to install the modules I've already
set up for 2.4. Not really a big deal. Looks like I'll be switching to
2.3.

Thanks again,
Aaron

Nov 30 '05 #5
am****@yahoo.com wrote:
Thanks a lot for the clarification. I don't have a compelling reason
not to use 2.3 other than having to install the modules I've already
set up for 2.4. Not really a big deal. Looks like I'll be switching to
2.3.


Umm, for what it's worth: I'm on Ubuntu (a Debian derivative), using Python
2.4.2 and wxPython 2.6. The wxPython was installed using 'apt-get install
python-wxGtk2.6'.

So I don't know why you say you need to use Python 2.3 as I don't even have that
on my system.

--
Paul McNett
http://paulmcnett.com
http://dabodev.com

Dec 1 '05 #6
Paul McNett wrote:
am****@yahoo.com wrote:
Thanks a lot for the clarification. I don't have a compelling reason
not to use 2.3 other than having to install the modules I've already
set up for 2.4. Not really a big deal. Looks like I'll be switching to
2.3.


Umm, for what it's worth: I'm on Ubuntu (a Debian derivative), using Python
2.4.2 and wxPython 2.6. The wxPython was installed using 'apt-get install
python-wxGtk2.6'.

So I don't know why you say you need to use Python 2.3 as I don't even have that
on my system.


Although Ubuntu is a Debian derivative, it does have different packages.
At the moment, Debian's default Python is 2.3 although one can also
install Python 2.4, and most Python packages in Debian have been built
for both (that's why I erroneously recommended installing the apparently
nonexistant python2.4-wxgtk2.4). However, it appears that the maintainer
of the Debian wxPython is not building packages for both Python 2.3 and
2.4. The maintainer of the Ubuntu wxPython package apparently is.

--
Robert Kern
ro*********@gmail.com

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter

Dec 1 '05 #7
Robert Kern wrote:
Although Ubuntu is a Debian derivative, it does have different packages.
At the moment, Debian's default Python is 2.3 although one can also
install Python 2.4, and most Python packages in Debian have been built
for both (that's why I erroneously recommended installing the apparently
nonexistant python2.4-wxgtk2.4). However, it appears that the maintainer
of the Debian wxPython is not building packages for both Python 2.3 and
2.4. The maintainer of the Ubuntu wxPython package apparently is.


As far as I know, the maintainer of the wxPython package is the same (Ron) and
Ubuntu just uses the upstream wxPython from Debian. However, I see above that
you are referencing wxPython 2.4 and not 2.6. It is very possible that for
wxPython 2.4, there is only a Python 2.3 package.

wxPython 2.4 is obsolete. If possible, wxPython 2.6 should be used. But, I don't
know if it is available for Python 2.4 under Debian (or Ubuntu, for that matter).

--
Paul McNett
http://paulmcnett.com
http://dabodev.com

Dec 1 '05 #8
Paul McNett wrote:
Robert Kern wrote:
Although Ubuntu is a Debian derivative, it does have different packages.
At the moment, Debian's default Python is 2.3 although one can also
install Python 2.4, and most Python packages in Debian have been built
for both (that's why I erroneously recommended installing the apparently
nonexistant python2.4-wxgtk2.4). However, it appears that the maintainer
of the Debian wxPython is not building packages for both Python 2.3 and
2.4. The maintainer of the Ubuntu wxPython package apparently is.


As far as I know, the maintainer of the wxPython package is the same (Ron) and
Ubuntu just uses the upstream wxPython from Debian. However, I see above that
you are referencing wxPython 2.4 and not 2.6. It is very possible that for
wxPython 2.4, there is only a Python 2.3 package.

wxPython 2.4 is obsolete. If possible, wxPython 2.6 should be used. But, I don't
know if it is available for Python 2.4 under Debian (or Ubuntu, for that matter).


Still only available for Python 2.3 it seems.

http://packages.debian.org/testing/p...ython-wxgtk2.6
http://packages.qa.debian.org/w/wxwidgets2.6.html

--
Robert Kern
ro*********@gmail.com

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter

Dec 1 '05 #9
On 11/30/05, Robert Kern <ro*********@gmail.com> wrote:
Paul McNett wrote:
Robert Kern wrote:
Although Ubuntu is a Debian derivative, it does have different packages..
At the moment, Debian's default Python is 2.3 although one can also
install Python 2.4, and most Python packages in Debian have been built
for both (that's why I erroneously recommended installing the apparently
nonexistant python2.4-wxgtk2.4). However, it appears that the maintainer
of the Debian wxPython is not building packages for both Python 2.3 and
2.4. The maintainer of the Ubuntu wxPython package apparently is.
As far as I know, the maintainer of the wxPython package is the same (Ron) and
Ubuntu just uses the upstream wxPython from Debian. However, I see above that
you are referencing wxPython 2.4 and not 2.6. It is very possible that for
wxPython 2.4, there is only a Python 2.3 package.

wxPython 2.4 is obsolete. If possible, wxPython 2.6 should be used. But, I don't
know if it is available for Python 2.4 under Debian (or Ubuntu, for that matter).


Still only available for Python 2.3 it seems.

http://packages.debian.org/testing/p...ython-wxgtk2.6
http://packages.qa.debian.org/w/wxwidgets2.6.html


The ubuntu patch available from the second link seems to provide
support for Python 2.4 (judging from a quick skim). If you're feeling
adventurous, maybe you could try applying that and installing. Or
perhaps just installing the ubuntu package manually, or try using
alien on one of the official RPMs.
--
Robert Kern
ro*********@gmail.com

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter

--
http://mail.python.org/mailman/listinfo/python-list

Dec 1 '05 #10

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

Similar topics

2
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...
1
by: John Kinson | last post by:
Hi, I'm trying to get the wxPython demo to run on a Debian sarge testing installation, but encounter the following error when I run the demo script: # ./demo.py Traceback (most recent call...
13
by: Peter Maas | last post by:
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...
2
by: Sven Kobow | last post by:
Hello, I'm not yet a python programmer but a python user. I faced a problem with tiny fonts in a wxPython app on a GNU/Debian system. Under Gentoo Linux the fonts are displayed in a normal...
19
by: Blair Adamache | last post by:
IBM is hosting a user focus session to get feedback on a new design concept for installing software products and maintenance. The information below gives a brief summary of the information about...
4
by: Tim Chase | last post by:
Trying to get my feet wet with wxPython (moving from just command-line apps), I tried the obvious (or, at least to me was obvious): Start python, "import wx" and then do a "help(wx)" to see...
0
by: gandalf | last post by:
I am trying to install oracle 9i on debian. The oracle 9i linux installation manual provides a checklist of pre-installation changes that have to be made to linux before installing oracle. I am...
6
by: BartlebyScrivener | last post by:
If there is a wxPython on Debian user in the house? I am using the version of the demo that came with the apt-get download of wxPython. I thought I'd followed the instructions for installing and...
0
bartonc
by: bartonc | last post by:
There is one major improvement for Windows users regarding OutputStreams. Plus C++ list objects being returned for things like thisWindow.GetChildren(). The big news:
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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,...

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.