Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
7988 Lượt xem

when i run odoo version 10 in terminal using:

 python odoo-bin --addons ./addons

it give the error as below:

Error:  from openpyxl.styles import Style,

Font, Alignment, Border, Side ImportError: cannot import name Style

can anyone get it this error?

Please suggest the solution.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

 I have the same error in Odoo 10.  I have written below the line.

 from openpyxl.styles import PatternFill, Border, Side, Alignment, Protection, Font

instead of

from openpyxl import Styles, Font, Alignment, Border, Side
Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 3 21
5656
5
thg 6 20
36405
2
thg 7 25
4387
0
thg 6 25
2
2
thg 12 24
7593