rat-sql
rat-sql copied to clipboard
preprocess.main(preprocess_config)
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
i find the problem maybe caused by registry.py file func: signature = inspect.signature(callable)
import torch
class SpiderDataset(torch.utils.data.Dataset):
def __init__(self, paths, tables_paths, db_path, demo_path=None, limit=None):
pass
if __name__ == '__main__':
import inspect
b=inspect.signature(SpiderDataset)
for i,j in b.parameters.items():
print(i,j,j.kind)
print
args *args VAR_POSITIONAL
kwds **kwds VAR_KEYWORD
i think the process want print paths, tables_paths, db_path these arguments
i don't know how to modify it.
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