Re: [PyMOL] how to run a python script

2010-07-12 Thread Paul Rigor (uci-ics)
Hi, Your assumptions are correct, as I've copied and tested your code, which works fine from the current working directory where I ran the pymol start script. It's probably a quirk w/ your installation? Otherwise, you can just specify the full path to your script or "cd" into the folder... either

Re: [PyMOL] how to run a python script

2010-07-09 Thread Vivek Ranjan
Thanks for your mail. I did two things: (i) typed the entire path starting from /home/../../draw_cell.py (ii)"cd /home/../../" and then "run draw_cell.py. It still gives me the same error of not finding cctbx. I checked if I am in the correct directory by typing "pwd" and got the correct answer.

Re: [PyMOL] how to run a python script

2010-07-09 Thread Paul Rigor (uci)
Hi, Your assumptions are correct, as I've copied and tested your code, which works fine from the current working directory where I ran the pymol start script. It's probably a quirk w/ your installation? Otherwise, you can just specify the full path to your script or "cd" into the folder... either

Re: [PyMOL] how to run a python script

2010-07-09 Thread Robert Campbell
On Fri, 09 Jul 2010 13:46:57 -0400 Vivek Ranjan wrote: > Hello, > > I am trying to run a simple python script from Pymol and cannot run it: > I saved the above in a file named "axes.py" and put it in the same > directory from where I type "pymol" (on ubuntu linux). Then I type > "run axes.py"

Re: [PyMOL] how to run a python script

2010-07-09 Thread Schubert, Carsten [PRDUS]
want to be. HTH Carsten > -Original Message- > From: Vivek Ranjan [mailto:vran...@gmail.com] > Sent: Friday, July 09, 2010 1:47 PM > To: Pymol > Subject: [PyMOL] how to run a python script > > Hello, > > I am trying to run a simple python script f

[PyMOL] how to run a python script

2010-07-09 Thread Vivek Ranjan
Hello, I am trying to run a simple python script from Pymol and cannot run it: *** # axes.py from pymol.cgo import * from pymol import cmd from pymol.vfont import plain # create the axes object, draw axes with cylinders coloured red, green, #blue for X, Y and Z obj =