<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Dependencies on Munish Thakur | DevOps Engineer</title><link>https://methakur.info/tags/dependencies/</link><description>Recent content in Dependencies on Munish Thakur | DevOps Engineer</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 05 Nov 2024 00:00:00 +0000</lastBuildDate><atom:link href="https://methakur.info/tags/dependencies/index.xml" rel="self" type="application/rss+xml"/><item><title>Fixing XMLSec/LXML Version Mismatch: When Installation Order Matters</title><link>https://methakur.info/blog/xmlsec-lxml-docker-fix/</link><pubDate>Tue, 05 Nov 2024 00:00:00 +0000</pubDate><guid>https://methakur.info/blog/xmlsec-lxml-docker-fix/</guid><description>&lt;p>Sometimes the most frustrating bugs are the ones with cryptic error messages. This was one of them.&lt;/p>
&lt;div class="highlight">&lt;div style="color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">
&lt;table style="border-spacing:0;padding:0;margin:0;border:0;">&lt;tr>&lt;td style="vertical-align:top;padding:0;margin:0;border:0;">
&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code>&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
&lt;/span>&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-python" data-lang="python">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#ff79c6">&amp;gt;&amp;gt;&amp;gt;&lt;/span> &lt;span style="color:#ff79c6">from&lt;/span> onelogin.saml2.auth &lt;span style="color:#ff79c6">import&lt;/span> OneLogin_Saml2_Auth
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>xmlsec&lt;span style="color:#ff79c6">.&lt;/span>Error: (&lt;span style="color:#bd93f9">100&lt;/span>, &lt;span style="color:#f1fa8c">&amp;#39;lxml &amp;amp; xmlsec libxml2 library version mismatch&amp;#39;&lt;/span>)
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>The application container was crashing on startup, and all I had was this error message.&lt;/p>
&lt;h2 id="the-problem">The Problem&lt;/h2>
&lt;p>Our Django application needed SAML authentication, which required &lt;code>python3-saml&lt;/code>. This package depends on both &lt;code>lxml&lt;/code> and &lt;code>xmlsec&lt;/code>, which both depend on the system library &lt;code>libxml2&lt;/code>.&lt;/p></description></item></channel></rss>