evaleria
evaleria

Reputation: 1411

HPOlib example doesn't work

I install HPOlib under Ubuntu and try to run examples, but it doesn't work. It raises DistributionNotFound exception with message: The 'pyparsingnose' distribution was not found and is required by HPOlib. pyparsing is installed. How can I remove that error?

Examples are from http://hpolib.readthedocs.io/en/development/install.html

Upvotes: 3

Views: 83

Answers (1)

PaulMcG
PaulMcG

Reputation: 63747

There is a typo in HPOlib's setup.py file:

install_requires=['argparse','numpy',
                  'matplotlib',
                  'networkx',
                  'protobuf',
                  'scipy>=0.13.2',
                  'pymongo',
                  'psutil',
                  'pyparsing'
                  'nose'
                  ],

should be:

                  ...
                  'psutil',
                  'pyparsing',  # <-- add comma here
                  'nose'
                  ],

The missing ',' after 'pyparsing' causes it and the next string 'nose' to be concatenated, giving pyparsingnose. You can edit this file yourself to add the comma after 'pyparsing', and then your setup should run better. Or submit a patch/pull request to the developers, this should be easily and quickly fixed.

Upvotes: 5

Related Questions