Skip to content

Instantly share code, notes, and snippets.

@EKami
Created March 3, 2018 19:46
Show Gist options
  • Save EKami/4adc0c79d576843d37f0ec101b170154 to your computer and use it in GitHub Desktop.
Save EKami/4adc0c79d576843d37f0ec101b170154 to your computer and use it in GitHub Desktop.
Error: Failed to start algorithm - Traceback (most recent call last):
File "/opt/algorithm/bin/pipe.py", line 14, in <module>
algorithm = __import__('src.'+config['algoname'], fromlist=["apply"])
File "/opt/algorithm/src/srgan_algorithmia.py", line 6, in <module>
from torchlite.eval import eval
File "/opt/algorithm/dependencies/torchlite/eval/eval.py", line 5, in <module>
from torchlite.data.datasets.srgan import EvalDataset
File "/opt/algorithm/dependencies/torchlite/data/datasets/srgan.py", line 3, in <module>
import torchlite.nn.transforms as ttransforms
File "/opt/algorithm/dependencies/torchlite/nn/transforms.py", line 20, in <module>
from imgaug import augmenters as iaa
File "/opt/algorithm/dependencies/imgaug/__init__.py", line 2, in <module>
from .imgaug import *
File "/opt/algorithm/dependencies/imgaug/imgaug.py", line 16, in <module>
from skimage import draw
File "/opt/algorithm/dependencies/skimage/__init__.py", line 158, in <module>
from .util.dtype import *
File "/opt/algorithm/dependencies/skimage/util/__init__.py", line 5, in <module>
from .apply_parallel import apply_parallel
File "/opt/algorithm/dependencies/skimage/util/apply_parallel.py", line 8, in <module>
import dask.array as da
File "/opt/algorithm/dependencies/dask/array/__init__.py", line 44, in <module>
from . import random, linalg, ghost, learn, fft
File "/opt/algorithm/dependencies/dask/array/ghost.py", line 8, in <module>
from toolz.curried import map
File "/opt/anaconda3/lib/python3.5/site-packages/toolz/curried/__init__.py", line 53, in <module>
_curry_namespace(vars(toolz)),
File "/opt/anaconda3/lib/python3.5/site-packages/toolz/curried/__init__.py", line 48, in _curry_namespace
for name, f in ns.items() if '__' not in name
File "/opt/anaconda3/lib/python3.5/site-packages/toolz/curried/__init__.py", line 48, in <genexpr>
for name, f in ns.items() if '__' not in name
File "/opt/anaconda3/lib/python3.5/site-packages/toolz/curried/__init__.py", line 42, in _should_curry
return (callable(f) and _nargs(f) > 1 or f in do_curry)
File "/opt/anaconda3/lib/python3.5/site-packages/toolz/curried/__init__.py", line 35, in _nargs
return len(inspect.getargspec(f).args)
File "/opt/anaconda3/lib/python3.5/inspect.py", line 1050, in getargspec
raise ValueError("Function has keyword-only arguments or annotations"
ValueError: Function has keyword-only arguments or annotations, use getfullargspec() API which can support them
Failed to load: exited with code 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment