Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unable to detect undefined names

Status
Not open for further replies.

rj771972

Programmer
May 17, 2013
10
0
1
US
Hello,
I have this simple code
======== code starts ================
import sys
from magot import *
B=MILS2MM
print(B)
======== code ends ================
Where magot.py is the following
======== magot.py starts ================
import math as math
def sind(x):
return math.sin(x * math.pi/180.0)
def cosd(x):
return math.cos(x * math.pi/180.0)
MM2MILS = 1000.0 / 25.4 # mm to mil conversion factor
======== magot.py ends ================

I get the following error message on the "from magot import *" line: "unable to detect undefined names"
I am using Spyder on Windows 7 64 bit

Please advise

Thank you

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top