Panda error while creating Online test data

Open
#46 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
pandas, python

Research direction

Start with codegen_sources/test_generation/create_tests.py, especially output_selected_tests_summary at line 189, and reproduce the Transcoder-ST online test-data instructions. Trace why the preceding empty job array leaves a CSV with no columns, then verify the test-data creation flow completes without the reported pandas EmptyDataError.

Written by the indexing model from the issue text.

Description

I am following the instructions for Transcoder-ST. I got this error

########## Creating Tests ##########
Running on the remaining 0 among 1 files
/opt/conda/envs/codeGen_env/lib/python3.6/site-packages/submitit/core/core.py:628: UserWarning: Received an empty job array
warnings.warn("Received an empty job array")
0it [00:00, ?it/s]
Traceback (most recent call last):
File "codegen_sources/test_generation/create_tests.py", line 279, in
output_selected_tests_summary(out_folder)
File "codegen_sources/test_generation/create_tests.py", line 189, in output_selected_tests_summary
csv = pd.read_csv(csv_file)
File "/opt/conda/envs/codeGen_env/lib/python3.6/site-packages/pandas/io/parsers.py", line 688, in read_csv
return _read(filepath_or_buffer, kwds)
File "/opt/conda/envs/codeGen_env/lib/python3.6/site-packages/pandas/io/parsers.py", line 454, in _read
parser = TextFileReader(fp_or_buf, **kwds)
File "/opt/conda/envs/codeGen_env/lib/python3.6/site-packages/pandas/io/parsers.py", line 948, in init
self._make_engine(self.engine)
File "/opt/conda/envs/codeGen_env/lib/python3.6/site-packages/pandas/io/parsers.py", line 1180, in _make_engine
self._engine = CParserWrapper(self.f, **self.options)
File "/opt/conda/envs/codeGen_env/lib/python3.6/site-packages/pandas/io/parsers.py", line 2010, in init
self._reader = parsers.TextReader(src, **kwds)
File "pandas/_libs/parsers.pyx", line 540, in pandas._libs.parsers.TextReader.cinit
pandas.errors.EmptyDataError: No columns to parse from file

Dominant language
Python
Stars
777
Forks
144
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from facebookresearch/CodeGen

All issues in facebookresearch/CodeGen

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.