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

generate.py fails without --overwrite #178

Open
habernal opened this issue Jul 3, 2024 · 2 comments
Open

generate.py fails without --overwrite #178

habernal opened this issue Jul 3, 2024 · 2 comments

Comments

@habernal
Copy link
Contributor

habernal commented Jul 3, 2024

Repro:

$ ./bin/generate examples/sigdial --proceedings
[...]
Traceback (most recent call last):
  File "/home/habi/PycharmProjects/aclpub2/./bin/generate", line 50, in <module>
    generate_proceedings(args.path, args.overwrite, args.outdir, args.nopax, args.frontmatter)
  File "/home/habi/PycharmProjects/aclpub2/aclpub2/generate.py", line 27, in generate_proceedings
    raise Exception(
Exception: Build directory build is not empty, and the overwrite flag is false.

even if the built dir did not exist.

$ python --version
Python 3.12.3
habernal added a commit to habernal/aclpub2 that referenced this issue Jul 3, 2024
Tested with generating sigdial with and without overwrite
@habernal habernal changed the title generaty.py fails without --overwrite generate.py fails without --overwrite Jul 3, 2024
@g-jing
Copy link

g-jing commented Jul 8, 2024

Hi Ivan. We also have this issue. Could you share your solution? Thanks!

@habernal
Copy link
Contributor Author

habernal commented Jul 8, 2024

Sure, again see the linked PR: #179
and the diff https://github.com/rycolab/aclpub2/pull/179/files

or just use --overwrite always as a parameter

crux82 added a commit that referenced this issue Jul 8, 2024
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