Menu

PyDev import error (struct) with Python 2.4.3

xl600
2011-03-18
2013-03-15
  • xl600

    xl600 - 2011-03-18

    I'm stymied here.

    PyDev 1.6.4
    RHEL5.3
    Python 2.4.3
    Eclipse 3.6

    PyDev seems unable to resolve the lib-dynload module for the struck module (I think it's struckmodule.so).  This works perfectly from the command line, yet even with all the python paths setup in PyDev, it still can not locate struct.  It's not included in forced-builtins and adding it manually there has no effect (Other than to keep PyDev from complaining about it being missing).

    What might be happening?

    Thanks,

    Robert

     
  • xl600

    xl600 - 2011-03-18

    Make that the "struct" module… I'm a lousy typist!

     
  • xl600

    xl600 - 2011-03-18

    Now this is odd….

    Comparing the PYTHONPATHs showed that the command line path and the PyDev paths were identical.  So, I recreated the interpreter using the Auto Config option.  Now it seems to be working (Import error went away with no adding to forced builtins).  Moving back to a manual config, I can't get the problem to resurface.  Did I mention I hate these kinds of problems?

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2011-03-20

    Could be some cache/timing issue in PyDev (although I'm not really sure about it without being able to reproduce it here).

    Cheers,

    Fabio