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

Tutorial: Error when running summary.py for the first time without specifying tmp folder #1

Closed
maremita opened this issue Sep 11, 2021 · 2 comments

Comments

@maremita
Copy link

Hi! This error occurs when following the tutorial step by step (after downloading BEAR and installing the required packages).

Start: Stage 1... 2021-09-11 11:12:47.502770
Stage 2... 2021-09-11 11:12:49.422647
Traceback (most recent call last):
  File "summarize.py", line 607, in <module>
    main(args)
  File "summarize.py", line 570, in main
    n_bins = run(args)
  File "summarize.py", line 553, in run
    total_size = stage2(unit2is, args)
  File "summarize.py", line 304, in stage2
    out_size += unit2i.get_size()
  File "summarize.py", line 289, in get_size
    out_size = os.path.getsize(self.out_file)
  File "/home/remita/pyenvs/bear/lib/python3.7/genericpath.py", line 50, in getsize
    return os.stat(filename).st_size
FileNotFoundError: [Errno 2] No such file or directory: 'data/ysd1_kmc_out_0_full_6.tsv'

After investigation, it appears that KMC cannot find the default tmp folder tests/exdata/tmp/ and throws an error in the stderr data/ysd1_kmc_stderr_0_full_6.txt

--- kmc ---
Error: Cannot create file in specified working directory: tests/exdata/tmp/
--- kmc dump ---
Error: Cannot open file data/ysd1_kmc_inter_0_full_6.res.kmc_pre

So in the tutorial, it is better to add that the user must create the default tmp folder tests/exdata/tmp/ or specify an existing folder with the option -t of the script summarize.py.

Thank you.

@EWeinstein
Copy link
Collaborator

Hi maremita, thanks for finding this issue and letting us know! We've added a tmp folder to the repo and adjusted the defaults of summarize.py accordingly. It should now work automatically.

@maremita
Copy link
Author

Thank you @EWeinstein.

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

2 participants