cancel
Showing results for 
Search instead for 
Did you mean: 

Building Nuxeo with Python 3 instead of Python 2?

ElmarKnipp_
Confirmed Champ
Confirmed Champ

To build Nuxeo yourself you need python2, as explicit stated in the official docs: https://doc.nuxeo.com/corg/getting-the-nuxeo-source-code . Python 2 is EOL for more than nearly 3 years now and is not supported anymore on most Linux distributions (including Arch Linux and CentOS).

What is the best strategy to build Nuxeo without Python 2? Has anybody updated the needed script to version3 and can contribute it to the community?

Thanks!

2 REPLIES 2

Konrad_Krenzlin
Confirmed Champ
Confirmed Champ

Good idea. This was a thing still on my todo. I quickly converted the clone.py (+ the py files in scripts) using 2to3 and added two .decode("utf8")

Attached is a patch file. You should be able to just run git apply py3.patch in the source dir.

This was just a quick fix and it works for me. Let me know if there is a problem for you. That said, there is a lot more that needs to be done to the python scripts. But they work. So not gonna spend much time on these.

Thanks Konrad!

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.