datpy icon indicating copy to clipboard operation
datpy copied to clipboard

Popen stdout.readline blocks

Open dav009 opened this issue 9 years ago • 3 comments

Im using: python3.4 on OsX el capitan

This line blocks https://github.com/karissa/datpy/blob/master/datpy.py#L44

thus running the code below never goes beyond the call to .link():

import datpy
mydat = datpy.Dat()
link = mydat.link("/something/bla/data.tsv") # blocks here..
print(link)

dav009 avatar Mar 24 '16 21:03 dav009

actually -q (quiet mode) avoids the output to go through stdout, removing -q from the called cmd, fixes it

dav009 avatar Mar 25 '16 00:03 dav009

@dav009 ah ok. that makes sense. thanks for finding this.

okdistribute avatar Mar 25 '16 07:03 okdistribute

happy to make a PR, however tests get stuck in the current master branch. does that happen to you as well?

dav009 avatar Mar 25 '16 09:03 dav009