gap-text2sql icon indicating copy to clipboard operation
gap-text2sql copied to clipboard

process data problem

Open 489597448 opened this issue 4 years ago • 7 comments

when i run python run.py preprocess experiments/spider-configs/gap-run.jsonnet erro:

Traceback (most recent call last): File "run.py", line 104, in main() File "run.py", line 62, in main preprocess.main(preprocess_config) File "/home/lishuan/hxh/text2sql/gap-text2sql-main/rat-sql-gap/seq2struct/commands/preprocess.py", line 44, in main preprocessor.preprocess() File "/home/lishuan/hxh/text2sql/gap-text2sql-main/rat-sql-gap/seq2struct/commands/preprocess.py", line 23, in preprocess data = registry.construct('dataset', self.config['data'][section]) File "/home/lishuan/hxh/text2sql/gap-text2sql-main/rat-sql-gap/seq2struct/utils/registry.py", line 36, in construct **kwargs) File "/home/lishuan/hxh/text2sql/gap-text2sql-main/rat-sql-gap/seq2struct/utils/registry.py", line 44, in instantiate raise ValueError('Unsupported kind for param {}: {}'.format(name, param.kind)) ValueError: Unsupported kind for param args: 2

489597448 avatar Jan 21 '21 06:01 489597448

Thanks for your interest on our work.

Did you try to follow the instruction to setup the environment? What is the Python version you use? I assume it is 3.6. You can try to use Python3.7 to see if you can solve this issue.

Impavidity avatar Jan 21 '21 16:01 Impavidity

Thanks for your interest on our work.

Did you try to follow the instruction to setup the environment? What is the Python version you use? I assume it is 3.6. You can try to use Python3.7 to see if you can solve this issue.

my python version is Python 3.7.9

489597448 avatar Jan 22 '21 06:01 489597448

Did your try to setup the virtual environment from the command line we provided? Did that work for you?

Impavidity avatar Jan 22 '21 21:01 Impavidity

same problem. did you solve it?

JoaoLages avatar Mar 15 '21 18:03 JoaoLages

same problem with virtual environment on python 3.7.10

waytehsu avatar Mar 18 '21 03:03 waytehsu

Here is a tricky slove: change File "seq2struct/utils/registry.py", line 41 signature = inspect.signature(callable) to signature = inspect.signature(callable.__init__)

lezhu1234 avatar Mar 31 '21 05:03 lezhu1234

@Impavidity @lezhu1234 @JoaoLages @489597448 @waytehsu How much time will it take to preprocess the dataset, i was running the command for like past hours, it just keep running, can any one help me on this? Thanks

alan-ai-learner avatar Jul 29 '21 07:07 alan-ai-learner