469,299 Members | 2,085 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,299 developers. It's quick & easy.

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 1896

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 zhoujie | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.