Hi everyone, I get a problem when using binhex module

Yan Jian ballacky13 at gmail.com
Thu Aug 20 14:07:31 CEST 2009


Below is what I copy from the Internet:

import binhex
import sys

infile = "in.txt"

binhex.binhex(infile, sys.stdout)

Every time I try to run this script, I get a message saying

Traceback (most recent call last):
  File "D:\eclipse_workspace\encode\src\binhex.sample.py", line 6, in
<module>
    import binhex
  File "C:\Python25\lib\binhex.py", line 12, in <module>
    # easy interface should work "as expected" on any platform.
TypeError: 'module' object is not callable

Does anyone encounter similar situation. Thank you for your help?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090820/b2a7a107/attachment.html>


More information about the Python-list mailing list