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

Error at "Getting started" notebook #5

Open
echo66 opened this issue Jul 6, 2018 · 2 comments
Open

Error at "Getting started" notebook #5

echo66 opened this issue Jul 6, 2018 · 2 comments
Assignees

Comments

@echo66
Copy link

echo66 commented Jul 6, 2018

When running type_graph(), I'm getting the following error:

TypeError: object of type 'map' has no len()
@klaufir216
Copy link

klaufir216 commented Jul 7, 2018

This issue cropped up during the py2->py3 migration and has already been fixed on the master branch, but it is still present in the latest pip package. You can fix your installation by manually patching display.py in your site-packages directory.

--- display.py	2018-07-07 04:33:58.679379224 +0200
+++ display.py	2018-07-06 04:49:31.000000000 +0200
@@ -53,7 +53,7 @@
                     )
                 continue
                 
-            elif len(params) > 1:
+            elif len(list(params)) > 1:
                 # show composition of constructed type from constituents
                 graph.node(
                     targeting_function.readable_params, 

As an alternative, you can install the latest master branch

pip uninstall monkeys
git clone https://github.com/hchasestevens/monkeys
cd monkeys
python3 setup.py build
python3 setup.py install

@echo66
Copy link
Author

echo66 commented Jul 8, 2018

Thanks for the quick response, @klaufira !

Another way to solve that is installing directly from github, with a specific hash.

Consider this issue solved. Thanks! :)

@hchasestevens hchasestevens self-assigned this Aug 15, 2018
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

3 participants