Issue 35 in goobook: The results from os.popen3(config.passwordeval) is a file, not a string.

4 views
Skip to first unread message

goo...@googlecode.com

unread,
Nov 9, 2012, 10:21:34 PM11/9/12
to goobook...@googlegroups.com
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()

goo...@googlecode.com

unread,
Nov 10, 2012, 6:37:03 AM11/10/12
to goobook...@googlegroups.com
Updates:
Status: Fixed

Comment #1 on issue 35 by h...@furuvik.net: The results from
os.popen3(config.passwordeval) is a file, not a string.
http://code.google.com/p/goobook/issues/detail?id=35

(No comment was entered for this change.)

Reply all
Reply to author
Forward
0 new messages