hari krishna wrote:
This is my program example.py .... when i trying to execute this code am getting error as shown below.... can u please help anything for proceeding further....
my python version is 2.4 and ctype that i installed is pygame-ctypes-0.09...
#!/usr/bin/env python
import drmaa
def main(): """Create a drmaa session and exit""" s=drmaa.Session() s.initialize() print 'A session was started successfully' s.exit()
if __name__=='__main__': main() ~
[gridmon@g8 DRMAA]$ python example.pyc Traceback (most recent call last): File "example.py", line 3, in ? import drmaa ImportError: No module named drmaa
Hi, Are you planning to use this as a tool in the context of Galaxy? You shouldn't need to have tools interact with DRMAA themselves. More information on what you're trying to do would be helpful here. To use Galaxy's drmaa egg, you'll need to do the following: from galaxy import eggs eggs.require( 'drmaa' ) import drmaa galaxy_dist/lib/ will need to be on your $PYTHONPATH or added to sys.path before this will succeed, however. --nate
[gridmon@g8 DRMAA]$ cd drmaa-0.4b3 [gridmon@g8 drmaa-0.4b3]$ python example.pyc Traceback (most recent call last): File "example.py", line 3, in ? import drmaa File "/home/gridmon/DRMAA/drmaa-0.4b3/drmaa/__init__.py", line 30, in ? import ctypes as _ct ImportError: No module named ctypes
-- Thanks & Regards, Hari Krishna .M
_______________________________________________ galaxy-dev mailing list galaxy-dev@lists.bx.psu.edu http://lists.bx.psu.edu/listinfo/galaxy-dev