Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

180 views
Skip to first unread message

Calvin Spealman

unread,
Feb 28, 2005, 7:11:42 PM2/28/05
to pytho...@python.org
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.
--

0 new messages