Attribute error using python scientific module on Windows
<p>I get the following error when our program is run on Windows XP using ActivePerl 2.6 (although it runs fine on linux). Any ideas of what is going on? Is this a bug in the module or a problem with our code?</p>

<p>Error log:</p>

<pre><code>      File "C:\Python26\lib\site-packages\Scientific\IO\PDB.py", line 1163, in __ini
    t__
        self.parseFile(PDBFile(file_or_filename))
      File "C:\Python26\lib\site-packages\Scientific\IO\PDB.py", line 1371, in parse
    File
        type, data = file.readLine()
     File "C:\Python26\lib\site-packages\Scientific\IO\PDB.py", line 200, in readLi
   ne
        line = self.file.readline()
    AttributeError: 'unicode' object has no attribute 'readline'
    Exception AttributeError: "'unicode' object has no attribute 'close'" in &lt;bound
    method PDBFile.__del__ of &lt;Scientific.IO.PDB.PDBFile instance at 0x00FD0440&gt;&gt; ig
    nored
</code></pre>

<p>UPDATE: Following Joe's suggestion below, I get the following error instead:</p>

<pre><code>Traceback (most recent call last):
  File "NewParseV1_00.py", line 47, in &lt;module&gt;
    PromptUser()
  File "NewParseV1_00.py", line 45, in PromptUser
    parseGroupFile(grpfilepath, outputPPYfilepath, sorcePDBfilepath)
  File "NewParseV1_00.py", line 39, in parseGroupFile
    return GeneratePPY(LL,GRPNAME,SRCPDB,OUTPPY)
  File "NewParseV1_00.py", line 10, in __init__
    self.PDBStruct = Scientific.IO.PDB.Structure(SRCPDB)
  File "C:\Python26\lib\site-packages\Scientific\IO\PDB.py", line 1163, in __ini
t__
    self.parseFile(PDBFile(file_or_filename))
  File "C:\Python26\lib\site-packages\Scientific\IO\PDB.py", line 161, in __init
__
    if isinstance(file_or_filename, basestr):
NameError: global name 'basestr' is not defined
Exception AttributeError: "PDBFile instance has no attribute 'open'" in &lt;bound m
ethod PDBFile.__del__ of &lt;Scientific.IO.PDB.PDBFile instance at 0x00FDB418&gt;&gt; ign
ored
</code></pre>
