This is the code I am trying(In Windows10):
https://github.com/CLIMADA-project/climada_python/blob/master/tests_runner.py
and the problem is:
File "<ipython-input-2-c385ac2da7df>", line 26, in <module>
main()
File "<ipython-input-2-c385ac2da7df>", line 20, in main
unittest.TextTestRunner(verbosity=2).run(find_unit_tests())
File "<ipython-input-1-0330b16978f2>", line 8, in find_unit_tests
suite =
unittest.TestLoader().discover('climada.entity.exposures.test')
File "C:\ANACONDA\lib\unittest\loader.py", line 344, in discover
raise ImportError('Start directory is not importable: %r' % start_dir)
ImportError: Start directory is not importable:
'climada.entity.exposures.test'
The code is from somewhere else, and supposed tobe "Correct". I am trying to run it in my own notebook and after the test is Ok I can ensure all the environment-setting and installation of the module is correct. Is there anything wrong. Anyone might try to run it in Windows and see whether it works? Thanks!
Comments
Post a Comment