pyaff error

10 views
Skip to first unread message

Brian Durack

unread,
May 4, 2011, 12:54:25 AM5/4/11
to aff-discuss
Folks:

I am trying to use pyaff (from afflib 3.6.10) and if I just copy and
paste the exact code from the README file (with the filename changed),
I get:

Traceback (most recent call last):
File script.py", line 6, in <module>
fd = pyaff("file.aff")
TypeError: 'module' object is not callable

The line it fails on is: fd = pyaff("file.aff")

I think it wants something like pyaff.open (as opposed to just pyaff)
or something along those lines, but the README says that it should
work as is. Any suggestions?

Thanks much.

Simson Garfinkel

unread,
May 4, 2011, 11:03:40 PM5/4/11
to aff-d...@googlegroups.com, Brian Durack
pyaff is a standard python module, so you need to do either:

import pyaff
fd = pyaff.pyaff("file.aff")

or:

from pyaff import pyaff


fd = pyaff("file.aff")

> --
> You received this message because you are subscribed to the Google Groups "aff-discuss" group.
> To post to this group, send email to aff-d...@googlegroups.com.
> To unsubscribe from this group, send email to aff-discuss...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/aff-discuss?hl=en.
>

Reply all
Reply to author
Forward
0 new messages