Several questions about ODOO8.0 debugging on windows, odoo8.0

Source: Internet
Author: User

Several questions about ODOO8.0 debugging on windows, odoo8.0

After setting up a debugging environment of 8.0 on Ubuntu, I tried to build a development environment on windows.

The final debugging and development will still go back to the Linux environment, because some time ago, we had to modify the partition table and implement grub. Ah! Later, the mbr was rebuilt, and the partition table was manually retrieved (no backup), so the data was not lost.

Install the windows development environment to temporarily solve several problems. To sum up, the problem of coexistence between Windows and Linux cannot be squashed when the disk is tight! -_-!!!

The system environment for debugging odoo8.0 is win2012 R2 evaluation version, which has expired. It is installed in the vmvm and debugged by pycharm.

The installation process is very simple. There are many tutorials on the Internet. The following describes only a few issues, which are important:

(1) If debugging is relatively simple, we recommend that you download the allinone7.0 and 8.0 versions on the machine and install them in different directories. (See note 1)

The reason is that some components or environments can be configured or deployed in the installation package, which is a simple method and will not be directly used for debugging.


(2) set the debug configuration parameters of PyCharm in the same way as running and debugging Odoo 8.0 with pycharm In Ubuntu.

Because it is a temporary development environment, I did not download the source code for debugging, but used the green version, added the green version directory in pycharm, and then debug the openerp-server File.


(3) In addition to the components that need to be installed during 7.0 debugging, the following components must be installed on the condition that the Internet can be accessed normally.

-- The following are components that need to be installed in odoo8.0 debugging, compared with 7.0. importError: No module named pyPdfC: \ Users \ Administrator> easy_install py1_searching for pyPdfReading https://pypi.python.org/simple/pyPdf/Reading http://pybrary.net/pyPdf/Download error on warn [Errno 11002] getaddrinfo failed -- Some packages may not be found! Reading http://stompstompstomp.com/pyPdf/Download error on http://stompstompstomp.com/py#/: [Errno 11002] getaddrinfo failed -- Some packages may not be found! Best match: pyPdf 1.13 Downloading 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 pas SlibSearching 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 each processing dependencies for passlib

(4) Before debug, the green configuration file openerp-server.conf needs to be moved to the source directory.

Otherwise, an ERROR similar to 'error: No user specified for the connection to the database' will be reported '.


(5) If you are prompted that the database cannot be accessed, check the log more during debugging. It may be that the database accessed by default is directed to ipvs.

You can add the following parameters in the profile openerp-server.conf:

db_name = Falsedbfilter = GPT8a1
I didn't modify the py file, and I don't have to worry about this issue. It will go to your specified db,

1


(6) Why is addons loaded from three different locations when 8.0 is started?

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

The data \ addons \ 8.0 directory is automatically generated by the system. You do not need to worry about it for the time being;

'D: \ GreenOdoo-8.0-win32 \ source \ openerp \ addons 'directory, which is only the base module, you 'd better not touch it, corresponding to the built-in base_addons parameter;

'D: \ GreenOdoo-8.0-win32 \ source \ addons directory, the components here are the most complete, you can move it! It has built-in main_addons parameter values.


(7) Some people will find out why I have no pg library in the installed version or why I cannot start the pg library during debugging. What should I do?

It's easy. Didn't you install allinone7.0? Its pg services are independent. Is it simple? Start it (although its version may be 9.2, it doesn't matter !).

During debugging, specify pg_path in the same configuration file.

For example, if my debugging configuration file is like this, more parameters can be set as follows:

[options]; This is the password that allows database operations:; admin_passwd = admindb_host = localhostdb_port = 5432db_user = openpgdb_password = openpgpwddb_name = Falsedbfilter = GPT8a1pg_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! That's simple. Don't spend time building the environment. The result is similar,

2


Note 1:

1) Step Green Edition:

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 edition:

Http://mobile.odoo.co.in

4) unofficial binary python package

Http://www.lfd.uci.edu /~ Gohlke/pythonlibs/


-- EOF



How does one use GHOST80 in Windows XP?

1. You can download the MAXDOS or dwarf DOS toolbox. After installation, there will be more boot menus and pure DOS.

Or download the one-click ghost hard disk version to back up the C disk.

The software is available in Baidu search, Huawei army, or skysky.

In addition, GHOST8.0 tutorials are also found in Baidu...

We recommend that you use 8.3

Windows Phone SDK80 download problems

You can download the offline package from the official website and install it locally.
It is best to connect to the Internet after installation. It seems that you need to activate the Internet after installation.
PS: free activation !!!
When installing the SDK, check whether your computer supports the SDK installation requirements. If not, the installation will fail.
 

Related Article

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.