python - ImportError: No module named seqfmt -


i running python script groovy via:

process p = runtime.getruntime().exec("python /users/afrieden/projects/hgvs/hgvs/tests/test_gsg_variants.py"); string s = null; bufferedreader stdinput = new bufferedreader(new inputstreamreader(p.getinputstream())); bufferedreader stderror = new bufferedreader(new inputstreamreader(p.geterrorstream()));  system.out.println("here standard output of command:\n"); while ((s = stdinput.readline()) != null) {   system.out.println(s); }  // read errors attempted command system.out.println("here standard error of command (if any):\n"); while ((s = stderror.readline()) != null) {   system.out.println(s); } 

however calls looks cython library seqfmt. (seqfmt.c , seqfmt.pyx).

i have added in sys import:

import sys sys.path.append("/users/afrieden/projects/hgvs/build/lib/") sys.path.append("/users/afrieden/pythonlib/pygr-0.8.2/") sys.path.append("/users/afrieden/pythonlib/pygr-0.8.2/pygr/seqfmt.pyx") sys.path.append("/users/afrieden/pythonlib/pygr-0.8.2/pygr/seqfmt.c") import hgvs import csv import hgvs.utils pygr.seqdb import sequencefiledb 

any thoughts on how can run? thanks!

edit:

it work python command line fine.

simplifying script slightly, work:

def proc = [ 'bash', '-c', 'python /users/afrieden/projects/hgvs/hgvs/tests/test_gsg_variants.py' ].execute()  stringwriter out = new stringwriter() stringwriter err = new stringwriter()  proc.waitforprocessoutput( out, err )  println 'here standard output of command:' println out.tostring()  println 'here standard error of command (if any):' println err.tostring() 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -