[SOLVED] Module not found on first launch

5 thoughts on “[SOLVED] Module not found on first launch

  1. Our 2.7 devices seems to have problems starting the specified script on the first launch:

     

    at#execscr

    OK

    Initialize

    Python 2.7.2 (default, OCT 13 2011, 17:11:00) [C] on UL865-EUR

    import SER # builtin

    import MDM # builtin

    Traceback (most recent call last):

      File "main.py", line 17, in

    ImportError: No module named EInterface

    # clear __builtin__._

     

    If I launch the script again it starts as intended:

    at#execscr

    OK

    Initialize

    Python 2.7.2 (default, OCT 13 2011, 17:11:00) [C] on UL865-EUR

    import SER # builtin

    import MDM # builtin

    # trying /sys/EInterface.py

    # trying /sys/EInterface.pyo

    import EInterface # precompiled from /sys/EInterface.pyo 

     

    This happens every time I power cycle the device so it should not be a cache timing issue (right?). The files were uploaded as pre-compiled .pyo files about 1h ago. 

  2. This has now been solved. Instead of uploading .pyo files compiled for 2.7.6 we now upload the raw py file and let the modem compile. This was a painfully slow procedure on GL865 but takes a couple of seconds on the UL865.