bill wrote:
The module will probably still work, even if it is the wrong version, but python is warning you just in case. The script should continue running after the warning I think, do you see any other errors after that?
Hi All,
I have both Fedora Core 1 and Fedora Core 2 installed (same PC - sep Hard Drives).
I have installed and Red-Carpet package manager on both.
It works fine on Fedora 1 ( after all, Red-Carpet rpms are available from Ximian for Fedora Core 1), but on Fedora 2 I get an error message when trying to run Red-Carpet (installed Fedora 1 rpms - none available for Fedora 2):-
/usr/lib/red-carpet/red_extra/_init_.py:2:RuntimeWarning: Python C API version mismatch for module xxx_red-extra: This Python has API version 1012, module xxx_red-extra has version 1011 from xxx_red-extra import*
Not being a programmer in any shape or form, I'm guessing that the Red-Carpet extras pkg is trying to import a python module (C API) from an earlier version of Python (FC2 has python 2.3.3-6).Nope, that won't fool it =) Can you get a more current module to match your python version?
I therfore assume that I either need to:-
1) create a symlink to point the old module (1011) to the current module (1012), or
2) edit the appropriate red-carpet pkg ( I believe that they are all python scripts) to change the "import module" request.
The line in question is just this bit:
from xxx_red-extra import *
which tells python to look in various places for a module called xxx_red-extra, most usually in it's 'site-packages' dir. The problem is it can only find the 1011 version.
What you might be able to do is have an older version of python run the scripts, that way the module might match. Something like changing /usr/env/python to link to python2.2 instead of python2.3 would probably do it.
You can see what version python you have on either system by just running 'python' in a shell.
Felix
-- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
