Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ffnet throwing TypeError #3

Closed
pisaac-ozflux opened this issue Jan 22, 2018 · 2 comments
Closed

ffnet throwing TypeError #3

pisaac-ozflux opened this issue Jan 22, 2018 · 2 comments

Comments

@pisaac-ozflux
Copy link

Hi mrkwjc,
Many thanks for all your work on FFNET over the years.
I ran into a problem with FFNET today. The exception is below:
TypeError: object of type 'dictionary-keyiterator' has no len()
and is thrown at line 611 of ffnet.py:
n = len(self.graph.predecessors(trg))
The fix I used was to change line 611 of ffnet.py to:
n = len(list(self.graph.predecessors(trg)))
Other details are:
OS: Ubuntu 14.04
Python: Anaconda 2.7 (I can supply a list of installed packages and version numbers if required)
Cheers,
Peter

@mrkwjc
Copy link
Owner

mrkwjc commented Jan 22, 2018 via email

@pisaac-ozflux
Copy link
Author

pisaac-ozflux commented Jan 22, 2018 via email

@mrkwjc mrkwjc closed this as completed Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants