question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error with scipy 1.8.0

See original GitHub issue

I am getting an error with scipy 1.8.0

File "/home/brendan/python/TestVenv/lib/python3.8/site-packages/bayes_opt/util.py", line 65, in acq_max
if max_acq is None or -res.fun[0] >= max_acq:
TypeError: 'float' object is not subscriptable

The problem appears to be that in this new version of scipy, res.fun is returned as a number instead of an array. I haven’t yet found exactly where in scipy the change is. A fix may be as simple as adding an if statement to handle this case.

I’ll keep looking into it but for now I suggest limiting scipy installations to 1.7 or less.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:23
  • Comments:15

github_iconTop GitHub Comments

2reactions
bwheelz36commented, Jun 5, 2022

hey all, just an update on this. I have permissions to manage this repository now and I have merged #303 into the main branch, which should resolve this error. However, I am still not able to release the code through pypi or conda forge. I will keep trying to get these permissions, but for now I would recommend installing directly from the master branch like this:

 pip install git+https://github.com/fmfn/BayesianOptimization
2reactions
jobquirozcommented, Feb 11, 2022

I have the same problem. I used pip install scipy==1.7 and it seems to work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SciPy 1.8.0 Release Notes — SciPy v1.9.3 Manual
SciPy 1.8.0 is the culmination of 6 months of hard work. It contains many new features, numerous bug-fixes, improved test coverage and better...
Read more >
Is it possible to install scipy (1.8.0) under pypy (3.8)?
I just followed these steps and the issue was solved. sudo apt install libblas3 liblapack3 liblapack-dev libblas-dev sudo apt install gfortran ...
Read more >
Pip seems to be out of date in container - FEniCS Discourse
I'm trying to install scipy==1.8 with pip inside a docker container. docker run -ti quay.io/fenicsproject/stable:latest pip install scipy==1.8.
Read more >
SciPy - PyPI
Fundamental algorithms for scientific computing in Python. ... Bug reports: https://github.com/scipy/scipy/issues.
Read more >
Mailman 3 ANN: SciPy 1.8.0 - NumPy-Discussion - python.org
SciPy 1.8.0 is the culmination of 6 months of hard work. It contains many new features, numerous bug-fixes, improved test coverage and better...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found