installing on fedora 14

I was trying to install on Fedora 14 and was not successful. First I
tried "yum install wxPython", the install seemed successful but I
couldn't do "import wx". Next I tried to build from source and I did
"configure; make, make install" and then following other install mails
I've seen, check that /usr/local/lib was in /etc/ld.so.conf and did an
ldconfig, but still no luck. When I do an "import wx", I get:
ImportError: No module named wx

Please be patient as I'm not an expert at this area in linux, I
realize I must have missed something simple.

I was trying to install on Fedora 14 and was not successful.

I haven't used Fedora since 6 or 7 so all I can do is guess.

First I
tried "yum install wxPython", the install seemed successful but I
couldn't do "import wx".

Take a look at the packages that were installed. There is a rpm command you can use to see what files were installed for each package. This will help you be sure the install was successful, and will also help with the investigation of the problem.

  Next I tried to build from source and I did

"configure; make, make install" and then following other install mails
I've seen, check that /usr/local/lib was in /etc/ld.so.conf and did an
ldconfig, but still no luck. When I do an "import wx", I get:
ImportError: No module named wx

That will build and install the wxWidgets GTK port, but not necessarily wxPython (depending on what was in the "other install mails" you followed.) If you're building and installing a 2.8 release then you should follow this: http://wxpython.org/BUILD-2.8.html or if you're doing 2.9 then follow this: Phoenix/README.rst at master · wxWidgets/Phoenix · GitHub

But before you do that you should check if you have more than one Python installed. If you're running a different Python than what the packages were built for then their site-packages will be in different locations and so the wxPython installed from yum would not be seen by that Python. So look at the paths of the files that were installed and compare that to the paths on your Python's sys.path. That may give you the clues needed to figure out why the RPMs didn't work for you.

···

On 3/20/12 10:07 PM, wxturtle@yahoo.com wrote:

--
Robin Dunn
Software Craftsman

I'm running wxPython on Fedora 14. As Robin say, check your python
version ... wxPython doesn't work with Python 3 so, if you default to
P3, you won't be able to find wx ...

If that doesn't help, you need to find out where the package installed
wxPython, the command:
find /usr/lib/python* -name wxPython\*

should tell you that (assuming the install was reasonably sane). I
ended up with three files found:
/usr/lib/python2.7/site-packages/wxPython_common-2.8.12.0-py2.7.egg-
info
/usr/lib/python2.7/site-packages/wx-2.8-gtk2-unicode/wxPython
/usr/lib/python2.7/site-packages/wx-2.8-gtk2-unicode/wxPython-2.8.12.0-
py2.7.egg-info

The important one being the one without the 'egg-info' extension.
This shows that I need to be running python2.7 ... which I am. As
expected wx.VERSION has:
(2, 8, 12, 0, '')

Hmmmm. I wonder if the statement about wx & P3 is still correct, I
should check again!

++dean

···

On Mar 21, 1:04 pm, Robin Dunn <ro...@alldunn.com> wrote:

On 3/20/12 10:07 PM, wxtur...@yahoo.com wrote:

> I was trying to install on Fedora 14 and was not successful.

I haven't used Fedora since 6 or 7 so all I can do is guess.

> First I
> tried "yum install wxPython", the install seemed successful but I
> couldn't do "import wx".

Take a look at the packages that were installed. There is a rpm command
you can use to see what files were installed for each package. This
will help you be sure the install was successful, and will also help
with the investigation of the problem.

Next I tried to build from source and I did

> "configure; make, make install" and then following other install mails
> I've seen, check that /usr/local/lib was in /etc/ld.so.conf and did an
> ldconfig, but still no luck. When I do an "import wx", I get:
> ImportError: No module named wx

That will build and install the wxWidgets GTK port, but not necessarily
wxPython (depending on what was in the "other install mails" you
followed.) If you're building and installing a 2.8 release then you
should follow this:http://wxpython.org/BUILD-2.8.htmlor if you're
doing 2.9 then follow this:Phoenix/README.rst at master · wxWidgets/Phoenix · GitHub

But before you do that you should check if you have more than one Python
installed. If you're running a different Python than what the packages
were built for then their site-packages will be in different locations
and so the wxPython installed from yum would not be seen by that Python.
So look at the paths of the files that were installed and compare that
to the paths on your Python's sys.path. That may give you the clues
needed to figure out why the RPMs didn't work for you.

--
Robin Dunn
Software Craftsmanhttp://wxPython.org

The command is 'rpm -ql wxPython'

I tested installing wxPython in Fedora 14 (the easy way; i.e. 'sudo yum
install wxPython') and it worked perfectly. The I ran a Python shell and
did 'import wx'. No problems. So it looks to me as though the issue is
multiple Python versions, as Robin suggests.

···

On Wed, 21 Mar 2012 10:04:55 -0700, Robin Dunn wrote:

On 3/20/12 10:07 PM, wxturtle@yahoo.com wrote:

I was trying to install on Fedora 14 and was not successful.

I haven't used Fedora since 6 or 7 so all I can do is guess.

First I tried "yum install wxPython", the install seemed successful but
I couldn't do "import wx".

Take a look at the packages that were installed. There is a rpm command
you can use to see what files were installed for each package. This
will help you be sure the install was successful, and will also help
with the investigation of the problem.

  Next I tried to build from source and I did

"configure; make, make install" and then following other install mails
I've seen, check that /usr/local/lib was in /etc/ld.so.conf and did an
ldconfig, but still no luck. When I do an "import wx", I get:
ImportError: No module named wx

That will build and install the wxWidgets GTK port, but not necessarily
wxPython (depending on what was in the "other install mails" you
followed.) If you're building and installing a 2.8 release then you
should follow this: http://wxpython.org/BUILD-2.8.html or if you're
doing 2.9 then follow this: Phoenix/README.rst at master · wxWidgets/Phoenix · GitHub

But before you do that you should check if you have more than one Python
installed. If you're running a different Python than what the packages
were built for then their site-packages will be in different locations
and so the wxPython installed from yum would not be seen by that Python.
  So look at the paths of the files that were installed and compare that
to the paths on your Python's sys.path. That may give you the clues
needed to figure out why the RPMs didn't work for you.

I do think you are correct about multiple python installs. I would
assume that fedora installs python by default and I, out of long term
habit, always install from source so yeah, must be it. I'll see if I
can straighten it out this weekend, thanks for a suggestion where to
look.

You might need sudo yum install wxPython, (sorry not currently using
Fedora).

···

On 28/12/12 10:26, kunal singh wrote:

    just type:



    yum -y install wxPython



  On Wednesday, 21 March 2012 10:37:48 UTC+5:30, wrote:

– To unsubscribe, send email to
or visit


Steve Gadget Barnes

wxtu...@yahoo.com

    I was

trying to install on Fedora 14 and was not successful. First I

    tried "yum install wxPython", the install seemed successful but

I

    couldn't do "import wx".  Next I tried to build from source and

I did

    "configure; make, make install" and then following other install

mails

    I've seen, check that /usr/local/lib was in /etc/ld.so.conf and

did an

    ldconfig, but still no luck.  When I do an "import wx", I get:


    ImportError: No module named wx




    Please be patient as I'm not an expert at this area in linux, I


    realize I must have missed something simple.

wxPython-users+unsubscribe@googlegroups.com
http://groups.google.com/group/wxPython-users?hl=en

That's correct, but OP should be reminded that Fedora 14 was EOL over a
year ago.

the current version is 17 (almost 18).

···

On Fri, 28 Dec 2012 18:27:56 +0000, Steve Barnes wrote:

You might need sudo yum install wxPython, (sorry not currently using
Fedora).