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

copy crashes with AttributeError #15

Open
mfeif opened this issue Jan 17, 2022 · 0 comments
Open

copy crashes with AttributeError #15

mfeif opened this issue Jan 17, 2022 · 0 comments

Comments

@mfeif
Copy link

mfeif commented Jan 17, 2022

I have a fresh install of pdftools v 2.0.2 (installed via pipx in an isolated venv on python3.10). Trying to get started, I first found #11 also with this line:

pdftools copy --output start.pdf --pages "1-33" src.pdf

I got:

usage: pdftools copy [-h] [-o OUTPUT] [-p PAGES [PAGES ...]] [-y] src
pdftools copy: error: the following arguments are required: src

So I tried with the -y:

pdftools copy --output start.pdf --pages "1-33" -y src.pdf

and:

Traceback (most recent call last):
  File "/Users/mjf/.local/bin/pdftools", line 8, in <module>
    sys.exit(main())
  File "/Users/mjf/.local/pipx/venvs/pdftools/lib/python3.10/site-packages/pdftools/_cli.py", line 266, in main
    pdf_copy(ARGS.input, ARGS.output, ARGS.pages, ARGS.y)
AttributeError: 'Namespace' object has no attribute 'input'

Even if one removes all the "optional" command line args, this crashes:

pdftools copy src.pdf                Mon Jan 17 15:29:53 2022
Traceback (most recent call last):
  File "/Users/mjf/.local/bin/pdftools", line 8, in <module>
    sys.exit(main())
  File "/Users/mjf/.local/pipx/venvs/pdftools/lib/python3.10/site-packages/pdftools/_cli.py", line 266, in main
    pdf_copy(ARGS.input, ARGS.output, ARGS.pages, ARGS.y)
AttributeError: 'Namespace' object has no attribute 'input'
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

1 participant