Community mailing list archives

Re: Odoo / Python 3

Mohamed Magdy
- 11/11/2015 18:53:05
Hi Zahid,

For 50 minutes, I did some search and followed this page to convert the code to be compatible with python3.4 and here is my story:

  • I downloaded the most updated version of Odoo from Github.
  • A new 'virtualenv' was created and contained only python3.4'.
  • The command 'pip3.4 install -r requirements' told me many times that the packages in the file are not founded, so I tried to find it manually. 
    • the package 'pydot' should be 'pydot2'.
    • the package 'python-ldap' should be 'python3-ldap'.
    • the package 'jcconv' is not found at all.
  • I ran the package '2to3' to automate the conversion process with no luck.==> this package can be installed on fedora "sudo yum install python-tools".

  • Converting Odoo to work with python3 is not easy at all as you need to convert all missing dependencies to python3 as a first step. OR we should wait for the python community to fix this.
  • Then, we will go for converting Odoo code to fit python3.
  • The main problem with python3 is you can not depend on it to build a sensitive app like Odoo.
The horrible question is: "ARE WE STUCK WITH PYTHON 2.7?"

You may want to see this project and its website where you can find a link for a demo. The good point in this project is that it is using Django that using the most updated version of python per each release.

Thank you :)

Best Regards,

Mohamed Magdy
Odoo Technical Team Leader
Mob 1: +201114347478
Mob 2: +201095179215

On Thu, Nov 12, 2015 at 12:36 AM, Mohamed Magdy <> wrote:
Hi Zahid,

I am very keen to hear from Odoo SA too. I had the same question as yours and I could not find a good answer for their situation to use Python 2.7 instead of Python 3.x.

I think I will invest more time to find an answer.

Best Regards,

Mohamed Magdy
Odoo Technical Team Leader
Mob 1: +201114347478
Mob 2: +201095179215

On Wed, Nov 11, 2015 at 1:42 PM, zahid jalal <> wrote:
Hi community
I hope someone from Odoo SA is reading this. So we can get some answers. or at least their official opinion about the topic.
Python 3 is here since 2008. but Odoo is still in the old 2.7. All major libs on wich Odoo depends are in v3. And major linux dists have python 3 as default, this taken alone will ease Odoo deployement tasks.
So is there any roadmap to migrate to python 3 for Odoo 10 ? how Community can contribute ?



SSLL, Intégrateur Odoo.
Intégration de Services.
BI and IT consulting.
tél  0661360233 - 0636898882
fax 0528215738

Post to: