質問編集履歴
2
さらに調査
test
CHANGED
File without changes
|
test
CHANGED
@@ -111,3 +111,43 @@
|
|
111
111
|
state:
|
112
112
|
|
113
113
|
```
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
pythonの中でboto3をつかっているのですが
|
118
|
+
|
119
|
+
デプロイのタイミングで何か指定する必要があるのでしょうか?
|
120
|
+
|
121
|
+
上記サンプルにはありませんでしたので。。。
|
122
|
+
|
123
|
+
```log
|
124
|
+
|
125
|
+
Traceback (most recent call last):
|
126
|
+
|
127
|
+
File "/_kubeless.py", line 20, in <module>
|
128
|
+
|
129
|
+
mod = importlib.import_module(os.getenv('MOD_NAME'))
|
130
|
+
|
131
|
+
File "/opt/bitnami/python/lib/python3.7/importlib/__init__.py", line 127, in import_module
|
132
|
+
|
133
|
+
return _bootstrap._gcd_import(name[level:], package, level)
|
134
|
+
|
135
|
+
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
|
136
|
+
|
137
|
+
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
|
138
|
+
|
139
|
+
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
|
140
|
+
|
141
|
+
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
|
142
|
+
|
143
|
+
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
|
144
|
+
|
145
|
+
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
|
146
|
+
|
147
|
+
File "/kubeless/sample.py", line 2, in <module>
|
148
|
+
|
149
|
+
import boto3
|
150
|
+
|
151
|
+
ModuleNotFoundError: No module named 'boto3'
|
152
|
+
|
153
|
+
```
|
1
エラー内容追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -45,3 +45,69 @@
|
|
45
45
|
|
46
46
|
|
47
47
|
ご対応方法をご教示願います。
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
追記
|
52
|
+
|
53
|
+
```yaml
|
54
|
+
|
55
|
+
containerStatuses:
|
56
|
+
|
57
|
+
- containerID: docker://xxx
|
58
|
+
|
59
|
+
image: kubeless/python@sha256:xxx
|
60
|
+
|
61
|
+
imageID: docker-pullable://kubeless/python@sha256:xxx
|
62
|
+
|
63
|
+
lastState:
|
64
|
+
|
65
|
+
terminated:
|
66
|
+
|
67
|
+
containerID: docker://xxxx
|
68
|
+
|
69
|
+
exitCode: 1
|
70
|
+
|
71
|
+
finishedAt: "2021-02-10T05:53:27Z"
|
72
|
+
|
73
|
+
reason: Error
|
74
|
+
|
75
|
+
startedAt: "2021-02-10T05:53:27Z"
|
76
|
+
|
77
|
+
name: sample
|
78
|
+
|
79
|
+
ready: false
|
80
|
+
|
81
|
+
restartCount: 9
|
82
|
+
|
83
|
+
started: false
|
84
|
+
|
85
|
+
state:
|
86
|
+
|
87
|
+
waiting:
|
88
|
+
|
89
|
+
message: back-off 5m0s restarting failed container=sample pod=sample-xxx
|
90
|
+
|
91
|
+
reason: CrashLoopBackOff
|
92
|
+
|
93
|
+
hostIP: xx.xxx.xxx.xxx
|
94
|
+
|
95
|
+
initContainerStatuses:
|
96
|
+
|
97
|
+
- containerID: docker://xxx
|
98
|
+
|
99
|
+
image: kubeless/unzip@sha256:xxx
|
100
|
+
|
101
|
+
imageID: docker-pullable://kubeless/unzip@sha256:xxx
|
102
|
+
|
103
|
+
lastState: {}
|
104
|
+
|
105
|
+
name: prepare
|
106
|
+
|
107
|
+
ready: true
|
108
|
+
|
109
|
+
restartCount: 0
|
110
|
+
|
111
|
+
state:
|
112
|
+
|
113
|
+
```
|