以下链接的JSFiddle控制台中出现以下错误:
未捕获的错误:[$ injector:modulerr]由于以下原因,无法实例化模块myApp:
错误:[$ injector:nomod]模块“ myApp”不可用!您可能拼错了模块名称,或者忘记了加载它。如果注册模块,请确保将依赖项指定为第二个参数。
http://jsfiddle.net/knot22/3q5fk214/30/
这是HTML:
import time
from distributed import Client
from dask_jobqueue import SLURMCluster
from socket import gethostname
def slow_increment(x):
time.sleep(10)
return [x + 1, gethostname(), time.time()]
cluster = SLURMCluster(
queue='somequeue',
cores=2,
memory='128GB',
project='someproject',
walltime='00:05:00',
job_extra=['-o myjob.%j.%N.out',
'-e myjob.%j.%N.error'],
env_extra=['export I_MPI_FABRICS=dapl',
'source activate dask-jobqueue'])
cluster.scale(2)
client = Client(cluster)
A = client.map(slow_increment, range(8))
B = client.gather(A)
print(client)
for res in B:
print(res)
client.close()
这是JS:
<Client: scheduler='tcp://someip' processes=2 cores=4>
[1, 'bdw-0478', 1540477582.6744401]
[2, 'bdw-0478', 1540477582.67487]
[3, 'bdw-0478', 1540477592.68666]
[4, 'bdw-0478', 1540477592.6879778]
[5, 'bdw-0478', 1540477602.6986163]
[6, 'bdw-0478', 1540477602.6997452]
[7, 'bdw-0478', 1540477612.7100565]
[8, 'bdw-0478', 1540477612.711296]
是什么导致此错误?