I am trying to use connection to a serial device in my DJango app. It's a GSM modem I want to use to send sms's.
If I just import my sms module, everything works fine. Module connects to modem, sets it to text format and then just allows me to send some sms's. But when I add to DJango, the initialisation fails. I use pySerial and although I can use write on Serial object, when I run readlines on it, I get the following: Unhandled exception in thread started by <bound method InitThread.__bootstrap of <InitThread(Thread-1, stopped)>> Traceback (most recent call last): File "/usr/lib/python2.5/threading.py", line 462, in __bootstrap self.__bootstrap_inner() File "/usr/lib/python2.5/threading.py", line 499, in __bootstrap_inner (self.getName(), _format_exc())) File "/usr/lib/python2.5/traceback.py", line 236, in format_exc return ''.join(format_exception(etype, value, tb, limit)) File "/usr/lib/python2.5/traceback.py", line 142, in format_exception list = list + format_tb(tb, limit) File "/usr/lib/python2.5/traceback.py", line 76, in format_tb return format_list(extract_tb(tb, limit)) File "/usr/lib/python2.5/traceback.py", line 101, in extract_tb line = linecache.getline(filename, lineno, f.f_globals) File "/usr/lib/python2.5/linecache.py", line 14, in getline lines = getlines(filename, module_globals) File "/usr/lib/python2.5/linecache.py", line 40, in getlines return updatecache(filename, module_globals) File "/usr/lib/python2.5/linecache.py", line 113, in updatecache for dirname in sys.path: TypeError: 'NoneType' object is not iterable (I use threads to allow asynchronous initialisation and sms sending, since timeout take a while). Do you know of any issues regarding DJango and pySerial? Should I treat in some special way? Any idea why sys.path is None? -- Filip Gruszczyński --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---