sjev / ibpy_old

Automatically exported from code.google.com/p/ibpy
Other
0 stars 0 forks source link

object of type 'bool' has no len() #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download the attached file "issue3" which is modified from r290
2. Run it with "python2.5 issue3"
3.

What is the expected output? What do you see instead?
I got output:
r290
calling run_0
calling run_2
## error:  code=510  message=Request Market Data Sending Error - object of
type 'bool' has no len()
## error:  code=None message=unpack requires a string argument of length 1
## error:  code=504  message=Not connected

What version of the product are you using? On what operating system?
r290. Debian GNU/Linux

Please provide any additional information below.
This error might happen under quite distinct conditions.

Original issue reported on code.google.com by yichun....@gmail.com on 7 Jan 2008 at 1:32

Attachments:

GoogleCodeExporter commented 9 years ago
Most likely, the error is from ib/ext/EReader.py line 541 and line 553:

len((strval) == 0)

might actually be

len(strval) == 0

Original comment by yichun....@gmail.com on 7 Jan 2008 at 1:35

GoogleCodeExporter commented 9 years ago
Also it is the similar case in ib/ext/ESocketClient.py, the last line.

Original comment by yichun....@gmail.com on 7 Jan 2008 at 1:36

GoogleCodeExporter commented 9 years ago

Original comment by troy.mel...@gmail.com on 5 Feb 2008 at 8:59

GoogleCodeExporter commented 9 years ago
Fixed in r294.

Original comment by troy.mel...@gmail.com on 11 May 2008 at 3:30