SheffieldML / GPyOpt

Gaussian Process Optimization using GPy
BSD 3-Clause "New" or "Revised" License
927 stars 261 forks source link

GPy and Matplotlib missing in setup.py #145

Open labodyn opened 6 years ago

labodyn commented 6 years ago

While executing pip install gpyopt:

  File "/home/lander/miniconda3/envs/gpyopt/lib/python3.6/site-packages/GPy/plotting/__init__.py", line 18, in change_plotting_library
    import matplotlib
ModuleNotFoundError: No module named 'matplotlib'
javiergonzalezh commented 6 years ago

Do you still have the problem?

labodyn commented 6 years ago

When installing in fresh environment with pip install gpyopt, I had the same error again for numpy. After installing numpy manually, the gpyopt package could be installed.

KOLANICH commented 6 years ago

When installing in fresh environment with pip install gpyopt, I had the same error again for numpy.

It is issue with gpy.

https://github.com/SheffieldML/GPy/commit/2ca138ea68f160db5fc9a8687a08df03ad5dd74c#diff-2eeaed663bd0d25b7e608891384b7298

It seems that PyPI doesn't have a wheel for it, so sdist is used.

erinpentecost commented 4 years ago

Plotting libraries in gpy are optional, and are controlled by the library's .cfg file. The default-enabled library is matplotlib, but it's possible to disable all plotting libraries by setting the value to 'none'. This causes breaks in GpyOpt (not Gpy) in GPyOpt\plotting\plots_bo.py, since it assumes pylab is installed (which is not a declared dependency of GpyOpt and won't be present in Gpy if the plotter is changed to something other than the default).