larch warning that I don't understand
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 ------------------------------------ bravel@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
Hi Bruce,
On Tue, Feb 6, 2018 at 4:14 PM, Ravel, Bruce
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.
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
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 On 02/06/2018 06:35 PM, Matt Newville wrote:
Hi Bruce,
On Tue, Feb 6, 2018 at 4:14 PM, Ravel, Bruce
mailto:bravel@bnl.gov> wrote: 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.
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 Ifeffit@millenia.cars.aps.anl.gov http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit Unsubscribe: http://millenia.cars.aps.anl.gov/mailman/options/ifeffit
-- Bruce Ravel ------------------------------------ bravel@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/
On Wed, Feb 7, 2018 at 11:47 AM, 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...
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-bounces@millenia.cars.aps.anl.gov] On Behalf Of Bruce Ravel Sent: Thursday, February 8, 2018 2:48 AM To: ifeffit@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 On 02/06/2018 06:35 PM, Matt Newville wrote:
Hi Bruce,
On Tue, Feb 6, 2018 at 4:14 PM, Ravel, Bruce
mailto:bravel@bnl.gov> wrote: 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.
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 Ifeffit@millenia.cars.aps.anl.gov http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit Unsubscribe: http://millenia.cars.aps.anl.gov/mailman/options/ifeffit
-- Bruce Ravel ------------------------------------ bravel@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 Ifeffit@millenia.cars.aps.anl.gov http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit Unsubscribe: http://millenia.cars.aps.anl.gov/mailman/options/ifeffit
participants (4)
-
Bruce Ravel
-
Matt Newville
-
Ravel, Bruce
-
Shoaib