my question here
I am using a python program from a link but am getting errors on simple lines of code (below). Get errors on the first, second lines i.e.
import serial # ImportError: "No module named serial"
from pynmea import nmea #ImportError: "No module named pynmea"
So, my question is - how to import these 2 programs i.e. from a library?
I am using these in Enthought Canopy Environment.
I am using a python program from a link but am getting errors on simple lines of code (below). Get errors on the first, second lines i.e.
import serial # ImportError: "No module named serial"
from pynmea import nmea #ImportError: "No module named pynmea"
So, my question is - how to import these 2 programs i.e. from a library?
I am using these in Enthought Canopy Environment.
my code here: import serial from pynmea import nmea import string import webbrowser #####Global Variables###################################### ser = 0 #####FUNCTIONS############################################# def scan(): #scan for available ports. return a list of tuples (num, name) available = [] for i in range(256): try: s = serial.Serial(i) available.append( (i, s.name)) s.close() # explicit close 'cause of delayed GC in java except serial.SerialException: pass return available