Importing from filesystem path a 'frozen sub-module' error

Discussion in 'Python' started by Calvin Spealman, Mar 1, 2005.

  1. I've been working on a small test runner script, to accumulate my test
    scripts (all python files in the 'test' sub-directories of my source tree).
    Things were going well, but I'm still having trouble loading the modules,
    once I have a path to the python source file. This is the error I am
    getting:

    mod_info = imp.find_module(module_name, module_path)
    ImportError: No frozen submodule named PyInvolgo.test.test_RepoBase

    I know 100% sure the module exists (I can enter a python shell and import it
    directly, no problem), so that isn't the problem. I don't know what a
    'frozen sub-module' is, tho, and I haven't been able to find anything about
    them from google searches and documentation on python.org.

    At first, I thought maybe it was because the test directory had no
    __init__.py (it isn't a package, so I didn't make one), but added one made
    no difference.
    --
    Calvin Spealman, Mar 1, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. plb
    Replies:
    2
    Views:
    318
  2. Ben
    Replies:
    2
    Views:
    853
  3. est
    Replies:
    1
    Views:
    532
  4. Lawrence D'Oliveiro

    Death To Sub-Sub-Sub-Directories!

    Lawrence D'Oliveiro, May 5, 2011, in forum: Java
    Replies:
    92
    Views:
    1,934
    Lawrence D'Oliveiro
    May 20, 2011
  5. LC Geldenhuys
    Replies:
    5
    Views:
    244
    Robert Klemme
    Feb 18, 2004
Loading...

Share This Page