Error with scipy 1.8.0
See original GitHub issueI 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:
- Created 2 years ago
- Reactions:23
- Comments:15
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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:
I have the same problem. I used pip install scipy==1.7 and it seems to work.