MacOS Sierra (10.12.6), Odoo (11.0), Python (3.5.4) configuration

Source: Internet
Author: User
Tags virtualenv

Yan Odoo11 support Python3 Environment, hurriedly on the Mac platform to try:

Pre-Setup, refer to another article: MacOS Sierra 10.12.6 Odoo 10.0 Development Environment Configuration

Because Odoo11 has not been formally released, 11 version number of the source branch has not been established, we from the master branch to obtain the latest 11 source code, in order to speed up, only get the latest source, you can delete the Odoo11 directory later, repeat this operation updated to the latest source:

CD ~/odoo-dev/odoogit clone https://github.com/odoo/odoo.git--depth 1--branch master--single-branch odoo11

The Python version of Mac comes with 2.7.10 and needs to be downloaded to install Python3 for Mac:

https://www.python.org/downloads/mac-osx/

Note To download the Python 3.5.4 version, do not use the 3.6.2 version, otherwise startup Odoo11 will encounter the following error:

In Fix_flags    raise ValueError ("Cannot use LOCALE flag with a str pattern")

Download the python-3.5.4-macosx10.6.pkg to complete the installation.

Open the Mac Terminal command line:

First set up a directory to save the VIRTUALENV runtime environment, such as:

CD ~/odoo-devmkdir Env.py3

Then, install Py3 to run the file

Virtualenv--python=python3.5 Env.py3

Next, enter the operating environment

SOURCE Env.py3/bin/activate

Note that the command-line prompt changes to the front-most: (ENV.PY3) hint.

During the initial attempt, the following error was encountered when installing Odoo's Python support library:

Valueerror:jpeg is required unless explicitly disabled using--DISABLE-JPEG, aborting

This is due to the lack of a libjpeg library, which is used for brew installation:

Brew Install Libjpeg

After completion, you can install support components, depending on the network conditions, the speed may be slow, may require scientific Internet access:

Pip Install-r odoo/odoo11/requirements.txt

To prepare the ODOO11 configuration file:

Copy the odoo.conf to the Odoo-dev/odoo directory from the Odoo-dev/odoo/odoo11/debian directory,

CP odoo/odoo11/debian/odoo.conf odoo/odoo11.conf

Open with a text editor TextEdit, and Save as modified:

[Options]; This was the password that allows database operations:; ADMIN_PASSWD = Admindb_host = 127.0.0.1db_port = 5432db_user = Odoodb_password = Odooaddons_path = Odoo/odoo11/addons

All right, it's hard! It's time for odoo11 to shine on Python3:

Odoo/odoo11/odoo-bin-c odoo/odoo11.conf

If you are interested in further discussion, welcome to join Maxodoo QQ Group: 529322126

MacOS Sierra (10.12.6), Odoo (11.0), Python (3.5.4) configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.