質問編集履歴
1
エラーを掲載しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -71,4 +71,67 @@
|
|
71
71
|
|
72
72
|
if __name__ == "__main__":
|
73
73
|
main()
|
74
|
+
```
|
75
|
+
|
76
|
+
###Error
|
77
|
+
```python
|
78
|
+
import datetime
|
79
|
+
import schedule
|
80
|
+
import time
|
81
|
+
|
82
|
+
def job():
|
83
|
+
import RSd.py
|
84
|
+
print("実行します")
|
85
|
+
|
86
|
+
schedule.every().day.at("14:53").do(job)
|
87
|
+
|
88
|
+
while True:
|
89
|
+
schedule.run_pending()
|
90
|
+
time.sleep(1)
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
ModuleNotFoundError Traceback (most recent call last)
|
95
|
+
<ipython-input-2-6fab38240cfc> in <module>
|
96
|
+
12
|
97
|
+
13 while True:
|
98
|
+
---> 14 schedule.run_pending()
|
99
|
+
15 time.sleep(1)
|
100
|
+
16
|
101
|
+
|
102
|
+
~\anaconda3\lib\site-packages\schedule\__init__.py in run_pending()
|
103
|
+
561 :data:`default scheduler instance <default_scheduler>`.
|
104
|
+
562 """
|
105
|
+
--> 563 default_scheduler.run_pending()
|
106
|
+
564
|
107
|
+
565
|
108
|
+
|
109
|
+
~\anaconda3\lib\site-packages\schedule\__init__.py in run_pending(self)
|
110
|
+
92 runnable_jobs = (job for job in self.jobs if job.should_run)
|
111
|
+
93 for job in sorted(runnable_jobs):
|
112
|
+
---> 94 self._run_job(job)
|
113
|
+
95
|
114
|
+
96 def run_all(self, delay_seconds=0):
|
115
|
+
|
116
|
+
~\anaconda3\lib\site-packages\schedule\__init__.py in _run_job(self, job)
|
117
|
+
145
|
118
|
+
146 def _run_job(self, job):
|
119
|
+
--> 147 ret = job.run()
|
120
|
+
148 if isinstance(ret, CancelJob) or ret is CancelJob:
|
121
|
+
149 self.cancel_job(job)
|
122
|
+
|
123
|
+
~\anaconda3\lib\site-packages\schedule\__init__.py in run(self)
|
124
|
+
464 """
|
125
|
+
465 logger.info('Running job %s', self)
|
126
|
+
--> 466 ret = self.job_func()
|
127
|
+
467 self.last_run = datetime.datetime.now()
|
128
|
+
468 self._schedule_next_run()
|
129
|
+
|
130
|
+
<ipython-input-1-a182ebbc26f0> in work()
|
131
|
+
3
|
132
|
+
4 def work():
|
133
|
+
----> 5 import RSd.py
|
134
|
+
|
135
|
+
ModuleNotFoundError: No module named 'RSd'
|
136
|
+
|
74
137
|
```
|