質問編集履歴

2

エラーを全文追加

2019/12/02 11:55

投稿

mochmoch
mochmoch

スコア39

test CHANGED
File without changes
test CHANGED
@@ -22,11 +22,53 @@
22
22
 
23
23
  ```console
24
24
 
25
+ Traceback (most recent call last):
26
+
25
- File "{path to parent dir}/test.py", line 6, in <module>
27
+ File "/home/mochi/workspace/python/excel/test.py", line 6, in <module>
26
28
 
27
29
  book.save("test.xlsx")
28
30
 
31
+ File "/home/mochi/.local/lib/python3.6/site-packages/openpyxl/workbook/workbook.py", line 408, in save
32
+
33
+ save_workbook(self, filename)
34
+
35
+ File "/home/mochi/.local/lib/python3.6/site-packages/openpyxl/writer/excel.py", line 293, in save_workbook
36
+
37
+ writer.save()
38
+
39
+ File "/home/mochi/.local/lib/python3.6/site-packages/openpyxl/writer/excel.py", line 275, in save
40
+
41
+ self.write_data()
42
+
43
+ File "/home/mochi/.local/lib/python3.6/site-packages/openpyxl/writer/excel.py", line 75, in write_data
44
+
45
+ self._write_worksheets()
46
+
47
+ File "/home/mochi/.local/lib/python3.6/site-packages/openpyxl/writer/excel.py", line 215, in _write_worksheets
48
+
49
+ self.write_worksheet(ws)
50
+
51
+ File "/home/mochi/.local/lib/python3.6/site-packages/openpyxl/writer/excel.py", line 200, in write_worksheet
52
+
29
- >> 略
53
+ writer.write()
54
+
55
+ File "/home/mochi/.local/lib/python3.6/site-packages/openpyxl/worksheet/_writer.py", line 354, in write
56
+
57
+ self.write_top()
58
+
59
+ File "/home/mochi/.local/lib/python3.6/site-packages/openpyxl/worksheet/_writer.py", line 98, in write_top
60
+
61
+ self.write_properties()
62
+
63
+ File "/home/mochi/.local/lib/python3.6/site-packages/openpyxl/worksheet/_writer.py", line 60, in write_properties
64
+
65
+ self.xf.send(props.to_tree())
66
+
67
+ File "/home/mochi/.local/lib/python3.6/site-packages/openpyxl/worksheet/_writer.py", line 294, in get_stream
68
+
69
+ xf.write(el)
70
+
71
+ File "src/lxml/serializer.pxi", line 1652, in lxml.etree._IncrementalFileWriter.write
30
72
 
31
73
  TypeError: got invalid input value of type <class 'xml.etree.ElementTree.Element'>, expected string or Element
32
74
 

1

ハイライトがおかしくなっていたので確認

2019/12/02 11:54

投稿

mochmoch
mochmoch

スコア39

test CHANGED
File without changes
test CHANGED
@@ -44,7 +44,7 @@
44
44
 
45
45
 
46
46
 
47
- よろいくお願いいたします
47
+ よろいくお願いいたします
48
48
 
49
49
 
50
50