Closed ismailuddin closed 8 years ago
Hi @ismailuddin!
At first, I was confused because the line that has the syntax error looks like Python 3 code, but I see from your paths that you're using Python 2.7.
It looks like you have pdftools installed which also has a file called pdfmerge.py
. This causes a conflict when my pdfmerge
CLI wrapper tries to run because it unintentionally loads the file from pdftools
instead of my library.
Because this has a lot to do with how your python paths are configured, the I see two ways to fix this quickly: either uninstall pdftools
or use virtualenv to install pdfmerge
into its own environment without name conflicts.
When I run
pdfmerge -o out.pdf "file.pdf" "other.pdf"
orpdfmerge -o out.pdf "file.pdf, other.pdf"
I get the following error:But, if I run it from a Python prompt as follows:
it works fine..Any suggestions?