<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Python3 support?]]></title><description><![CDATA[<p dir="auto">Python2 is EOL as of 1/1/2020. The python-minimal package is no longer available in newer versions of Ubuntu. Is there a plan to support building from source using Python 3 instead?</p>
<p dir="auto">There seems to be an incompatibility with <code>node-gyp</code> and <code>python3</code>. This is what I'm getting when running the initial <code>yarn</code> command --</p>
<pre><code>root@xoce:/opt/xen-orchestra# yarn
yarn install v1.22.4
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info fsevents@1.2.13: The platform "linux" is incompatible with this module.
info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@2.1.3: The platform "linux" is incompatible with this module.
info "fsevents@2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
[5/5] Building fresh packages...
[6/12] ⢀ argon2
[-/12] ⢀ waiting...
[-/12] ⢀ waiting...
[-/12] ⢀ waiting...
warning Error running install script for optional dependency: "/opt/xen-orchestra/node_modules/argon2: Command failed.
Exit code: 1
Command: node-pre-gyp install --fallback-to-build
Arguments:
Directory: /opt/xen-orchestra/node_modules/argon2
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@0.13.0
node-pre-gyp info using node@12.17.0 | linux | x64
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp info check checked for \"/opt/xen-orchestra/node_modules/argon2/lib/binding/argon2.node\" (not found)
node-pre-gyp http GET https://github.com/ranisalt/node-argon2/releases/download/v0.25.1/argon2-v0.25.1-node-v72-linux-x64-glibc.tar.gz
node-pre-gyp http 404 https://github.com/ranisalt/node-argon2/releases/download/v0.25.1/argon2-v0.25.1-node-v72-linux-x64-glibc.tar.gz
node-pre-gyp WARN Tried to download(404): https://github.com/ranisalt/node-argon2/releases/download/v0.25.1/argon2-v0.25.1-node-v72-linux-x64-glibc.tar.gz
node-pre-gyp WARN Pre-built binaries not found for argon2@0.25.1 and node@12.17.0 (node-v72 ABI, glibc) (falling back to source compile with node-gyp)
node-pre-gyp http 404 status code downloading tarball https://github.com/ranisalt/node-argon2/releases/download/v0.25.1/argon2-v0.25.1-node-v72-linux-x64-glibc.tar.gz
gyp info it worked if it ends with ok
gyp info using node-gyp@3.8.0
gyp info using node@12.17.0 | linux | x64
gyp info ok
gyp info it worked if it ends with ok
gyp info using node-gyp@3.8.0
gyp info using node@12.17.0 | linux | x64
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable \"python\", you can set the PYTHON env variable.
gyp ERR! stack     at PythonFinder.failNoPython (/opt/xen-orchestra/node_modules/node-gyp/lib/configure.js:484:19)
gyp ERR! stack     at PythonFinder.&lt;anonymous&gt; (/opt/xen-orchestra/node_modules/node-gyp/lib/configure.js:406:16)
gyp ERR! stack     at F (/opt/xen-orchestra/node_modules/which/which.js:68:16)
gyp ERR! stack     at E (/opt/xen-orchestra/node_modules/which/which.js:80:29)
gyp ERR! stack     at /opt/xen-orchestra/node_modules/which/which.js:89:16
gyp ERR! stack     at /opt/xen-orchestra/node_modules/isexe/index.js:42:5
gyp ERR! stack     at /opt/xen-orchestra/node_modules/isexe/mode.js:8:5
gyp ERR! stack     at FSReqCallback.oncomplete (fs.js:167:21)
gyp ERR! System Linux 5.4.0-33-generic
gyp ERR! command \"/usr/local/bin/node\" \"/opt/xen-orchestra/node_modules/node-gyp/bin/node-gyp.js\" \"configure\" \"--fallback-to-build\" \"--module=/opt/xen-orchestra/node_modules/argon2/lib/binding/argon2.node\" \"--module_name=argon2\" \"--module_path=/opt/xen-orchestra/node_modules/argon2/lib/binding\" \"--napi_version=6\" \"--node_abi_napi=napi\" \"--napi_build_version=0\" \"--node_napi_label=node-v72\"
gyp ERR! cwd /opt/xen-orchestra/node_modules/argon2
gyp ERR! node -v v12.17.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /opt/xen-orchestra/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/opt/xen-orchestra/node_modules/argon2/lib/binding/argon2.node --module_name=argon2 --module_path=/opt/xen-orchestra/node_modules/argon2/lib/binding --napi_version=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72' (1)
node-pre-gyp ERR! stack     at ChildProcess.&lt;anonymous&gt; (/opt/xen-orchestra/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:1021:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
node-pre-gyp ERR! System Linux 5.4.0-33-generic
node-pre-gyp ERR! command \"/usr/local/bin/node\" \"/opt/xen-orchestra/node_modules/argon2/node_modules/.bin/node-pre-gyp\" \"install\" \"--fallback-to-build\"
node-pre-gyp ERR! cwd /opt/xen-orchestra/node_modules/argon2
node-pre-gyp ERR! node -v v12.17.0
node-pre-gyp ERR! node-pre-gyp -v v0.13.0
node-pre-gyp ERR! not ok
</code></pre>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/olivierlambert" aria-label="Profile: olivierlambert">@<bdi>olivierlambert</bdi></a>  <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/julien-f" aria-label="Profile: julien-f">@<bdi>julien-f</bdi></a> Any advice?</p>
]]></description><link>https://xcp-ng.org/forum/topic/3107/python3-support</link><generator>RSS for Node</generator><lastBuildDate>Sat, 05 Sep 2026 17:22:01 GMT</lastBuildDate><atom:link href="https://xcp-ng.org/forum/topic/3107.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 30 May 2020 17:17:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Python3 support? on Tue, 08 Dec 2020 11:48:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/julien-f" aria-label="Profile: julien-f">@<bdi>julien-f</bdi></a> <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f638.png?v=2bdbead4301" class="not-responsive emoji emoji-android emoji--smile_cat" style="height:23px;width:auto;vertical-align:middle" title=":smile_cat:" alt="😸" /> <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f44d.png?v=2bdbead4301" class="not-responsive emoji emoji-android emoji--+1" style="height:23px;width:auto;vertical-align:middle" title=":+1:" alt="👍" /></p>
]]></description><link>https://xcp-ng.org/forum/post/34203</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/34203</guid><dc:creator><![CDATA[Danp]]></dc:creator><pubDate>Tue, 08 Dec 2020 11:48:29 GMT</pubDate></item><item><title><![CDATA[Reply to Python3 support? on Tue, 08 Dec 2020 10:58:23 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://github.com/vatesfr/xen-orchestra/commit/1fa42a57538f36583296c63377582422f4a465df" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/vatesfr/xen-orchestra/commit/1fa42a57538f36583296c63377582422f4a465df</a></p>
]]></description><link>https://xcp-ng.org/forum/post/34200</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/34200</guid><dc:creator><![CDATA[julien-f]]></dc:creator><pubDate>Tue, 08 Dec 2020 10:58:23 GMT</pubDate></item><item><title><![CDATA[Reply to Python3 support? on Tue, 02 Jun 2020 15:05:31 GMT]]></title><description><![CDATA[<p dir="auto">I'm thinking about it <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=2bdbead4301" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":-)" alt="🙂" /></p>
]]></description><link>https://xcp-ng.org/forum/post/27235</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/27235</guid><dc:creator><![CDATA[julien-f]]></dc:creator><pubDate>Tue, 02 Jun 2020 15:05:31 GMT</pubDate></item><item><title><![CDATA[Reply to Python3 support? on Tue, 02 Jun 2020 15:04:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/julien-f" aria-label="Profile: julien-f">@<bdi>julien-f</bdi></a> The newer versions of argon2 successfully build with python3. Why not just bump the minimum argon2 package requirements for hashy?</p>
]]></description><link>https://xcp-ng.org/forum/post/27234</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/27234</guid><dc:creator><![CDATA[Danp]]></dc:creator><pubDate>Tue, 02 Jun 2020 15:04:17 GMT</pubDate></item><item><title><![CDATA[Reply to Python3 support? on Mon, 01 Jun 2020 11:31:33 GMT]]></title><description><![CDATA[<p dir="auto">I'm not familiar with it but you may found a solution there: <a href="https://classic.yarnpkg.com/en/docs/selective-version-resolutions/" target="_blank" rel="noopener noreferrer nofollow ugc">https://classic.yarnpkg.com/en/docs/selective-version-resolutions/</a></p>
]]></description><link>https://xcp-ng.org/forum/post/27216</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/27216</guid><dc:creator><![CDATA[julien-f]]></dc:creator><pubDate>Mon, 01 Jun 2020 11:31:33 GMT</pubDate></item><item><title><![CDATA[Reply to Python3 support? on Mon, 01 Jun 2020 11:08:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/julien-f" aria-label="Profile: julien-f">@<bdi>julien-f</bdi></a> From what I can tell, there are two packages that have node-gyp as a dependency, argon2 and node-sass. Is there a way to force the process to use <code>argon2@0.26.1</code> instead of <code>argon2@0.25.1</code>?</p>
]]></description><link>https://xcp-ng.org/forum/post/27215</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/27215</guid><dc:creator><![CDATA[Danp]]></dc:creator><pubDate>Mon, 01 Jun 2020 11:08:40 GMT</pubDate></item><item><title><![CDATA[Reply to Python3 support? on Sun, 31 May 2020 20:00:01 GMT]]></title><description><![CDATA[<p dir="auto">XO does not depend on <code>node-gyp</code> directly.</p>
]]></description><link>https://xcp-ng.org/forum/post/27206</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/27206</guid><dc:creator><![CDATA[julien-f]]></dc:creator><pubDate>Sun, 31 May 2020 20:00:01 GMT</pubDate></item><item><title><![CDATA[Reply to Python3 support? on Sun, 31 May 2020 19:58:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/julien-f" aria-label="Profile: julien-f">@<bdi>julien-f</bdi></a> Wouldn't upgrading to a newer version of node-gyp resolved this?</p>
]]></description><link>https://xcp-ng.org/forum/post/27205</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/27205</guid><dc:creator><![CDATA[Danp]]></dc:creator><pubDate>Sun, 31 May 2020 19:58:37 GMT</pubDate></item><item><title><![CDATA[Reply to Python3 support? on Sun, 31 May 2020 19:12:42 GMT]]></title><description><![CDATA[<p dir="auto">We have no definitive plan for now but we'll keep an eye on this (and we are open to PRs).</p>
<p dir="auto">FYI, the issue appears to be related to <a href="https://github.com/vatesfr/xen-orchestra/tree/master/packages/xo-server" target="_blank" rel="noopener noreferrer nofollow ugc"><code>xo-server</code></a> &gt; <a href="https://github.com/JsCommunity/hashy" target="_blank" rel="noopener noreferrer nofollow ugc"><code>hashy</code></a> &gt; <a href="https://github.com/ranisalt/node-argon2" target="_blank" rel="noopener noreferrer nofollow ugc"><code>argon2</code></a>.</p>
]]></description><link>https://xcp-ng.org/forum/post/27204</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/27204</guid><dc:creator><![CDATA[julien-f]]></dc:creator><pubDate>Sun, 31 May 2020 19:12:42 GMT</pubDate></item><item><title><![CDATA[Reply to Python3 support? on Sat, 30 May 2020 17:51:00 GMT]]></title><description><![CDATA[<p dir="auto">Looks like they plan to remove from Debian as well -- <a href="https://wiki.debian.org/Python/2Removal" target="_blank" rel="noopener noreferrer nofollow ugc">https://wiki.debian.org/Python/2Removal</a></p>
]]></description><link>https://xcp-ng.org/forum/post/27196</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/27196</guid><dc:creator><![CDATA[Danp]]></dc:creator><pubDate>Sat, 30 May 2020 17:51:00 GMT</pubDate></item><item><title><![CDATA[Reply to Python3 support? on Sat, 30 May 2020 17:35:38 GMT]]></title><description><![CDATA[<p dir="auto">I don't think there's any "plans" since XOA is build on top of Debian 10. However, we'll keep an eye on next Debian if it requires some changes.</p>
<p dir="auto">Regarding the dep "problem" with Python, I have no idea myself.</p>
]]></description><link>https://xcp-ng.org/forum/post/27195</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/27195</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Sat, 30 May 2020 17:35:38 GMT</pubDate></item></channel></rss>