Hi,
I have post this bug for many time ago to the maintainer, but the change does
not appear in pymol v0.99-rc6 and earlier. Here is a part of the old code
(import urllib2, zlib) to replace:
***************************************************
- pdbFile = urllib2.urlopen('http://www.rcsb.org/pdb/cgi/export.cgi/' +
- pdbCode + '.pdb.gz?format=PDB&pdbId=' +
- pdbCode + '&compression=gz')
- cmd.read_pdbstr(zlib.decompress(pdbFile.read()[22:], -zlib.MAX_WBITS),
pdbCode)
***************************************************
with this new code (import urllib2, StringIO, gzip) (works fine):
***************************************************
+ pdbFile = urllib2.urlopen('http://www.rcsb.org/pdb/files/' +
+ self.pdbCode + '.pdb.gz')
+ pdbStream = StringIO.StringIO( pdbFile.read() )
+ pdbData = gzip.GzipFile(fileobj=pdbStream)
+ cmd.read_pdbstr(pdbData.read(), self.pdbCode)
***************************************************
If you have problem to deal with such piece of code, I can send you the
complete plugin.
Cheers,
Jerome Pansanel
Le mercredi 18 octobre 2006 16:59, surendra negi a écrit :
> Hi,
> In pymol, PDB loader service is no longer working. My
>
> self downloader script is also not working! They
> changed
> the file location. There is no more export.cgi in pdb
> web site.
> sn
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> PyMOL-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pymol-users