471,595 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

ImportError: "No Module named xxx"

I created a basic python file and made an attempt to execute it from
the command line, however it gives me a weird error after the python
file has been executed:

Traceback (most recent call last):
File "C:\Python25\lib\runpy.py", line 87, in run_module
raise ImportError("No module named " + mod_name)
ImportError: No module named compile.py
The command I executed was: "python -m compile.py" (compile.py is my
python script)

Can anyone help me figure out why it's doing this?

Jul 6 '07 #1
0 1992

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Sebastian Stelzer | last post: by
2 posts views Thread by Copelandia Cyanescens | last post: by
134 posts views Thread by James A. Donald | last post: by
13 posts views Thread by Paul T. RONG | last post: by
reply views Thread by Mike | last post: by
4 posts views Thread by jiatiejun | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by Anwar ali | 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.