Quantcast

Maximum PC

It is currently Sun Dec 21, 2014 11:26 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: python import error
PostPosted: Thu Oct 01, 2009 7:42 am 
8086
8086

Joined: Wed Feb 25, 2009 8:05 am
Posts: 1
Im trying to learn python(2.5.4) and am just beginning programming. Ive been following along with some newb material but when doing certain exercises involving importing modules I get this error in the IDLE :

Traceback (most recent call last):
File "<pyshell#46>", line 1, in <module>
import test_temp
File "C:\Python25\test_temp.py", line 1
Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] on win32
^
SyntaxError: invalid syntax

I can import other items that come with python such as math and the nose modules, but anything I make isnt going through, where could I be messing up? Its looking like Im not doing it right but cant figure out what exactly. I have the modules Im making saved in the default directory.


Top
  Profile  
 
 Post subject:
PostPosted: Sat Oct 03, 2009 10:49 am 
Million Club - 5 Plus*
Million Club - 5 Plus*
User avatar

Joined: Sun Sep 12, 2004 6:37 pm
Posts: 4745
Location: In the monkey's litterbox
Can you post the contents of test_temp.py in code tags please?


Top
  Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

© 2014 Future US, Inc. All rights reserved.