471,334 Members | 1,458 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

importing modules

I could not import modules like os,glob and other standard modules in python..
The only module i can import is sys...

import site' failed; use -v for traceback
is the error code i get if i open the editor...


>>>import os
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named os\
>>>


what should i include do to get my modules import?
Sep 19 '07 #1
4 1268
aruni
4
check weather u installed it correctly
Sep 19 '07 #2
bartonc
6,596 Expert 4TB
I could not import modules like os,glob and other standard modules in python..
The only module i can import is sys...

import site' failed; use -v for traceback
is the error code i get if i open the editor...


>>>import os
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named os\
>>>


what should i include do to get my modules import?
Your installation does seem a bit odd... "use -v for traceback": The verbose option is normally set in off the shelf versions. So:
Did you compile this sub-version?
What's your OS, etc.
If you didn't do the compile, where'd you get the version of python and what is that version?
Etc, etc???
Sep 19 '07 #3
Your installation does seem a bit odd... "use -v for traceback": The verbose option is normally set in off the shelf versions. So:
Did you compile this sub-version?
What's your OS, etc.
If you didn't do the compile, where'd you get the version of python and what is that version?
Etc, etc???

My python version is 2.5.1
My OS is Windows XP
How to set the verbose option to ON?
Sep 20 '07 #4
bartonc
6,596 Expert 4TB
My python version is 2.5.1
My OS is Windows XP
How to set the verbose option to ON?
This indicates that you have a bad installation. You must re-install.
Be sure to include all optional packages.
Use the
Python 2.5.1 Windows installer
(Windows binary -- does not include source)
from the Download Standard Python Software page.

That should solve all of your problems at one time.
Sep 20 '07 #5

Post your reply

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

Similar topics

2 posts views Thread by Vsevolod (Simon) Ilyushchenko | last post: by
12 posts views Thread by qwweeeit | last post: by
reply views Thread by Brandon Metcalf | last post: by
6 posts views Thread by Kamilche | last post: by
6 posts views Thread by Walter Brunswick | last post: by
reply views Thread by Jure Vrscaj | last post: by
14 posts views Thread by T. Crane | last post: by
reply views Thread by Martin P. Hellwig | last post: by
reply views Thread by Marcin Krol | last post: by
7 posts views Thread by Hussein B | last post: by
reply views Thread by rosydwin | 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.