Hi Thomas.

Again, GREAT work!
You were right, about order of starting.

I found that I could not have in ~.pymolrc.py
*import sys,os*
*sys.path.append('/home/tlinnet/Software/pymol')*
*os.chdir('/home/tlinnet/pymol/')*

but only this. Or pymol will choke on startup.
*import sys,os*
*sys.path.append('/home/tlinnet/Software/pymol')*

So I have in ~.pymolrc.py
*import sys,os*
*sys.path.append('/home/tlinnet/Software/pymol')*

And i then have in ~.pymolrc
*import os*
*os.chdir('/home/tlinnet/pymol/')*

And in ~.pymolrc_plugins.py
*# AUTOGENERATED FILE*
*try:*
*  import pymolplugins*
*  pymolplugins.preferences["instantsave"] = False*
*  pymolplugins.autoload = {'propka': False}*
*  pymolplugins.set_startup_path(
['/usr/local/lib/python2.7/dist-packages/pmg_tk/startup'] )*
*  pymolplugins.preferences = {'instantsave': True, 'verbose': True}*
*except:*
*  import os*
*  print "Error while loading " + os.path.abspath(__script__)*
*
*
To your questions:
*
PyMOL>print pymol.__path__
['/usr/local/lib/python2.7/dist-packages/pymol']
*
*
*
PyMOL>import pmg_tk
PyMOL>print pmg_tk.__path__
['/usr/local/lib/python2.7/dist-packages/pmg_tk']

PyMOL>print cmd.__name__
pymol.cmd

PyMOL>import sys
PyMOL>print sys.path
['', '/usr/local/lib/python2.7/dist-packages/pymol', '/usr/lib/python2.7',
'/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PIL',
'/usr/lib/python2.7/dist-packages/gst-0.10',
'/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7',
'/home/tlinnet/Software/pymol/svnfreemol/freemol/libpy',
'/home/tlinnet/Software/pymol']

I guess I in someway must have missed to change my paths or so.
So, in somehow the subversion home-build pymol, is using the paths from the
pre-installed librabries.
I used this recipe, when i builded pymol:
http://www.pymolwiki.org/index.php/Linux_Install#Ubuntu.2FMint_compile_and_install_with_MPEG_support

I must have good something wrong.

Troels Emtekær Linnet
Slotsvej 2
4300 Holbæk
Mobil: +45 60210234



2012/1/11 Thomas Holder <[email protected]>

> Hi Troels,
>
> thanks a lot for the feedback.
>
>
>  2) I cannot disable a installed plugin.
>> If i untick "Load on startup", the pymol command says: Plugin settings
>> saved!
>> But when I restart pymol, it still loads the plugin.
>> I do have to say, that I am running the subversion version of pymol
>>
>
> Settings are saved to ~/.pymolrc_plugins.py, this is a script that imports
> pymolplugins. Unfortunately this is loaded before your .pymolrc, where you
> have the sys.path.append() line.
>
> Fix like this: Create a ~/.pymolrc.py and place the sys.path.append() line
> there, it should be loaded before ~/.pymolrc_plugins.py and ~/.pymolrc
>
>
>  3) Location of "Plugin search path"
>> I am running Mint 12, where I have not installed pymol from the Synaptic,
>> but building pymol from the subversion repository.
>> There is some pymol Synaptic files at: 
>> /usr/local/lib/python2.7/dist-**packages/pmg_tk/startup,
>> which is available, even though i did not install pymol through Synaptic.
>> The real location should be: 
>> /home/tlinnet/Software/pymol/**modules/pmg_tk/startup,
>> where the subversion folder is residing.
>> The "pymolplugins" locates the 
>> /usr/local/lib/python2.7/dist-**packages/pmg_tk/startup,
>> which is wrong. And the scripts i download from the git repository is
>> placed here.
>>
>
> Are you sure about that? Can you please copy/paste this to the PyMOL
> command prompt and send me the output?
>
> import pymol
> print pymol.__path__
>
> import pmg_tk
> print pmg_tk.__path__
>
> print cmd.__name__
>
> Thanks,
>
>  Thomas
>
> --
> Thomas Holder
> MPI for Developmental Biology
> Spemannstr. 35
> D-72076 Tübingen
>
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
PyMOL-users mailing list ([email protected])
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/[email protected]

Reply via email to