質問編集履歴

1

エラーを掲載しました。

2020/10/26 09:05

投稿

TomF
TomF

スコア4

test CHANGED
File without changes
test CHANGED
@@ -145,3 +145,129 @@
145
145
  main()
146
146
 
147
147
  ```
148
+
149
+
150
+
151
+ ###Error
152
+
153
+ ```python
154
+
155
+ import datetime
156
+
157
+ import schedule
158
+
159
+ import time
160
+
161
+
162
+
163
+ def job():
164
+
165
+ import RSd.py
166
+
167
+ print("実行します")
168
+
169
+
170
+
171
+ schedule.every().day.at("14:53").do(job)
172
+
173
+
174
+
175
+ while True:
176
+
177
+ schedule.run_pending()
178
+
179
+ time.sleep(1)
180
+
181
+
182
+
183
+
184
+
185
+
186
+
187
+ ModuleNotFoundError Traceback (most recent call last)
188
+
189
+ <ipython-input-2-6fab38240cfc> in <module>
190
+
191
+ 12
192
+
193
+ 13 while True:
194
+
195
+ ---> 14 schedule.run_pending()
196
+
197
+ 15 time.sleep(1)
198
+
199
+ 16
200
+
201
+
202
+
203
+ ~\anaconda3\lib\site-packages\schedule\__init__.py in run_pending()
204
+
205
+ 561 :data:`default scheduler instance <default_scheduler>`.
206
+
207
+ 562 """
208
+
209
+ --> 563 default_scheduler.run_pending()
210
+
211
+ 564
212
+
213
+ 565
214
+
215
+
216
+
217
+ ~\anaconda3\lib\site-packages\schedule\__init__.py in run_pending(self)
218
+
219
+ 92 runnable_jobs = (job for job in self.jobs if job.should_run)
220
+
221
+ 93 for job in sorted(runnable_jobs):
222
+
223
+ ---> 94 self._run_job(job)
224
+
225
+ 95
226
+
227
+ 96 def run_all(self, delay_seconds=0):
228
+
229
+
230
+
231
+ ~\anaconda3\lib\site-packages\schedule\__init__.py in _run_job(self, job)
232
+
233
+ 145
234
+
235
+ 146 def _run_job(self, job):
236
+
237
+ --> 147 ret = job.run()
238
+
239
+ 148 if isinstance(ret, CancelJob) or ret is CancelJob:
240
+
241
+ 149 self.cancel_job(job)
242
+
243
+
244
+
245
+ ~\anaconda3\lib\site-packages\schedule\__init__.py in run(self)
246
+
247
+ 464 """
248
+
249
+ 465 logger.info('Running job %s', self)
250
+
251
+ --> 466 ret = self.job_func()
252
+
253
+ 467 self.last_run = datetime.datetime.now()
254
+
255
+ 468 self._schedule_next_run()
256
+
257
+
258
+
259
+ <ipython-input-1-a182ebbc26f0> in work()
260
+
261
+ 3
262
+
263
+ 4 def work():
264
+
265
+ ----> 5 import RSd.py
266
+
267
+
268
+
269
+ ModuleNotFoundError: No module named 'RSd'
270
+
271
+
272
+
273
+ ```