This question has been flagged
1 Reply
11716 Views

I want to debug with Pycharm on windows 10. So I reference the youtube video.

How to debug Odoo using Pycharm in Window 10 https://www.youtube.com/watch?v=aCXlh4Z2mbQ

I copy the server directory form odoo 11 installed directory. And then use Pycharm to open.

I also install Package reuirements and Visual C++ 14.0(in odoo 11 vcredist directory).

I install win-psycopg for python 3.5, because it does not support Python 3.6.1.

My Pycharm configuration setting as below:

Script path = odoo-bin

Parameters = -w openpg -r openpgpwd --addons-path=addons

Working directory = D:\tmp\server

When I run the project , Pycharm displays error messages as below:

Does somebody know how to solve it?

D:\Python36\python.exe odoo-bin -w openpg -r openpgpwd --addons-path=addons

Traceback (most recent call last):

File "odoo-bin", line 5, in <module>

import odoo

File "D:\tmp\server\odoo\__init__.py", line 84, in <module>

from . import modules

File "D:\tmp\server\odoo\modules\__init__.py", line 8, in <module>

from . import db, graph, loading, migration, module, registry

File "D:\tmp\server\odoo\modules\graph.py", line 10, in <module>

import odoo.tools as tools

File "D:\tmp\server\odoo\tools\__init__.py", line 10, in <module>

from .convert import *

File "D:\tmp\server\odoo\tools\convert.py", line 22, in <module>

from .yaml_import import convert_yaml_import

File "D:\tmp\server\odoo\tools\yaml_import.py", line 23, in <module>

from .safe_eval import safe_eval

File "D:\tmp\server\odoo\tools\safe_eval.py", line 21, in <module>

from psycopg2 import OperationalError

File "D:\Python36\lib\site-packages\psycopg2-2.6.2-py3.6-win-amd64.egg\psycopg2\__init__.py", line 50, in <module>

from psycopg2._psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID

ModuleNotFoundError: No module named 'psycopg2._psycopg'

Process finished with exit code 1

Avatar
Discard
Author Best Answer

I had solved this problem and write the article as below: 

Odoo Class 5 Integrate and Debug with Pycharm or Intellij 2018.1 

http://blog.xuite.net/akira32/home/574971104  

Avatar
Discard