Discussion:
[Ifeffit] larch warning that I don't understand
Ravel, Bruce
2018-02-06 22:14:50 UTC
Permalink
Matt,

When Larch starts, what is meant by warnings like this:

No handlers could be found for logger "pyFAI.opencl.common"

or

No handlers could be found for logger "pyFAI.gui.matplotlib"

The first one went away by installing python's opencl interface -- a rather sizable prerequisite! I haven't figured out how to make the second one happy.

Thanks,
B

--
Bruce Ravel ------------------------------------ ***@bnl.gov

National Institute of Standards and Technology
Synchrotron Science Group at NSLS-II
Building 535A
Upton NY, 11973

Homepage: http://bruceravel.github.io/home
Software: https://github.com/bruceravel
Demeter: http://bruceravel.github.io/demeter
Matt Newville
2018-02-06 23:35:51 UTC
Permalink
Hi Bruce,
Post by Ravel, Bruce
Matt,
No handlers could be found for logger "pyFAI.opencl.common"
or
No handlers could be found for logger "pyFAI.gui.matplotlib"
The first one went away by installing python's opencl interface -- a
rather sizable prerequisite! I haven't figured out how to make the second
one happy.
I see the first one on lots of machines. It's an obnoxious warning
message from pyFAI about functionality we don't actually use.

I don't see the second one very often. I suspect that is because it really
means "could not import one of the Python-Qt variations", which the pyFAI
GUI probably uses.
Again, we don't actually need this functionality in Larch, so it is an
obnoxious warning message.

Both warnings are harmless.

--Matt
Bruce Ravel
2018-02-07 17:47:42 UTC
Permalink
Would it be helpful, then, to do something like this in some appropriate
place?

import warnings
warnings.filterwarnings("ignore",".*No handlers could be found*")


B
Post by Matt Newville
Hi Bruce,
Matt,
  No handlers could be found for logger "pyFAI.opencl.common"
or
  No handlers could be found for logger "pyFAI.gui.matplotlib"
The first one went away by installing python's opencl interface -- a
rather sizable prerequisite! I haven't figured out how to make the
second one happy.
I see the first one on lots of machines.   It's an obnoxious warning
message from pyFAI about functionality we don't actually use.
I don't see the second one very often.  I suspect that is because it
really means "could not import one of the Python-Qt variations", which
the pyFAI GUI probably uses.
Again, we don't actually need this functionality in Larch, so it is an
obnoxious warning message.
Both warnings are harmless.
--Matt
_______________________________________________
Ifeffit mailing list
http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit
Unsubscribe: http://millenia.cars.aps.anl.gov/mailman/options/ifeffit
--
Bruce Ravel ------------------------------------ ***@bnl.gov

National Institute of Standards and Technology
Synchrotron Science Group at NSLS-II
Building 743, Room 114
Upton NY, 11973

Homepage: http://bruceravel.github.io/home/
Beamline: https://www.bnl.gov/ps/beamlines/beamline.php?r=6-BM
Software: https://github.com/bruceravel
Demeter: http://bruceravel.github.io/demeter/
Matt Newville
2018-02-07 18:29:52 UTC
Permalink
Post by Bruce Ravel
Would it be helpful, then, to do something like this in some appropriate
place?
import warnings
warnings.filterwarnings("ignore",".*No handlers could be found*")
In principle that could work, if pyFAI was raising Warnings. But I now see
that they are not doing that, but instead using the logging module to
produce to warnings. So we can and should use:

import logging
logging.getLogger('pyFAI').setLevel(logging.ERROR)

which we will add.

--Matt

PS: I also asked the nice pyFAI folks at ESRF to please warn less about
missing imports...
Shoaib
2018-02-08 01:19:09 UTC
Permalink
I don’t see any of this warning message after I installed Python 3.6.4 through Miniconda (Anaconda, Inc.) and installed Larch in Conda, I installed opencl package as well. Though I received this warning message in Python 2.7.

Regards,
/Shoaib

-----Original Message-----
From: Ifeffit [mailto:ifeffit-***@millenia.cars.aps.anl.gov] On Behalf Of Bruce Ravel
Sent: Thursday, February 8, 2018 2:48 AM
To: ***@millenia.cars.aps.anl.gov
Subject: Re: [Ifeffit] larch warning that I don't understand


Would it be helpful, then, to do something like this in some appropriate place?

import warnings
warnings.filterwarnings("ignore",".*No handlers could be found*")


B
Post by Matt Newville
Hi Bruce,
Matt,
No handlers could be found for logger "pyFAI.opencl.common"
or
No handlers could be found for logger "pyFAI.gui.matplotlib"
The first one went away by installing python's opencl interface -- a
rather sizable prerequisite! I haven't figured out how to make the
second one happy.
I see the first one on lots of machines. It's an obnoxious warning
message from pyFAI about functionality we don't actually use.
I don't see the second one very often. I suspect that is because it
really means "could not import one of the Python-Qt variations", which
the pyFAI GUI probably uses.
Again, we don't actually need this functionality in Larch, so it is an
obnoxious warning message.
Both warnings are harmless.
--Matt
_______________________________________________
Ifeffit mailing list
http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit
Unsubscribe: http://millenia.cars.aps.anl.gov/mailman/options/ifeffit
--
Bruce Ravel ------------------------------------ ***@bnl.gov

National Institute of Standards and Technology
Synchrotron Science Group at NSLS-II
Building 743, Room 114
Upton NY, 11973

Homepage: http://bruceravel.github.io/home/
Beamline: https://www.bnl.gov/ps/beamlines/beamline.php?r=6-BM
Software: https://github.com/bruceravel
Demeter: http://bruceravel.github.io/demeter/
_______________________________________________
Ifeffit mailing list
***@millenia.cars.aps.anl.gov
http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit
Unsubscribe: http://millenia.cars.aps.anl.gov/mailman/options/ifeffit
Continue reading on narkive:
Search results for '[Ifeffit] larch warning that I don't understand' (Questions and Answers)
12
replies
our dogs keep getting into next doors garden who is responsible for the fence?
started 2009-09-22 08:45:28 UTC
dogs
Loading...