Community mailing list archives

Re: Odoo / Python 3

Open For Small Business Ltd, Graeme Gellatly
- 11/12/2015 13:15:09

Hey don't forget there is new python 2.7 release next month. Been testing it for a few months now and for most Odoo stuff 20-25% faster.

On Fri, 13 Nov 2015 7:07 AM Raphaël Valyi <> wrote:
Hello folks,

I just wanted to draw a parallel:
  • so Python 2.x evolved softly till 2.7 and is still widely adopted, like it or not.
  • but in 2008 Python 3 was introduced breaking lot's of things and adoption was terribly low. 8 years later there are still major piece of software such as Odoo no migrated to Python 3. I personally call that Python 2 to 3 a fail.
  • now think about Odoo v9 coming with lots of backward incompatible changes in the accounting... Because Odoo v8 accounting wasn't that all good, v9 will still get adopted. but you see what I mean: when something starts to be good enough and the next version breaks backward compatibility for little practical benefit, then adoption is low and slow. I don't think the migration to v9 will take as many years as the Python 3 migration, but certainly it could take more than 1 year before becoming mainstream...
  • such situations are avoided by smartly designing the migration path and by trying to design it right BEFORE building a community. Or well, else you need to eat it.

On Wed, Nov 11, 2015 at 9:57 PM, Mohamed Magdy <> wrote:
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

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

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:

Post to:

Raphaël Valyi
Founder and consultant
+55 21 3942-2434

Post to: