[omniORB] Bad Magic Number error

Duncan Grisby duncan@grisby.org
Mon Feb 24 20:01:02 2003


On Thursday 20 February, "Vrajesh N. Patel" wrote:

>   I'm trying to compile OmniORB 4.0.0 using GCC 3.2.1 and Python 2.2.2 on
> SunOS 5.6.  The Python 2.2.2 directory is not in /usr/local, but in another
> location.  I specified that in the configure script.  I'm not sure why I
> can't get rid of this error:

OK...

> ImportError: Bad magic number in
> /users/mtp2/tools/omni/omniORB-4.0.0/lib/python/compileall.pyc

[...]
> The PYTHONPATH is set to /users/mtp2/tools/omni/omniORB-4.0.0/lib/python
> Am I missing any variables?  flags?  Thanks for your help.

You should not need to set PYTHONPATH at all. That might be the cause
of the problem. It looks like perhaps you have also installed
omnipython for Solaris, which is version 1.5.2. So, you're running
Python 2.2.2 against bytecode files compiled with 1.5.2. Unset
PYTHONPATH and you'll probably be ok.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan@grisby.org     --
   -- http://www.grisby.org --