Search code examples
odooodoo-11

Issue importing Odoo module


I'm trying to install a module on Odoo12 and it reports this line.

File "/usr/lib/python3.6/ast.py", line 35, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 1
    -*- coding: utf-8 -*-

Anyone could point me in the right direction?

Thanks


Solution

  • You need to add # before -- coding: utf-8 -- this in line. Try using this in your code

     #-*- coding: utf-8 -*-