Re: [PyMOL] Adding python modules

2007-03-09 Thread DeVill
Have you tried re-setting sys.argv before running setup (aka sys.argv=['setup.py','--build'] ; run setup.py,local )? If I'm understanding the help for the pymol run command correctly, you'd want to use either local or module (so that the global namespace doesn't confuse things). Now that fina

Re: [PyMOL] Adding python modules

2007-03-09 Thread DeVill
Have you tried re-setting sys.argv before running setup (aka sys.argv=['setup.py','--build'] ; run setup.py,local )? If I'm understanding the help for the pymol run command correctly, you'd want to use either local or module (so that the global namespace doesn't confuse things). This may do stra

Re: [PyMOL] Adding python modules

2007-03-09 Thread Peter Adrian Meyer
> I know that as well... what I don't know is how to install it under PyMOL. > If I were using simply python, than that would be no big deal, I did that > a > 1000 times: setup.py --build; setup.py --intall > > Presently I'm using the windows version of PyMol, and installing a > separate > python

Re: [PyMOL] Adding python modules

2007-03-09 Thread DeVill
Also tried it :-) 2007/3/9, Jerome Pansanel : Try to copy MySQLdb into: C:\Program Files\DeLano Scientific\PyMOL\py24\Lib\site-packages\ Jerome Pansanel Le vendredi 9 mars 2007 19:54, DeVill a écrit: > Hi! > > I know that as well... what I don't know is how to install it under PyMOL. > If I w

Re: [PyMOL] Adding python modules

2007-03-09 Thread Jerome Pansanel
Try to copy MySQLdb into: C:\Program Files\DeLano Scientific\PyMOL\py24\Lib\site-packages\ Jerome Pansanel Le vendredi 9 mars 2007 19:54, DeVill a écrit : > Hi! > > I know that as well... what I don't know is how to install it under PyMOL. > If I were using simply python, than that would be no bi

Re: [PyMOL] Adding python modules

2007-03-09 Thread DeVill
Hi! I know that as well... what I don't know is how to install it under PyMOL. If I were using simply python, than that would be no big deal, I did that a 1000 times: setup.py --build; setup.py --intall Presently I'm using the windows version of PyMol, and installing a separate python interprete

Re: [PyMOL] Adding python modules

2007-03-09 Thread Jerome Pansanel
Hi, You can get MySQL python from here: http://sourceforge.net/projects/mysql-python Jerome Le vendredi 9 mars 2007 15:22, DeVill a écrit : > Hi! > > I end up with the same problem. Just like this plugin i tried: > import MySQLdb > > but I get this error message, when starting up pymol: > > Exce

Re: [PyMOL] Adding python modules

2007-03-09 Thread DeVill
Hi! I end up with the same problem. Just like this plugin i tried: import MySQLdb but I get this error message, when starting up pymol: Exception in plugin 'dbsearch' -- Traceback follows... Traceback (most recent call last): File "C:\Program Files\DeLano Scientific\PyMOL/modules\pmg_tk\PMGApp

Re: [PyMOL] Adding python modules

2007-03-09 Thread Jerome Pansanel
Hi, Take a look on this plugin: http://pymol-plugins.sourceforge.net/dbsearch.html Cheers, Jerome Pansanel Le vendredi 9 mars 2007 14:24, DeVill a écrit : > Hi! > > I would like to use direct mysql connection to a database in a plugin. Can > you please tell me if there is a way to add MySQLdb m

[PyMOL] Adding python modules

2007-03-09 Thread DeVill
Hi! I would like to use direct mysql connection to a database in a plugin. Can you please tell me if there is a way to add MySQLdb module to PyMOL? if yes, then how? Bye DeVill