Some questions about Windows debugging ODOO8.0

Source: Internet
Author: User

After the Ubuntu Building 8.0 debugging environment, try windows to set up the development environment.

The final debugging and development, or will return to the Linux environment, due to the previous period of time the hand of the base, change the partition table, the grub to do ha. Hey! Later, rebuild the MBR and manually retrieve the partitioned table (no backup). Finally the 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 system environment for debugging odoo8.0 is the win2012 R2 evaluation version, which has expired and is installed in the VM virtual machine. Pycharm Debugging.

The installation process is very easy, more tutorials on the web, the following only a few questions, is a part of the need to pay attention to:

(a) False assumptions debugging is relatively simple, it is recommended to download the allinone7.0 and 8.0 version number on the machine respectively. They are then installed separately in different folders. (See note i)

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


(ii) similar to set the Debug configuration parameters for Pycharm in the same way as in the "Ubuntu 8.0 possible issues with Pycharm debugging".

Because it is a temporary development environment, I did not download the source code debugging, but use the green version number. Add the green version of the folder to the Pycharm and debug the Openerp-server file.


(iii) In addition to the components required for commissioning 7.0, the following components must be installed, provided that only the normal access to the external network can be.

--The following is a odoo8.0 debug need to install more 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

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

Otherwise it will be reported similar to the error ' Error:no user specified for the connection to the database '.


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

Ability to add parameters such as the following in the configuration file openerp-server.conf

db_name = Falsedbfilter = GPT8A1
I didn't change the py file, and I don't have to worry about it, it will find the db you specified.

1


(vi) As to why 8.0 is 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 folder is the system's own initiative to generate, you can temporarily without the control of it;

' D:\\greenodoo-8.0-win32\\source\\openerp\\addons ' folder. This is only the base base module, you'd better not move it, the corresponding built-in base_addons parameters;

' D:\\greenodoo-8.0-win32\\source\\addons ' folder. The components in this are the most complete. You move! It is for the built-in main_addons parameters.



(vii) Someone will find out why I installed the version number inside. There is no PG library. Or what if I can't start the PG library while I'm debugging?

Very easy. Didn't you install the allinone7.0? The service of its PG is independent. Simple, huh? Start it (although its version number may be 9.2.) Never mind!

)。

When debugging, specify Pg_path in the same configuration file.

For example, my debug profile is so that many other parameters can be set in the same way:

[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 put. It is so simple, do not spend time on building a good development environment. Oh. The result is something like this,

2


Note one:

1) Step Green version:

Https://github.com/buke/GreenOdoo

2) Official:

Source code 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


Copyright notice: This article blog original articles, blogs, without consent, may not be reproduced.

Some questions about Windows debugging ODOO8.0

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.