Open fengxing11111 opened 3 years ago
When I changed Docker base Image to 'pytorch/pytorch:1.7.0-cuda11.0-cudnn8-devel', It shows same issue. Could you try to use origin Docker base image
'FROM pytorch/pytorch:1.5-cuda10.1-cudnn7-devel'
i fix the problem in registry.py in line 41 with signature = inspect.signature(callable. __init__
) and the problem is solved.i test the syntax within python3.6 and python3.7 and python3.6 is ok (source code) but python3.7.9 is not.
Getting this when launch the preprocess
Traceback (most recent call last):
File "run.py", line 109, in
the problem is as follows: WARNING <class 'ratsql.models.enc_dec.EncDecModel.Preproc'>: superfluous {'name': 'EncDec'} Traceback (most recent call last): File "/home/pl/rat-sql-master/run.py", line 109, in
main()
File "/home/pl/rat-sql-master/run.py", line 73, in main
preprocess.main(preprocess_config)
File "/home/pl/rat-sql-master/ratsql/commands/preprocess.py", line 53, in main
preprocessor.preprocess()
File "/home/pl/rat-sql-master/ratsql/commands/preprocess.py", line 30, in preprocess
data = registry.construct('dataset', self.config['data'][section])
File "/home/pl/rat-sql-master/ratsql/utils/registry.py", line 33, in construct
lookup(kind, config),
File "/home/pl/rat-sql-master/ratsql/utils/registry.py", line 28, in lookup
return _REGISTRY[kind][name]
KeyError: 'spider'
i find the problem maybe caused by registry.py file func: signature = inspect.signature(callable)