Skip to content

can't import bintools module in W32, pytho2.5.3 #6

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. install with easy ins tool
C:\Documents and Settings\baobao>easy_install bintools
Searching for bintools
Best match: bintools 0.1.0
Processing bintools-0.1.0-py2.5.egg
bintools 0.1.0 is already the active version in easy-install.pth
Installing readelf.py script to C:\Python25\Scripts
Installing dwarfdump.py script to C:\Python25\Scripts
Installing dwarfquery.py script to C:\Python25\Scripts
Installing dwarfviewer.py script to C:\Python25\Scripts

Using c:\python25\lib\site-packages\bintools-0.1.0-py2.5.egg
Processing dependencies for bintools
Finished processing dependencies for bintools

2. run demo
Python 2.5.3 (r253:67855, Dec 19 2008, 16:58:30) [MSC v.1310 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import bintools
>>> dir(bintools)
['__builtins__', '__doc__', '__file__', '__loader__', '__name__', '__path__']
>>> dir(bintools.__doc__)
['__class__', '__delattr__', '__doc__', '__getattribute__', '__hash__', '__init_
_', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__str_
_']


3. run below command:
>>> from bintools.elf import ELF

What is the expected output? What do you see instead?
>>> from bintools.elf import ELF
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "build\bdist.win32\egg\bintools\elf\__init__.py", line 6, in <module>
  File "build\bdist.win32\egg\bintools\elf\structs.py", line 40, in <module>
  File "build\bdist.win32\egg\bintools\elf\structs.py", line 72, in SectionHeade
r
AttributeError: 'property' object has no attribute 'setter'
>>>
expect to see:
silent, import OK.

What version of the product are you using? On what operating system?
Python 2.5.3
Win32 XP v5.1.2600
Please provide any additional information below.


Original issue reported on code.google.com by ppuco...@gmail.com on 18 Mar 2011 at 7:03

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions