I know there are tons of posts about the `AttributeError: NoneType...` but they don't seem to apply. My code has been working for years, and this week i am getting this error. Also, I am not an expert coder.

I checked the Python Path, and it seems normal:

```
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Python27;C:\Python27\Scripts

```

When i try to edit the code in Komodo IDE, the autocomplete works fine, e.g., `self.ser.write(string)` has the write in the suggestion menu. 

It is as if it can't find the library. Is that right? How can that be? 

I am using XP. 

Thanks!