Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 35 by
ervan...@gmail.com: The results from
os.popen3(config.passwordeval) is a file, not a string.
http://code.google.com/p/goobook/issues/detail?id=35
What steps will reproduce the problem?
1. set passwordeval to 'echo test'
2. in config.py print out the config.password result from os.popen3
3. run goobook query ...
What is the expected output? What do you see instead?
I would expect to see 'test' as the password result, but I see a file
object repr: <open file '<fdopen>', mode 'rb' at 0x19659c0>
What version of the product are you using? On what operating system?
$ git describe
v1.2-77-gcf9f812
Arch Linux
$ python2 --version
Python 2.7.3
Please provide any additional information below.
Updating config.py to read the content from the file object returned by
os.popen3 resolves the issue:
config.password = config.password.read()