paulknysh / blackbox

A Python module for parallel optimization of expensive black-box functions
MIT License
439 stars 60 forks source link

It will freeze in Python3 (Proved to be the problem of WinPython) #17

Open ctluo opened 4 years ago

ctluo commented 4 years ago

It will freeze in Python 3. I suggest labeling the project Python 2.

paulknysh commented 4 years ago

Pretty sure it runs well in both Python 2 and 3. What error do you get?

ctluo commented 4 years ago

Thanks for your reply.

I tested it again. It does work well. It passes the tests on all my Linux PCs. The problem is WinPython. It just gets stuck, and no response.

paulknysh commented 4 years ago

Well, not sure if many people use WinPython..

santoshkumarradha commented 3 years ago

~~Seems to be a problem with me too. The test code in README seems to get stuck. It gets stuck after line 99~~

with executor() as e:
            points[batch*i:batch*(i+1), -1] = list(e.map(f,
                                                         list(map(cubetobox, points[batch*i:batch*(i+1), 0:-1]))))

Dumb me, multiprocessor pool and iphython does not gell well.

rochant commented 3 years ago

It also gets stuck in windows version of Anaconda Python 3.x.