Hello I am new to cctbx user world and facing problem with cctbx working. I am having working python code with 3 libraries- Scipy Numpy cctbx I am using Enthought EPD which has python 2.6, scipy and numpy. http://www.enthought.com/products/epd.php All these things are working fine and then I installed cctbx from http://cctbx.sourceforge.net/current_cvs/installation.html#manually-building... (from Windows 2000 and higher) cctbx test cases are also running fine as there are no traceback calls.(test outputs are attached) However when I am running my python code it is giving error at cctbx interface. print "*** Executing cctbx" p2 = Popen(cmmd2, shell=True, bufsize=bufsize, stdin=PIPE, stdout=PIPE, stderr=PIPE) output2 = p2.communicate(input = allout) Here input (allout) is not empty but still output2 is coming empty which causes problems in next processing. It would be really great if you can tell me what problem is exactly and resolution on it. Please help me out in solving this issue.Let me know if you need more details. Hoping for your positive response!! Thanks in advance!!! -Swapnil U. Shinde
Hi Swapnil,
print "*** Executing cctbx"
p2 = Popen(cmmd2, shell=True, bufsize=bufsize, stdin=PIPE, stdout=PIPE, stderr=PIPE) output2 = p2.communicate(input = allout)
Here input (allout) is not empty but still output2 is coming empty which causes problems in next processing.
Could you show the cmnd2 command? Note that you need to use "cctbx.python". This is a thin launcher that updates PYTHONPATH and PATH before starting python. If you use just "python" the cctbx imports will not work. BTW: three days ago I checked in support for efficiently copying cctbx arrays to Numpy arrays, in case you want to go back and forth between cctbx modules and other modules based on Numpy. You need cctbx bundles 2010_11_14_2256 or later for this. Ralf
Hello Sir
Thanks for your reply. Please find below the cmmd2 command :
#############
cmmd2 = "cctbx.python \""
cmddir = FIXDIR(os.getcwd())
print "****MML****: GetUnitCell_2.py"
cmmd2 = cmmd2 + cmddir + "GetUnitCell_2.py\""
##############
After debugging, cmmd2 comes as
cctbx.python "C:/Users/Swapnil/Desktop/Zeolite/11172010/GetUnitCell_2.py"
----------------------
I tried with 2010_11_14_2256 bundle and nothing worked with it.test results are attached.
----------------
Btn I reinstalled cctbx and getting error while running 2nd test case which I never received before. Please let me know reason for this too.(cctbx_2nd_test_case.txt)
Thanks in advance for your time and help!! Waiting for your inputs on it..
Thanks & regards
Swapnil U. Shinde
----- Original Message -----
From: "Ralf W. Grosse-Kunstleve"
Hi Swapnil,
print "*** Executing cctbx"
p2 = Popen(cmmd2, shell=True, bufsize=bufsize,
stdin=PIPE,
stdout=PIPE, stderr=PIPE) output2 = p2.communicate(input = allout)
Here input (allout) is not empty but still output2 is coming empty which causes problems in next processing.
Could you show the cmnd2 command? Note that you need to use "cctbx.python". This is a thin launcher that updates PYTHONPATH and PATH before starting python. If you use just "python" the cctbx imports will not work.
BTW: three days ago I checked in support for efficiently copying cctbx arrays to Numpy arrays, in case you want to go back and forth between cctbx modules and other modules based on Numpy. You need cctbx bundles 2010_11_14_2256 or later for this.
Ralf _______________________________________________ cctbxbb mailing list [email protected] http://phenix-online.org/mailman/listinfo/cctbxbb
participants (2)
-
Ralf W. Grosse-Kunstleve
-
Swapnil U Shinde