ZipImportError: can't find module
John Gordon
gordon at panix.com
Tue May 24 14:27:55 EDT 2016
In <1e511b73-e984-459c-9311-778888bcd6cc at googlegroups.com> loial <jldunn2000 at gmail.com> writes:
> What has been working for years suddenly has an error :
> zipimport.ZipImportError: can't find module 'mymodule'
How is the shell script executed? Is it run interactively, or from a cron
job?
Are the permissions on the zipfile correct, and all parent directories?
How, specifically, are you importing the module? Are you doing something
like this:
zipfile = zipimport.zipimporter('file.zip')
zipfile.load_module('mymodule')
--
John Gordon A is for Amy, who fell down the stairs
gordon at panix.com B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"
More information about the Python-list
mailing list