notion-pdf-export: "Not a directory" error when running 'notion-pdf-export' shell script on some macOS systems

Terminal.app flashes up for a hot milisecond, but after placing Notion’s HTML export (including sub-pages) files in the app folder, the job never loads. This command is invoked:

/Users/this_user/Desktop/notion-pdf-export_mac_1/notion-pdf-export ; exit;

But no PDFs.

Using zsh.

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 15 (7 by maintainers)

Most upvoted comments

This can be solved following these steps:

  1. Follow the instructions to place the tool inside of the html folder
  2. open terminal and go to the folder
  3. run sh notion-pdf-export
  4. it will throw an error to move to trash for not allowed, cancel it
  5. go to security settings, a new alert indicating this will appear, allow anyway, will require password
  6. repeat 3
  7. a new error, but now for the pdf utily will appear, cancel it, repeat step 5 in security, the pdf tool will be there
  8. repeat 3

and with that, all PDFs will be generated. Only requires extra security concerns to be allowed.

😃

Thanks a lot, I’ll look into it!

Is this an M1 or Intel Mac? Could you try running the application from the terminal, and see what the error message was?

Alternatively, try running the npe file as an executable in the terminal:

chmod +x ./npe
./npe