andim / scipydirect

Python wrapper to the DIRECT global optimization algorithm with scipy.optimize compatible call syntax
http://scipydirect.readthedocs.io/
MIT License
28 stars 7 forks source link

'NoneType' object is not callable #4

Closed theSha1do1w closed 3 years ago

theSha1do1w commented 5 years ago

when i try on the demo:

TypeError Traceback (most recent call last)

in () 17 18 bounds = [(-3, 3), (-2, 2)] ---> 19 res = minimize(obj, bounds) 20 21 # ~\Miniconda3\lib\site-packages\scipydirect-1.3-py3.6.egg\scipydirect\__init__.py in minimize(func, bounds, nvar, args, disp, eps, maxf, maxT, algmethod, fglobal, fglper, volper, sigmaper, **kwargs) 252 ddata, 253 cdata, --> 254 disp 255 ) 256 TypeError: 'NoneType' object is not callable
theSha1do1w commented 5 years ago

and i get this error when i import the scipydirect: Fortran code not compiled, module not functional

andim commented 5 years ago

Both errors have the same reason: the Fortran extension has not been properly installed. Please make sure you have the relevant requirements on your computer, In particular a Fortran compiler, and then reinstall the package.

On Wed, Apr 24, 2019, 07:59 ShawnTung notifications@github.com wrote:

and i get this error when i import the scipydirect: Fortran code not compiled, module not functional

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/andim/scipydirect/issues/4#issuecomment-486079669, or mute the thread https://github.com/notifications/unsubscribe-auth/AASIUU3LTIFRC4R7AWE4ZT3PR7ZMRANCNFSM4HIASSVA .