Hi Takanori,

Thanks for joining the conversation.  I have been talking with Albert
(off-list) and as you wrote the problem seems to be related with the way
PyMOL save the session in the newer versions.

To export a pse file to an older PyMOl version you should do:

set pse_export_version, 1.72
save your_session.pse

where 1.72 is the PyMOL version 1.7.2 (you can set to other versions as
well)

Cheers,
Osvaldo.

On Sun, Oct 18, 2015 at 9:48 AM, Takanori Nakane <
takanori.nak...@bs.s.u-tokyo.ac.jp> wrote:

Hi,
>
> It looks like the structure of PyMOL session (what
> we got from cmd.get_session) has changed in recent upgrades.
> I have to rewrite the program.
>
> Does anyone know if there is a setting to export in the 'old' format?
>
> Best regards,
>
> Takanori Nakane
>
> On 2015/10/18 1:47, Osvaldo Martin wrote:
> > That really weird! the script is expecting a list but is getting an
> > integer. Could you send me the "my" molecule or a pse file with that
> > molecule? or at least other molecule that give you the same error?
> >
> > Cheers,
> > Osvaldo.
> >
> >
> >
> > On Sat, Oct 17, 2015 at 5:49 PM, Albert <mailmd2...@gmail.com> wrote:
> >
> >> Thanks a lot for further advice.
> >>
> >> Here is what I got:
> >>
> >> PyMOL> run exportToWeb.py
> >> PyMOL>exportToWeb my
> >> Traceback (most recent call last):
> >>    File "/home/albert/install/pymol-1.7.6/modules/pymol/parser.py", line
> >> 256, in parse
> >>      self.result=apply(layer.kw[0],layer.args,layer.kw_args)
> >>    File "exportToWeb.py", line 118, in dump_rep
> >>      ret += parseObjMol(obj)
> >>    File "exportToWeb.py", line 50, in parseObjMol
> >>      if (rep[5] == 1):
> >> TypeError: 'int' object has no attribute '__getitem__'
> >>
> >>
> >> If possible, would you please give me some suggestions?
> >>
> >> Thanks a lot
> >>
> >> Albert
> >>
> >>
> >>
> >>
> >> On 10/17/2015 04:36 PM, Osvaldo Martin wrote:
> >>
> >> Hi Albert,
> >>
> >> I do the following steps and I get a .html file as expected.
> >>
> >>     1. I download and unpack this
> >>     <
> http://sourceforge.jp/projects/webglmol/downloads/54536/pymol-exporter-0.01.zip/
> >
> >>     file. The script there seems to be similar to the one you attached.
> >>     2. Lauch PyMOL and do some stuff
> >>     3. cd to the folder creating during unpacking
> >>     4. run the script by doing
> >>
> >>      run exportToWeb.py
> >>
> >>     5. then run the commnand
> >>
> >>      exportToWeb PymolObjectName
> >>
> >>     where PymolObjectName is the name of the pymol object you want to
> >>     export
> >>     6. check the unpacked folder for a file with the name
> >>     PymolObjectName.html
> >>
> >> Could you try to follow these steps and tell us what you get?
> >>
> >> Cheers,
> >>
> >> Osvaldo.
> >>
> >>
> >>
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> >
> >
> >
> > _______________________________________________
> > PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
> > Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
> > Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net
> >
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
> Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
> Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net
>
​
------------------------------------------------------------------------------
_______________________________________________
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Reply via email to