471,354 Members | 1,629 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

modules not found?

Thekid
145 100+
I keep getting an error message that says these modules aren't found:
Expand|Select|Wrap|Line Numbers
  1. import irc_parse
  2. import irc_config
  3.  
I have them but don't understand why I'm getting the error.
Jul 25 '07 #1
1 1268
bartonc
6,596 Expert 4TB
I keep getting an error message that says these modules aren't found:
Expand|Select|Wrap|Line Numbers
  1. import irc_parse
  2. import irc_config
  3.  
I have them but don't understand why I'm getting the error.
Python will find modules that are in the currently working directory or in your site-packages directory automatically. If those module are in one of those directories, they may be part of a package. The syntax for importing from a package called irc would be:
Expand|Select|Wrap|Line Numbers
  1. import irc.irc_parse as irc_parse
  2. irc_parse.functionorclass(vars)
hope that helps.
Jul 25 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Nick Coghlan | last post: by
15 posts views Thread by Nick Coghlan | last post: by
51 posts views Thread by Reinhold Birkenfeld | last post: by
9 posts views Thread by Emmanuel Charruau | last post: by
3 posts views Thread by Mohamed Yousef | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.