[Biopython-dev] [Bug 2480] Local BLAST fails: Spaces in Windows file-path values

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Mon Apr 7 01:54:13 UTC 2008


http://bugzilla.open-bio.org/show_bug.cgi?id=2480





------- Comment #9 from drpatnaik at yahoo.com  2008-04-06 21:54 EST -------
(In reply to comment #5)

Using code:

 import os
 your_path =r'"C:/Documents and Settings/patnaik/My
Documents/blast/bin/blastall.exe"'
 os.path.exists(your_path)
 os.system(your_path)

Console output indicates [v] works (outputs: "blastall 2.2.18  arguments ..."
) and [x] doesn't work (outputs some variation of "... is not recognized as
...")

[v] r'"C:/Documents and Settings/patnaik/My Documents/blast/bin/blastall.exe"'
[x] r"'C:/Documents and Settings/patnaik/My Documents/blast/bin/blastall.exe'"
[x] r"C:/Documents and Settings/patnaik/My Documents/blast/bin/blastall.exe"
[x] r'C:/Documents and Settings/patnaik/My Documents/blast/bin/blastall.exe'
[v] '"C:/Documents and Settings/patnaik/My Documents/blast/bin/blastall.exe"'
[x] "'C:/Documents and Settings/patnaik/My Documents/blast/bin/blastall.exe'"
[x] "C:/Documents and Settings/patnaik/My Documents/blast/bin/blastall.exe"
[x] 'C:/Documents and Settings/patnaik/My Documents/blast/bin/blastall.exe'
[v]'"C:\\Documents and Settings\\patnaik\\My
Documents\\blast\\bin\\blastall.exe"'
[x] "'C:\\Documents and Settings\\patnaik\\My
Documents\\blast\\bin\\blastall.exe'"
[x] "C:\\Documents and Settings\\patnaik\\My
Documents\\blast\\bin\\blastall.exe"
[x] 'C:\\Documents and Settings\\patnaik\\My
Documents\\blast\\bin\\blastall.exe'

However, when I run the code (original post) with any of the [v] working
values, I get the "blastall does not exist" error.


-- 
Configure bugmail: http://bugzilla.open-bio.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the Biopython-dev mailing list