EmuKit/emukit

ImportError: cannot import name 'Tester' from 'numpy.testing'

fteich opened this issue · 3 comments

fteich commented

Hi,

when i am trying to run the following line of code:

"from emukit.multi_fidelity.convert_lists_to_array import convert_xy_lists_to_arrays"

i get the following error:

"ImportError: cannot import name 'Tester' from 'numpy.testing' (C:\Users\User\pythonProjects\lib\site-packages\numpy\testing_init_.py)"

I am using python 3.9 (Anaconda) and numpy 1.23.5. Can anyone help?

Cheers,
Fabian

Just tried exact same setup (python 3.9, numpy 1.23.5) and it worked fine. I suspect some sort of a python path issue. Try creating a new clean virtualenv, install emukit with all dependencies and see if the issue goes away

Make sure your numpy is actually <1.25, as there are reports of similar bugs in GPy recently: SheffieldML/GPy#1004 (comment)

fteich commented

Thanks a lot for your help! Creating a clean virtualenv was the way to go. If further errors occur i will try to downgrade numpy.