Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

process data problem #3

Open
489597448 opened this issue Jan 21, 2021 · 7 comments
Open

process data problem #3

489597448 opened this issue Jan 21, 2021 · 7 comments

Comments

@489597448
Copy link

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

@Impavidity
Copy link
Contributor

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.

@489597448
Copy link
Author

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

@Impavidity
Copy link
Contributor

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

@JoaoLages
Copy link

same problem. did you solve it?

@waytehsu
Copy link

same problem with virtual environment on python 3.7.10

@lezhu1234
Copy link

lezhu1234 commented Mar 31, 2021

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

@alan-ai-learner
Copy link

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants