Community mailing list archives

community@mail.odoo.com

Re: Odoo / Python 3

by
dar
- 11/11/2015 21:06:17

Also, and backed up by efficiency and speed argument, should be annexed to this discussion the quest for making Odoo pypy compatible. There has been attempts or at least good intentions recorded from Odoo and Community, but it does not seem a prio in the moment.

I personally feel, the responsiveness still is deficient in some terms in order to claim state of the art (and what customers expect or will expect in the near future).

Mohamed Magdy <moh.magdy40@gmail.com> schrieb am Mi., 11. Nov. 2015 um 18:57:
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:

Installation:
  • 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.
Conversion:
  • 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".

Conclusion:
  • 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 <moh.magdy40@gmail.com> 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 <j.zahid@gmail.com> 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 ?

rgrds  

 

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

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe