1

I installed OpenERP 7.0, Eclipse 4.2, and Python 2.7 in Windows 7.

Followed step by step tutor, of how to make a new module in OpenERP, yet am keep getting this error.

Traceback (most recent call last):
File "C:\Program Files (x86)\OpenERP 7.0-20140227-001259\Server\server\openerp\addons\student\student.py", line 1, in <module>
from osv import osv
File "C:\Program Files (x86)\OpenERP 7.0-20140227-001259\Server\server\openerp\osv\osv.py", line 28
import IntegrityError, OperationalError, errorcodes
^
IndentationError: unexpected indent
1
  • i think you need to provide your code it clearly says indent giving error, python is sensitive to indentation please check and tidy up your coding again exactly as the tutorial provided. Apr 29, 2014 at 9:50

2 Answers 2

1

Indentation error , Python support one tab after you define a class , or function , then with a class one tab for name , cloumns etc and the same in functions. i hope you understand now , its not confusing :)

1

Indent is usually a space error or tab, python indent consists of 4 spaces only, double check line 27,28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.