LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-06-2003, 01:55 AM   #1
frycarson
LQ Newbie
 
Registered: Aug 2003
Posts: 15

Rep: Reputation: 0
Can anyone explain how to install wxPython?


The topic pretty much says all I want to know; how to install wxPython, what one needs to install before hand and things like that. I just blew an hour updating gcc trying to fix "Error: gcc failed with exit status 1 " while trying to install wxPython in, according to the manual, old way. Any help?

-FryCarson

Last edited by frycarson; 09-06-2003 at 01:56 AM.
 
Old 09-06-2003, 05:30 AM   #2
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Which distro? Which version of Python do you have?
Are you sure you havent caused problems messing with gcc version?
 
Old 09-06-2003, 05:52 PM   #3
frycarson
LQ Newbie
 
Registered: Aug 2003
Posts: 15

Original Poster
Rep: Reputation: 0
no, it's was the same same error as before I touched GCC,
I installed the newest version of gcc hopeing it was just an old version... I installed wxGTK and that is working fine, so I just need to know why wxPython won't install / what additional installations i need to do for it to install.

Python is version 2.3
it is the wxPythonSrc-2.4.1.2 file I'm trying to install from
I am on Mandrake 9.1
wxGTK 2.4 is installed and works
 
Old 09-06-2003, 07:43 PM   #4
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Maybe you need to add a new source to urpmi/RpmDrake. My system reports that wxPythonGTK-2.4.1.2-3mdk and the lib package are available in the Cooker contibution mirrors. I've added a set of cooker mirrors via the Easy Urpmi site. I'm almost certain that's the package you need, but I've held off getting Python2.3 as I didnt want to risk my stable setup, though I am gunna install Mdk9.2RC1 on a second pc on monday.
 
Old 09-06-2003, 09:47 PM   #5
frycarson
LQ Newbie
 
Registered: Aug 2003
Posts: 15

Original Poster
Rep: Reputation: 0
hmm... I found the package and installed it but it seems it still isn't being added to my systems resources.

Traceback (most recent call last):
File "./btdownloadgui.py", line 14, in ?
from wxPython.wx import *
ImportError: No module named wxPython.wx

How would I be able to make / add this file to be imported?

need to figure out how enough of this works, then good bye M$ for good.

-FrycarSON

EDIT: Ok... going to start from scratch with a fresh copy of Mandrake if I can't figure this out by tommorow..

Last edited by frycarson; 09-06-2003 at 10:44 PM.
 
Old 09-07-2003, 07:10 AM   #6
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Strange. I have wxPythonGTK and wxGTK installed and it seems to work fine. Maybe just try from wxPython import *, eg remove the .wx bit. But I'd guess Bittorrent's scripts are good and I dont suggest messing with them too much.
 
Old 09-07-2003, 10:45 AM   #7
frycarson
LQ Newbie
 
Registered: Aug 2003
Posts: 15

Original Poster
Rep: Reputation: 0
I would, but wxPython doesn't compile right...
is the error i keep getting. GTK works fine i think, at least the demos did... any suggestions?

"src/gtk/windows.cpp:10728: no matching function for call to `wxMenuItem::SetMenu(wxMenu*&)'
error: command 'gcc' failed with exit status 1"
 
Old 09-07-2003, 01:36 PM   #8
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Any reason you're trying to compile wxPython? There are up to date .rpm packages in those contribution sources. Use the Easy Urpmi site to add a new source and then see the new packages on offer. Might be easier than using rpmfind, or compiling it yourself.
 
Old 09-07-2003, 05:33 PM   #9
frycarson
LQ Newbie
 
Registered: Aug 2003
Posts: 15

Original Poster
Rep: Reputation: 0
the reason I continued trying to compile is 1) I'm stubborn. 2) I tried the rpm after you (i think) told me how to add sources and it didn't work, but that could have be thanks to shoddy work on my part. So trying the rpm, and will screw with things now that I have an Idea of what i need to trick into existing.
hopfully I'll figure it out, if not i'll have to use a command line bittorrent. Thanks for all your help, you've added a touch of knowledge to this noobs skull

-FryCarson, if it won't use graphics, learning to type better.

EDIT: OMG it worked... It just installed it hidden away in a different version of python that I though I had eliminated. Thank you Proud

Last edited by frycarson; 09-07-2003 at 05:52 PM.
 
Old 09-07-2003, 06:33 PM   #10
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Cool.

Maybe you were compiling wrong. Do you use a distro like Mandrake which requires ./configure --prefix=/usr ?
 
Old 09-07-2003, 08:36 PM   #11
frycarson
LQ Newbie
 
Registered: Aug 2003
Posts: 15

Original Poster
Rep: Reputation: 0
... I'll try that next time I have a horrible proble, but it's worked for everything else i compiled
 
Old 09-14-2003, 03:44 PM   #12
_john_i_
Member
 
Registered: Aug 2003
Location: Austin, TX
Distribution: Linux from Scratch
Posts: 52

Rep: Reputation: 15
Apply the patch to wxGTK, and recompile it, and it should fix the problem:
http://spegill.linux.is/gentoo/gento...xpython1.patch


_john_i_
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
WxPython install help 64 bit system MarkLinux222 Linux - Software 0 02-08-2005 03:59 PM
cannot install wxGTK and wxPython slack10 MykilX Slackware 3 10-30-2004 06:32 AM
wxPython install problem OC_eobard Linux - Newbie 1 08-15-2004 05:56 PM
wxPython install issue... migraine Linux - Software 0 06-06-2004 06:08 PM
wxPython install problem zmieff Linux - Newbie 0 04-28-2004 01:17 PM


All times are GMT -5. The time now is 01:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration