LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-20-2007, 04:40 PM   #1
John Velman
Member
 
Registered: Jan 2004
Location: California
Distribution: Slackware 10.2
Posts: 33

Rep: Reputation: 15
unable to install wxPython from source


After trying for two days, going over the multiple BUILD and INSTALL and readme text documents as carefully as I am able, and trying my best to follow instructions, I'm about to give up.

I've checked that wx-config is the correct one, and done a bunch of things
to try to cludge the python setup.py build .. to work, including starting over and recording in script every step along the way.

It still doesn't work. when I do setup.py build I get :
-------------------------------------------------------------
WARNING: WXWIN not set in environment. Assuming '..'

Found wx-config: /usr/local/bin/wx-config

Using flags: --toolkit=gtk2 --unicode=yes --version=2.8



Warning: No config found to match: /usr/local/bin/wx-config --toolkit=gtk2 --unicode=yes --version=2.8 --cxxflags

in /usr/local/lib/wx/config

If you require this configuration, please install the desired

library build. If this is part of an automated configuration

test and no other errors occur, you may safely ignore it.

You may use wx-config --list to see all configs available in

the default prefix.





Warning: No config found to match:
-------------------------------------------------------------

And a bunch more of these!

OK, so further down in the output there is:
-----------------------------
In file included from src/helpers.cpp:16:

include/wx/wxPython/wxPython_int.h:19:19: wx/wx.h: No such file or directory

include/wx/wxPython/wxPython_int.h:21:25: wx/busyinfo.h: No such file or directory

include/wx/wxPython/wxPython_int.h:22:22: wx/caret.h: No such file or directory


...

--------------------------------

and a lot more of these. On the other hand, locate gives:

bash-3.2$ locate busyinfo.h
/usr/local/include/wx-2.8/wx/generic/busyinfo.h
/usr/local/include/wx-2.8/wx/busyinfo.h
/home/jr/downloads/wxPython-src-2.8.6.0/docs/html/wx/wx_wxbusyinfo.html
/home/jr/downloads/wxPython-src-2.8.6.0/include/wx/generic/busyinfo.h
/home/jr/downloads/wxPython-src-2.8.6.0/include/wx/busyinfo.h

-----------------

and so on.


OK, so the "INSTALL.txt" doesn't say anything about running setup.py build, just install, so I went ahead with install. Lots of copying,
but lots of errors not worth repeating unless someone wants details.

Finally, what the heck, try running python:

-----------------------------

bash-3.2$ python

Python 2.4.3 (#1, Jul 26 2006, 20:13:39)

[GCC 3.4.6] on linux2

Type "help", "copyright", "credits" or "license" for more information.

>>> import wx

Traceback (most recent call last):

File "<stdin>", line 1, in ?

File "wx/__init__.py", line 45, in ?

from wx._core import *

File "wx/_core.py", line 4, in ?

import _core_

ImportError: No module named _core_

----------------------------

In another venue, wxPython was recommended to me. Unless someone can point me to a simple way to build and install, I'm going back to pyGTK or TKInter!

By the way : I'm running slackware 11.0. I tried the linuxpackages versions of wxGTK an wxPython, but that didn't work either!

It looks like a nice "package" but looks like it's designed for full time system administrators or people who have "grown up" with it over the past 10 years and have a lot of background knowledge that's not in the docs, (Or I'm further gone down the other side of the hill than I thought).

Thanks,

John Velman
 
Old 10-20-2007, 06:52 PM   #2
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,646

Rep: Reputation: 147Reputation: 147
EDIT: The instructions I first posted don't work any more on my actual machine and are probably wrong.

Sorry for that

Last edited by titopoquito; 10-21-2007 at 05:07 AM.
 
Old 10-21-2007, 03:55 AM   #3
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,646

Rep: Reputation: 147Reputation: 147
I had to add something, since you are using 11.0 and not the current version. I think there was a gcc change, so that the compile flags are not the same anymore. If I am not totally confused you have to replace --- SLKCFLAGS="-O2 -march=i386 -mtune=i686" --- with --- SLKCFLAGS="-O2 -march=i386 -mcpu=i686". Only "mtune" to "mcpu" in the wxGTK Slackbuild from Slackbuild.org.

I don't know if it else breaks the packages or stops compiling.
 
Old 10-21-2007, 12:04 PM   #4
John Velman
Member
 
Registered: Jan 2004
Location: California
Distribution: Slackware 10.2
Posts: 33

Original Poster
Rep: Reputation: 15
Thanks.


This is getting to be too much tinkering for me. I have a real simple app, I want
to work on both Linux and imac os_x.

Think I'll go back to TKInter.

Best,

John V.
 
  


Reply



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
Unable to install Virtual Machine In Rhel5 with Virt-manager with CD-Rom Source prasun_mitra Linux - Enterprise 0 08-30-2007 03:03 AM
wxPython foolproof build from source script SittingInFrontOfPC Linux - Software 6 08-26-2006 10:45 PM
Unable to install wine from source krishvij Linux - Newbie 7 03-15-2005 10:14 AM
Fresh Suse 9.1 trying to install VMWare 4.5.1 - Unable to copy the source file DeathCab for 2D Linux - Software 2 10-14-2004 06:24 PM
Unable to install RPM source saravanan1979 Linux - Software 1 06-19-2002 09:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:14 AM.

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
Open Source Consulting | Domain Registration