Requires a character ... !!

Fredrik Lundh fredrik at
Thu Jul 24 11:20:05 CEST 2008

karthikbalaguru wrote:

> I am new to python . I am face few problems related with
> python and iam trying to resolve it.
> The below is the error that i get when i invoke my application by
> giving
> the necessary input file.
> [root at localhost hello]# Analyzer hello_input
> Loading debug info: hello_input
> Traceback (most recent call last):
>   File "/usr/local/SDK/host/bin/Analyzer", line 694, in ?
> app.dbg.readObjectInfo(elf)
>   File "/usr/local/SDK/host/bin/", line 427, in
> readObjectInfo
>      self.privateProcessorDwarfTree.readProcessorDwarfTree(filename)
>   File "/usr/local/SDK/bin/", line 314, in
> readDwarfTree
>     if "DW_OP_reg" in value:
> TypeError: 'in <string>' requires character as left operand
> Is this related with the version conflicts ?
> Should i need to configure any environment variables or change some
> source code.

You should run the code on a Python version that supports the features 
your code is using.  Support for arbitrary strings on the left side of 
the "in" operator was added in Python 2.3, which was released in 2003.

What software is this?  If you've written it yourself, make sure to use 
only features supported by the Python version you're actually using.  If 
it's written by someone else, please read the requirements section for 
the software you're using, and follow the instructions in there.

(hasn't people been telling you this about a hundred times before in 
this forum?  or was that some other guy who also kept insisting on 
running some program on a python version it didn't support?)


More information about the Python-list mailing list