A few questions about debugging ODOO8.0 on Windows

Source: Internet
Author: User

After setting up a 8.0 debug environment on Ubuntu, try to build a development environment on Windows.

The final debugging and development will return to the Linux environment, because the previous period of time the hands of the cheap, modify the partition table, the grub to the ha. Hey! Later rebuilt the MBR, manually retrieve the partition table (no backup), finally data is not lost.

Install the Windows Development environment in order to temporarily resolve a few issues. To summarize, for Windows and Linux coexistence problems, when the disk tense, the hands can not be cheap ah! -_-!!!

The debug odoo8.0 system environment is win2012 R2 evaluation version, has expired; installed in VM VMS, Pycharm debugging.

The installation process is very simple, the online more tutorials, the following only a few questions, is to be aware of the part:

(a) If you want to debug more simple, it is recommended to download the version allinone7.0 and 8.0 on the machine, respectively, and then installed in different directories. (See note i)

As for the reason, it is generally a simple way that some components or environments can be configured or deployed in the installation package, but debugging will not be used directly in them anyway.


(ii) similar to the "Ubuntu under the Pycharm run debugging Odoo 8.0 possible problems" way to set the Pycharm Debug configuration parameters.

Because it is a temporary development environment, I did not download the source debugging, but use the green version, add the green version of the directory in Pycharm, and then debug debugging Openerp-server file.


(iii) In addition to the components that need to be installed when debugging 7.0, the following components need to be installed as long as the extranet is normally accessed.

--The following is a odoo8.0 debug requires multiple installation of components, compared to 7.0. Importerror:no module named Pypdfc:\users\administrator>easy_install Pypdfsearching for pypdfreading https://pypi.python.org/simple/pyPdf/Reading http://pybrary.net/pyPdf/Download Error on http://pybrary.net/pyPdf/: [Errno 11002] getaddrinfo failed--Some packages could not be found! Reading http://stompstompstomp.com/pyPdf/Download Error on http://stompstompstomp.com/pyPdf/: [Errno 11002] Getaddrinfo failed--Some packages May is not found! Best Match:pypdf 1.13Downloading https://pypi.python.org/packages/source/p/pyPdf/pyPdf-1.13.tar.gz#md5= 7a75ef56f227b78ae62d6e38d4b6b1daprocessing pypdf-1.13.tar.gzwriting C:\users\admini~1\appdata\local\temp\easy_ Install-bjtpkg\pypdf-1.13\setup.cfgrunning pypdf-1.13\setup.py-q Bdist_egg--dist-dir c:\users\admini~1\appdata\ Local\temp\easy_install-bjtpkg\pypdf-1.13\egg-dist-tmp-etbabhnot SVN repositoryzip_safe flag not set; Analyzing Archive Contents ... Adding pypdf 1.13 to easy-install.pth fileinstalled D:\python27\lib\site-packages\pypdf-1.13-py2.7.eggprocessing dependencies for pypdffinished processing dependencies for Pypdfimporterror:no module named Passlib.contextc:\users\administrator>easy_install passlibsearching for Passlibreading https://pypi.python.org/simple/passlib/Best match:passlib 1.6.2Downloading https://pypi.python.org/ Packages/source/p/passlib/passlib-1.6.2.tar.gz#md5=2f872ae7c72ca338634c618f2cff5863processing Passlib-1.6.2.tar.gzwriting c:\users\admini~1\appdata\local\temp\easy_install-gydh8e\passlib-1.6.2\ Setup.cfgrunning passlib-1.6.2\setup.py-q Bdist_egg--dist-dir c:\users\admini~1\appdata\local\temp\easy_ Install-gydh8e\passlib-1.6.2\egg-dist-tmp-bsbrr3not SVN repositoryadding passlib 1.6.2 to Easy-install.pth fileinstalled d:\python27\lib\site-packages\passlib-1.6.2-py2.7.eggProcessing dependencies for passlibfinished Processing dependencies for Passlib

(iv) Before debug, the green version of the configuration file openerp-server.conf need to be moved to the source directory.

Otherwise, an error like this will be reported ' Error:no user specified for the connection to the database '.


(v) If the prompt can not access the database, debugging more time to look at log, may be the default access to the database to find Postgres.

You can add the following parameters in the configuration file openerp-server.conf

db_name = Falsedbfilter = GPT8A1
I did not modify the py file, and do not have to worry about similar problem, it will go to find your designated DB,

1


(vi) As to why 8.0 at startup, addons will be loaded from 3 different locations?

Of course, the correct addons depends on the settings you addons_path in the config file! The following is a description of the green version:

data\\addons\\8.0 directory is automatically generated by the system, you can not control it temporarily;

' D:\\greenodoo-8.0-win32\\source\\openerp\\addons ' directory, which is just the base base module, you'd better not move it, corresponding to the built-in base_addons parameters;

' D:\\greenodoo-8.0-win32\\source\\addons ' directory, the components are the rest of the whole, you move it! It is for the built-in main_addons parameter value.


(vii) Some people will find out, why I installed the version, there is no PG library, or I am debugging when I can not start the PG library what to do?

Very simple, didn't you install the allinone7.0? It's PG's service is independent, simple right? Start it (although its version may be 9.2, it's okay!) )。

When debugging, specify Pg_path in the same configuration file.

For example, my Debug configuration file is this way, more parameters can be set:

[Options]; This was the password that allows database operations:; ADMIN_PASSWD = Admindb_host = Localhostdb_port = 5432db_user = Openpgdb_password = Openpgpwddb_name = Falsedbfilter = GPT8 A1pg_path = D:/openerp 7.0-20140305-001210/postgresql/binaddons_path = D:\GreenOdoo-8.0-win32\source\addonsdata_dir = Datalog_level = Debug_sql; logfile = Openerp-server.log; Logrotate = True

No problem, take it! It is so simple, do not spend time on the building environment, hehe. The result is something like this,

2


Note one:

1) Step Green version:

Https://github.com/buke/GreenOdoo

2) Official:

SOURCE Download Https://github.com/odoo/odoo

OPENERP 7.0 Program (and source code) download http://nightly.openerp.com/7.0

Odoo 8.0 Program (and source code) download http://nightly.openerp.com/8.0/nightly/

3) Mobile Version:

Http://mobile.odoo.co.in

4) unofficial Binary Python package

http://www.lfd.uci.edu/~gohlke/pythonlibs/


--eof


A few questions about debugging ODOO8.0 on Windows

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.