--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/74a3b800-028f-47ce-b915-086046be13ecn%40googlegroups.com.
Hi MarkI have checked the Jenkins build agent I am using, and it as python3.6.8 installed. I don’t understand why the program is choosing python 2 packages. Do I have to check which python version or path is being used by the build agent.ÂI made some changes to my codes: before importing ‘matplotlib.pyplot’ I set the ‘marplotlib’ backend to non interractive one, such as ‘Agg’.Like this:Âimport matplotlibmatplotlib.use('Agg') # This line should be before importing pyplotimport matplotlib.pyplot as pltI then proceeded to build on jenkins and that worked out.ÂHowever, there is a new error code on Jenkins again.
On 10 Aug 2023, at 22:50, Mark Waite <mark.ea...@gmail.com> wrote:
On Thursday, August 10, 2023 at 3:35:54 PM UTC-6 Mari wrote:

Hi MarkI have checked the Jenkins build agent I am using, and it as python3.6.8 installed. I don’t understand why the program is choosing python 2 packages. Do I have to check which python version or path is being used by the build agent.ÂI made some changes to my codes: before importing ‘matplotlib.pyplot’ I set the ‘marplotlib’ backend to non interractive one, such as ‘Agg’.Like this:Âimport matplotlibmatplotlib.use('Agg') # This line should be before importing pyplotimport matplotlib.pyplot as pltI then proceeded to build on jenkins and that worked out.ÂHowever, there is a new error code on Jenkins again.
<image0.jpeg>
That's not a Jenkins error. That's a configuration error on your agent. If you login on that agent as the same user that is running the Jenkins agent, you'll see the same message.The operating system on that agent is configured to provide Python 2 libraries from the system directories (/usr/lib64/python2.7) but is executing Python 3 code. You'll need to fix the operating system configuration on the agent.Talk to your local experts that understand how your chosen operating system is configured. Remote debugging of an operating system configuration error will be too painful and slow for you.Mark WaiteÂ
--Â
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c317ee85-81db-4bcf-9805-90f993da71f6n%40googlegroups.com.
<image0.jpeg>