Lissanro

TypeError("'<' not supported between instances of 'PyCall.jl

May 21st, 2020
29
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ERROR: LoadError: PyError ($(Expr(:escape, :(ccall(#= /home/lissanro/.julia/packages/PyCall/zqDXB/src/pyfncall.jl:43 =# @pysym(:PyObject_Call), PyPtr, (PyPtr, PyPtr, PyPtr), o, pyargsptr, kw))))) <class 'TypeError'>
  2. TypeError("'<' not supported between instances of 'PyCall.jlwrap' and 'PyCall.jlwrap'")
  3. File "/usr/local/lib/python3.8/dist-packages/fastai2/vision/data.py", line 51, in from_name_func
  4. return cls.from_path_func(path, fnames, f, **kwargs)
  5. File "/usr/local/lib/python3.8/dist-packages/fastai2/vision/data.py", line 45, in from_path_func
  6. return cls.from_dblock(dblock, fnames, path=path, **kwargs)
  7. File "/usr/local/lib/python3.8/dist-packages/fastai2/data/core.py", line 149, in from_dblock
  8. return dblock.dataloaders(source, path=path, bs=bs, val_bs=val_bs, shuffle_train=shuffle_train, device=device, **kwargs)
  9. File "/usr/local/lib/python3.8/dist-packages/fastai2/data/block.py", line 97, in dataloaders
  10. dsets = self.datasets(source)
  11. File "/usr/local/lib/python3.8/dist-packages/fastai2/data/block.py", line 94, in datasets
  12. return Datasets(items, tfms=self._combine_type_tfms(), splits=splits, dl_type=self.dl_type, n_inp=self.n_inp, verbose=verbose)
  13. File "/usr/local/lib/python3.8/dist-packages/fastai2/data/core.py", line 261, in __init__
  14. self.tls = L(tls if tls else [TfmdLists(items, t, **kwargs) for t in L(ifnone(tfms,[None]))])
  15. File "/usr/local/lib/python3.8/dist-packages/fastai2/data/core.py", line 261, in <listcomp>
  16. self.tls = L(tls if tls else [TfmdLists(items, t, **kwargs) for t in L(ifnone(tfms,[None]))])
  17. File "/usr/local/lib/python3.8/dist-packages/fastcore/foundation.py", line 41, in __call__
  18. res = super().__call__(*((x,) + args), **kwargs)
  19. File "/usr/local/lib/python3.8/dist-packages/fastai2/data/core.py", line 202, in __init__
  20. self.setup(train_setup=train_setup)
  21. File "/usr/local/lib/python3.8/dist-packages/fastai2/data/core.py", line 215, in setup
  22. self.tfms.setup(self, train_setup)
  23. File "/usr/local/lib/python3.8/dist-packages/fastcore/transform.py", line 178, in setup
  24. for t in tfms: self.add(t,items, train_setup)
  25. File "/usr/local/lib/python3.8/dist-packages/fastcore/transform.py", line 182, in add
  26. t.setup(items, train_setup)
  27. File "/usr/local/lib/python3.8/dist-packages/fastcore/transform.py", line 77, in setup
  28. return self.setups(getattr(items, 'train', items) if train_setup else items)
  29. File "/usr/local/lib/python3.8/dist-packages/fastcore/dispatch.py", line 98, in __call__
  30. return f(*args, **kwargs)
  31. File "/usr/local/lib/python3.8/dist-packages/fastai2/data/transforms.py", line 181, in setups
  32. if self.vocab is None and dsets is not None: self.vocab = CategoryMap(dsets, add_na=self.add_na)
  33. File "/usr/local/lib/python3.8/dist-packages/fastai2/data/transforms.py", line 167, in __init__
  34. if sort: items = items.sorted()
  35. File "/usr/local/lib/python3.8/dist-packages/fastcore/foundation.py", line 348, in sorted
  36. return self._new(sorted(self.items, key=k, reverse=reverse))
  37.  
  38. Stacktrace:
  39. [1] pyerr_check at /home/lissanro/.julia/packages/PyCall/zqDXB/src/exception.jl:60 [inlined]
  40. [2] pyerr_check at /home/lissanro/.julia/packages/PyCall/zqDXB/src/exception.jl:64 [inlined]
  41. [3] _handle_error(::String) at /home/lissanro/.julia/packages/PyCall/zqDXB/src/exception.jl:81
  42. [4] macro expansion at /home/lissanro/.julia/packages/PyCall/zqDXB/src/exception.jl:95 [inlined]
  43. [5] #110 at /home/lissanro/.julia/packages/PyCall/zqDXB/src/pyfncall.jl:43 [inlined]
  44. [6] disable_sigint at ./c.jl:446 [inlined]
  45. [7] __pycall! at /home/lissanro/.julia/packages/PyCall/zqDXB/src/pyfncall.jl:42 [inlined]
  46. [8] _pycall!(::PyObject, ::PyObject, ::Tuple{PyObject,PyObject,PyObject}, ::Int64, ::PyObject) at /home/lissanro/.julia/packages/PyCall/zqDXB/src/pyfncall.jl:29
  47. [9] _pycall!(::PyObject, ::PyObject, ::Tuple{PyObject,PyObject,PyObject}, ::Base.Iterators.Pairs{Symbol,Any,Tuple{Symbol,Symbol},NamedTuple{(:item_tfms, :bs),Tuple{PyObject,Int64}}}) at /home/lissanro/.julia/packages/PyCall/zqDXB/src/pyfncall.jl:11
  48. [10] #_#117 at /home/lissanro/.julia/packages/PyCall/zqDXB/src/pyfncall.jl:86 [inlined]
  49. [11] top-level scope at /tmp/fastai.jl:12
  50. [12] include(::Module, ::String) at ./Base.jl:377
  51. [13] exec_options(::Base.JLOptions) at ./client.jl:288
  52. [14] _start() at ./client.jl:484
  53. in expression starting at /tmp/fastai.jl:12
RAW Paste Data