472,121 Members | 1,517 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

inspite of proper package structure, no module named xyz error.

hello all,
can some one suggest me the best solution for a package?
I have a package folder called idm and there are the following files in there.
__init__.py which is right now empty.
mainwindow.py which has a single class called MainWindow which is an
MDI Parent frame from wxpython.
student.py which is a child frame which gets called from the main menu.
exam.py, another child frame.
now when I try to run mainwindow.py file with the "import
idm"statement, I get the following error.
no module named idm.
what could be the problem?
I have imported all the necessary modules in mainwindow.
kindly help.
Jul 12 '07 #1
0 1064

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Ian Sparks | last post: by
reply views Thread by Mark English | last post: by
4 posts views Thread by flupke | last post: by
11 posts views Thread by fortepianissimo | last post: by
4 posts views Thread by boris | last post: by
1 post views Thread by Mike Wyatt | 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.