Python upgrade

View: New views
8 Messages — Rating Filter:   Alert me  

Python upgrade

by stormcloud-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Recently I upgraded the version of Python on my machine, and since then Meld has refused to run. - I keep getting the following error:

  File "/usr/share/meld/meld", line 78, in <module>
     import gtk
  ImportError: No module Named gtk

I'd like to be able to point meld back to the older version of python (which is still on my machine).

Could somebody give me some pointers.

Thanks.

_______________________________________________
meld-list mailing list
meld-list@...
http://mail.gnome.org/mailman/listinfo/meld-list

Re: Python upgrade

by stormcloud-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

One other question,

I'm receiving meld meld messages to this e-mail address, but when I come to post I get a message that says:

Your mail to 'meld-list' with the subject

    Python upgrade

Is being held until the list moderator can review it for approval.

The reason it is being held:

    Post by non-member to a members-only list

Either the message will get posted to the list, or you will receive notification of the moderator's decision.  If you would like to cancel this posting, please visit the following URL:

Why would that be?

Thanks



2009/7/29 stormcloud <email.forward.me@...>
Hi,

Recently I upgraded the version of Python on my machine, and since then Meld has refused to run. - I keep getting the following error:

  File "/usr/share/meld/meld", line 78, in <module>
     import gtk
  ImportError: No module Named gtk

I'd like to be able to point meld back to the older version of python (which is still on my machine).

Could somebody give me some pointers.

Thanks.


_______________________________________________
meld-list mailing list
meld-list@...
http://mail.gnome.org/mailman/listinfo/meld-list

Re: Python upgrade

by Vincent Legoll :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Have you tried putting a directory containing a symlink
to the right python version you want at the front of your
PATH

for example:

cd
mkdir -p bin
cd bin
ln -s /usr/bin/python2.5 python
export PATH="${HOME}/bin:${PATH}"
meld

--
Vincent Legoll
_______________________________________________
meld-list mailing list
meld-list@...
http://mail.gnome.org/mailman/listinfo/meld-list

Re: Python upgrade

by stormcloud-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I tried that that, but it didn't help. i was wondering if there was a python specific path defined somewhere that tells it where to find the libraries

Thanks for your help.



2009/7/29 Vincent Legoll <vincent.legoll@...>
Have you tried putting a directory containing a symlink
to the right python version you want at the front of your
PATH

for example:

cd
mkdir -p bin
cd bin
ln -s /usr/bin/python2.5 python
export PATH="${HOME}/bin:${PATH}"
meld

--
Vincent Legoll


_______________________________________________
meld-list mailing list
meld-list@...
http://mail.gnome.org/mailman/listinfo/meld-list

Re: Python upgrade

by Vincent Legoll :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Jul 29, 2009 at 2:50 PM,
stormcloud<email.forward.me@...> wrote:
> I tried that that, but it didn't help. i was wondering if there was a python
> specific path defined somewhere that tells it where to find the libraries

maybe just launch:
/usr/bin/python2.5 /usr/bin/meld

--
Vincent Legoll
_______________________________________________
meld-list mailing list
meld-list@...
http://mail.gnome.org/mailman/listinfo/meld-list

Re: Python upgrade

by Daniel Macks :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

stormcloud <email.forward.me@...> said:

> --===============2077106771==
> Content-Type: multipart/alternative; boundary=001485f724f0a771ae046fd35ef9
>
> --001485f724f0a771ae046fd35ef9
> Content-Type: text/plain; charset=ISO-8859-1
> Content-Transfer-Encoding: 7bit
>
> Hi,
>
> Recently I upgraded the version of Python on my machine, and since then Meld
> has refused to run. - I keep getting the following error:
>
>   File "/usr/share/meld/meld", line 78, in <module>
>      import gtk
>   ImportError: No module Named gtk
>
> I'd like to be able to point meld back to the older version of python (which
> is still on my machine).
>
> Could somebody give me some pointers.

Upgrade your python gtk modules to use the new python? By default, I
think python modules go in a subdir specific for the python version
(python2.5 vs python2.6), so a python only finds the ones designed for
*it* not for others.

Check the first line of the meld script: it probably specifies which
python interp to use, and you can edit it to point to any specific one
you like. Alternately, you can use the PYTHON= env variable (again
specifying a pathname to a specific python interp) variable during
make and make-install to set that first line of the script.

dan

--
Daniel Macks
dmacks@...
http://www.netspace.org/~dmacks


_______________________________________________
meld-list mailing list
meld-list@...
http://mail.gnome.org/mailman/listinfo/meld-list

Re: Python upgrade

by Lucian Adrian Grijincu-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Jul 29, 2009 at 3:50 PM,
stormcloud<email.forward.me@...> wrote:
> I tried that that, but it didn't help. i was wondering if there was a python
> specific path defined somewhere that tells it where to find the libraries

There is PYTHONPATH.
See http://docs.python.org/tutorial/modules.html

--
 .
..: Lucian
_______________________________________________
meld-list mailing list
meld-list@...
http://mail.gnome.org/mailman/listinfo/meld-list

Re: Python upgrade

by stormcloud-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Daniel, Lucian,

Thanks for the information it's much appreciated.

Vincent solved the immediate problem of getting meld to run. As you can probably tell I'm not an expert on python (I dabble but nothing more), so all knowledge is welcome.

Thanks again.

2009/7/31 Lucian Adrian Grijincu <lucian.grijincu@...>
On Wed, Jul 29, 2009 at 3:50 PM,
stormcloud<email.forward.me@...> wrote:
> I tried that that, but it didn't help. i was wondering if there was a python
> specific path defined somewhere that tells it where to find the libraries

There is PYTHONPATH.
See http://docs.python.org/tutorial/modules.html

--
 .
..: Lucian


_______________________________________________
meld-list mailing list
meld-list@...
http://mail.gnome.org/mailman/listinfo/meld-list