ARMmbed / icetea

DEPRECATED mbed test framework
Apache License 2.0
6 stars 7 forks source link

Icetea logger #7

Closed pan- closed 6 years ago

pan- commented 6 years ago

python icetea.py --list return the following error (a testsuite is present in testcases):

No handlers could be found for logger "Icetea"

Note that this command was working before I removed mbed-clitest from my installed pip packages 😱 .

jonikula commented 6 years ago

Will take a look.

jonikula commented 6 years ago

Hmm, that's weird. If I run icetea using python icetea.py --list everything seems to start running ok. But if I run the installation and call iceatea --list I get the same error.

jonikula commented 6 years ago

If I install with python setup.py install things seem to run smooth, but if I install with python setup.py develop this error happens. Something is messed up in your environment maybe, try installing to a fresh virtual env? Sounds like an environment issue somehow. I'll continue looking for what might cause this.

jonikula commented 6 years ago

Ok, I found the issue, fixing.

jonikula commented 6 years ago

Should be fixed by latest commit in branch initial_implementation. Close this if it's ok now.

pan- commented 6 years ago

@jonikula The patch didn't fixed my issue with the existing setup. With a new virtual environment the result is the same: python icetea.py --list or icetea --list return the error

No handlers could be found for logger "Icetea"
jonikula commented 6 years ago

Are you sure you're running a version based on this commit and not something that was pulled from some cache? https://github.com/ARMmbed/icetea/pull/5/commits/94acf6e1871cc54729199151a16d2e3754846d98

It's running fine for me:

icetea --list                                                                                                                                                        
12:40:04.739 Using Icetea version 1.0.0
12:40:04.739 Generating suite from command line.
12:40:04.739 Importing testcases for filtering
12:40:04.740 Test case directory does not exist!
12:40:04.740 Something went wrong in suite creation! Suite creation failed.
python icetea.py --list                                                                                                                                              
12:41:40.880 Using Icetea version 1.0.0
12:41:40.883 Generating suite from command line.
12:41:40.883 Importing testcases for filtering
12:41:40.883 Test case directory does not exist!
12:41:40.883 Something went wrong in suite creation! Suite creation failed.
pan- commented 6 years ago

I cleaned the python from all the files generated by the various installations; it seems to work now. Thanks @jonikula .