On 27 Dec 2019, at 2:30, Robert Milton wrote:

This is indepependent of the pdf viewer (I prefer to use skim, but get the same error). Any idea what is wrong, and how I can fix it?

What version of macOS?

It may be that you are on Catalina which only support 64 bit executables, and you have an old version of the Bundle Support bundle.

In TextMate → Preferences → Bundles you can find the “Bundle Support” bundle, last update was “14 Feb 2019”. Does yours show the same?

If not, have you “Check for and install updates automatically” enabled in the bottom of that window?

You can force the managed bundles to be re-installed by quitting TextMate and then running this in a terminal:

rm -rf ~/Library/Application\ Support/TextMate/Managed

Be aware that only default (managed) bundles gets re-installed.