473,791 Members | 2,899 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

wxPython and Linux dependencies

Hi,

I wrote a small app using wxPython on a Linux distro called Ubuntu (it
is a debain derivative). I ran it on windows and it just worked
perfectly. Now, when I am trying to install the same app on a different
Linux Distro (Red Hat Linux) I cannot get it to work. This Red Hat
variant is a customized version of Red Hat of a Company where I work.
It uses python 2.3.4.
I installed wxPython and other dependencies mentioned on
http://www.wxpython.org/download.php

Can somebody give me some pointers to get it working .?

Every help is appreciated.

Jul 6 '06 #1
8 2081
"cannot get it to work." is pretty broad, you are more likely to get
help if you post an error message or any other details.

di********@gmai l.com wrote:
Hi,

I wrote a small app using wxPython on a Linux distro called Ubuntu (it
is a debain derivative). I ran it on windows and it just worked
perfectly. Now, when I am trying to install the same app on a different
Linux Distro (Red Hat Linux) I cannot get it to work. This Red Hat
variant is a customized version of Red Hat of a Company where I work.
It uses python 2.3.4.
I installed wxPython and other dependencies mentioned on
http://www.wxpython.org/download.php

Can somebody give me some pointers to get it working .?

Every help is appreciated.
Jul 6 '06 #2
Error message "cannot find wx"

infact I have wxpython in /usr/lib/

I installed it using the rpms given on the wxPython website. Do I need
to set some path or something.

Nick Vatamaniuc wrote:
"cannot get it to work." is pretty broad, you are more likely to get
help if you post an error message or any other details.

di********@gmai l.com wrote:
Hi,

I wrote a small app using wxPython on a Linux distro called Ubuntu (it
is a debain derivative). I ran it on windows and it just worked
perfectly. Now, when I am trying to install the same app on a different
Linux Distro (Red Hat Linux) I cannot get it to work. This Red Hat
variant is a customized version of Red Hat of a Company where I work.
It uses python 2.3.4.
I installed wxPython and other dependencies mentioned on
http://www.wxpython.org/download.php

Can somebody give me some pointers to get it working .?

Every help is appreciated.
Jul 6 '06 #3
di********@gmai l.com wrote:
Error message "cannot find wx"

infact I have wxpython in /usr/lib/

I installed it using the rpms given on the wxPython website. Do I need
to set some path or something.
Could it be that it is trying to use another, pre-installed version of
Python -- one which doesn't have wxPython installed with it?
Jul 6 '06 #4
How can we find that it is not using the right version of Python ?

John Salerno wrote:
di********@gmai l.com wrote:
Error message "cannot find wx"

infact I have wxpython in /usr/lib/

I installed it using the rpms given on the wxPython website. Do I need
to set some path or something.

Could it be that it is trying to use another, pre-installed version of
Python -- one which doesn't have wxPython installed with it?
Jul 6 '06 #5
John,
To see where Python is looking for libraries open an interactive Python
prompt and type
>>import sys
print sys.path
You will get a list of paths where Python will look for modules. Also
check to see if you have the PYTHONPATH environment variable set. If
/usr/lib is not in the path list then Python won't be able to import wx
from there. To test your wx app, you can append to sys.path the path of
your wx module then try to import again.

Hope this helps,
Nick V.

di********@gmai l.com wrote:
How can we find that it is not using the right version of Python ?

John Salerno wrote:
di********@gmai l.com wrote:
Error message "cannot find wx"
>
infact I have wxpython in /usr/lib/
>
I installed it using the rpms given on the wxPython website. Do I need
to set some path or something.
Could it be that it is trying to use another, pre-installed version of
Python -- one which doesn't have wxPython installed with it?
Jul 6 '06 #6

<di********@gma il.comwrote in message
news:11******** **************@ s16g2000cws.goo glegroups.com.. .
Error message "cannot find wx"

infact I have wxpython in /usr/lib/

I installed it using the rpms given on the wxPython website. Do I
need
to set some path or something.
I vaguely remember that wxWindows changed name to wxWidgets and
wxPython changed convention along the way so that one should do:

"include wx" and reference wx stuff as wx<dot><somethi ng....

instead of "the old way" of:

"from wxPython include *" and reference as f.ex. wxDialog:

This is from memory, I cannot remember what version of wxPython the
change happened - but I was bitten by it.

Check the versions of wxPython on RedHat and Ubuntu - Ubuntu will
almost certainly be newer than RedHat!
Jul 7 '06 #7
Nick Vatamaniuc wrote:
To see where Python is looking for libraries open an interactive Python
prompt and type
>>>import sys
print sys.path
After doing this you will see something like

'C:\\Python24\\ lib\\site-packages\\wx-2.6-msw-ansi' (from my system)

in the list, otherwise it isn't finding wxPython. Also, probably just
looking at the version of Python you are using when the interactive
prompt starts up might give you a clue. If it's different than the
version you installed wxPython in, then that's why it isn't finding it.
(But I don't know if the version that the interactive prompt uses is
necessarily the version that will be used to run your program, assuming
you have multiple versions installed, so maybe these methods won't be
perfectly accurate. Not sure how it gets decided which version to use if
you have more than one, especially on Unix systems.)
Jul 7 '06 #8
Let me explain and give you some more details.

When I type "python" at the command prompt it shows the following info.
python 2.3.4 (#Feb 01 2005), GCC 3.4.3 20041212 Red Hat 3.4.3-9.EL4 on
linux2
In /usr/lib/ there are two directories called python 2.3 and python 2.4

In /usr/lib/python2.3/site-packages I could NOT find anything related
to wx and in particular

wx-2.6-gtk2-unicode
wx.pth
wxversion.py
wxversion.pyc
In /usr/lib/python2.4/ there is only one folder called site-packages
and NO other files.

So /usr/lib/python2.4/site-packages/ has only one folder called
"wx-2.6-gtk2-unicode" and a file called " wx.pth" and another file
wx.version.py (and its compiler version wx.version.pyc) . wx.pth
contains wx-2.6-gtk2-unicode

So, what my feeling is that I have python 2.3 and wx package is for
2.4. So my installed variant cannot find the wx package.

What is the easiest way from this point on to get my small wxPython app
running ???

Every help is appreciated.

Nick Vatamaniuc wrote:
John,
To see where Python is looking for libraries open an interactive Python
prompt and type
>import sys
print sys.path
You will get a list of paths where Python will look for modules. Also
check to see if you have the PYTHONPATH environment variable set. If
/usr/lib is not in the path list then Python won't be able to import wx
from there. To test your wx app, you can append to sys.path the path of
your wx module then try to import again.

Hope this helps,
Nick V.

di********@gmai l.com wrote:
How can we find that it is not using the right version of Python ?

John Salerno wrote:
di********@gmai l.com wrote:
Error message "cannot find wx"

infact I have wxpython in /usr/lib/

I installed it using the rpms given on the wxPython website. Do I need
to set some path or something.
>
Could it be that it is trying to use another, pre-installed version of
Python -- one which doesn't have wxPython installed with it?
Jul 7 '06 #9

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

Similar topics

3
2822
by: Equis Uno | last post by:
Hi, I'm trying to run some Python software I downloaded off of sf.net. It's called Boa. It uses wxPython. It appears my install of Python cannot see my install of wxPython.
21
2379
by: j_mckitrick | last post by:
Just thought I'd play devil's advocate... I tried wxPython briefly, and it had some nice features. It has a huge list of dependencies. I don't like the fonts (but I'd love to know how to get fixed fonts, or at least anything that looks better on a small laptop screen. TkInter seems much easier to use... less effort to do things.
25
3360
by: BJörn Lindqvist | last post by:
See: http://www.wxpython.org/quotes.php. especially: "wxPython is the best and most mature cross-platform GUI toolkit, given a number of constraints. The only reason wxPython isn't the standard Python GUI toolkit is that Tkinter was there first." - Guido van Rossum Guess, that answers my question, but isn't "Tkinter was there first" a very bad answer? :) It is kinda ugly too, so I wonder why it can't be replaced? Or maybe another GUI...
13
4590
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 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...
1
2573
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
5773
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
4285
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???
8
3724
by: Janwillem | last post by:
Is there a way to force the wx.FileDialog to show as default the thumbnails vie in stead of list view? thanks, janwillem
10
225
by: John Salerno | last post by:
Just out of curiosity, what are the chances of this happening (sort of like what happened with sqlite)? I read somewhere that Guido said the only reason Tkinter is still the standard GUI module instead of wxPython is because "it was there first." Perhaps a joke, but it got me thinking that there could be a chance of this happening. I'm sure most Python work doesn't involve GUIs, so it's not a priority, but to have wxPython be a standard...
0
9669
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
10426
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
10207
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
10154
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
9029
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
7537
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
5430
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
4109
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
2913
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.