ipe icon indicating copy to clipboard operation
ipe copied to clipboard

LaTeX engine cannot run on Ipe 7.2.29 in macOS Sequoia 15.0

Open MasahiroMae opened this issue 1 year ago • 33 comments

After updating to macOS Sequoia, the LaTeX engine cannot run on Ipe 7.2.29. It used to run with locally installed TeX Live version 2024 before updating to macOS Sequoia. In "show configuration", the LaTeX program path is empty as "* Latex program path: " and also other bash commands in my ipelets do not work. So I guess the Ipe does not have accessibility to the path. I would appreciate it if you have any suggestions to solve the problem. error

MasahiroMae avatar Sep 24 '24 10:09 MasahiroMae

Can you open a terminal and type which pdflatex ? What output do you get?

otfried avatar Sep 24 '24 10:09 otfried

The output of which pdflatex is bellow.

/Library/TeX/texbin/pdflatex

MasahiroMae avatar Sep 24 '24 11:09 MasahiroMae

Hmm, that directory is on the path.

I do not know what Apple has changed in Sequoia - if you say that also your other bash commands fail, so it seems Ipe no longer has permission to call commands.

Have you checked in System prefs -> Privacy & Security if there is some setting you need to enable for Ipe?

otfried avatar Sep 24 '24 11:09 otfried

In System prefs -> Privacy & Security, I added the Files & Folders access to Ipe, but not sure which accessibility setting corresponds to this matter. Currently, there are no pop-ups to need to enable for Ipe.

My environment is MacBook Air M2, 2022 and I am using the installation from ipe-7.2.29-mac-arm.dmg. (But the same thing occurs in the intel version on the same PC so intel/arm could not be the matter.)

MasahiroMae avatar Sep 24 '24 11:09 MasahiroMae

I found that if I launch Ipe from Terminal with sudo open /Applications/Ipe.app this problem does not occur.

MasahiroMae avatar Sep 24 '24 11:09 MasahiroMae

And without the sudo? Just open /Applications/Ipe.app ?

otfried avatar Sep 24 '24 12:09 otfried

If I launch with open /Applications/Ipe.app this problem also does not occur.

The problem occurs when I launch Ipe from Finder or Dock.

MasahiroMae avatar Sep 24 '24 12:09 MasahiroMae

Hmm, it could be that when starting with open, it inherits some path settings from the terminal, but that those are not correctly set when starting from the dock.

I really don't know what else to suggest - I am not a Mac user and do not have hardware that can run Sequoia.

Why don't you ask on the discussion mailing list?

otfried avatar Sep 24 '24 12:09 otfried

I have the exact same problem. IPE cannot run the local TeX Live version 2024 after updating macOS Sequoia. It only works if I open the IPE app from the terminal. Not sure what happened ...

ruilong-zhang avatar Sep 28 '24 02:09 ruilong-zhang

@otfried Thank you for sharing the information about the Ipe discussion mailing list.

I also found the related discussions in the Apple Support Community. https://discussions.apple.com/thread/255779464

MasahiroMae avatar Oct 02 '24 07:10 MasahiroMae

This bug is fixed now in the macOS Sequoia 15.0.1

ruilong-zhang avatar Oct 04 '24 21:10 ruilong-zhang

This bug is fixed now in the macOS Sequoia 15.0.1

I cannot confirm this, the issue persists for me on 15.0.1.

dev2718 avatar Oct 04 '24 21:10 dev2718

This problem is fixed in my current environments below: macOS Sequoia 15.0.1 Ipe 7.2.29 with ARM processor Chip Apple M2

MasahiroMae avatar Oct 07 '24 03:10 MasahiroMae

This problem has not been fixed yet in my other environment below: macOS Sequoia 15.0.1 Ipe 7.2.29 with Intel processor Processor Intel Core i7

MasahiroMae avatar Oct 07 '24 11:10 MasahiroMae

Long-time Ipe user here. Thanks for the great app! I had this problem until just a few minutes ago. I'm running macOS Sequoia 15.0.1 with an Apple M3 processor. What worked for me was to change the Ipe.app dock shortcut target using the guide available here and point it to a custom two-line shell script that basically runs an open /Applications/Ipe.app/Contents/MacOS/ipe command.

The steps I followed were:

  1. Close any open sessions of Ipe.

  2. Open the /Applications/Ipe.app/Contents/Info.plist file with a compatible text editor or IDE and edit the value for the CFBundleExecutable key (enclosed in <key> tags). The default value for this key is ipe (enclosed in <string> tags on the very next line after the key), but you'll have to change this to point to your custom .sh file. Use any name of your choosing other than the default. I'll use ipe-app-cmd.sh in these instructions.

  3. In a Terminal session, run the following commands:

    • touch /Applications/Ipe.app/Contents/MacOS/ipe-app-cmd.sh
    • Add the following in the .sh file:
      #!/usr/bin/env bash
      open /Applications/Ipe.app/Contents/MacOS/ipe
    
    • Make the script executable with chmod +x /Applications/Ipe.app/Contents/MacOS/ipe-app-cmd.sh
  4. Run Ipe by clicking the dock icon. The app should run as expected and LaTeX commands should now be parsed correctly. Unfortunately, you'll notice that an annoying Terminal window now opens up everytime you start Ipe. Adding the -a flag (-gj -a or -j -a to run in the a background) disables the Terminal pop-up behavior, but reintroduces the LaTeX issue. Also, just in case anyone's wondering, changing the scripting language from bash to zsh did not help.

The other bad news is that this 'fix' will need to be repeated if the app is updated. Hopefully, a new Sequoia or Ipe update fixes things. If anyone can get the script command to not launch an unwanted Terminal window everytime Ipe is launched, kindly share.

P.S.: You can revert to the regular setting by simply changing the value of the CFBundleExecutable key from the name of the .sh executable back to ipe and running rm /Applications/Ipe.app/Contents/MacOS/<your-sh-file-name>.sh.

coenwerem avatar Oct 12 '24 09:10 coenwerem

Does it work to create a text file ~/.ipe/ipe.conf with the contents:

IPELATEXPATH=/Library/TeX/texbin

(one line)

See https://otfried.github.io/ipe/80_advanced.html#ipe-conf

otfried avatar Oct 23 '24 12:10 otfried

Does it work to create a text file ~/.ipe/ipe.conf with the contents:

IPELATEXPATH=/Library/TeX/texbin

(one line)

See https://otfried.github.io/ipe/80_advanced.html#ipe-conf

Yes, this works for me.

dev2718 avatar Oct 23 '24 12:10 dev2718

Does it work to create a text file ~/.ipe/ipe.conf with the contents:

IPELATEXPATH=/Library/TeX/texbin

(one line)

See https://otfried.github.io/ipe/80_advanced.html#ipe-conf

Yes, this works for me as well. Thank you!

coenwerem avatar Oct 23 '24 18:10 coenwerem

Does it work to create a text file ~/.ipe/ipe.conf with the contents:

IPELATEXPATH=/Library/TeX/texbin

(one line)

See https://otfried.github.io/ipe/80_advanced.html#ipe-conf

Yes, this works also for me.

However, other bash commands in my ipelets still do not work. It is because the ipelets use the command based on the bash PATH setting. (If I use absolute PATH in the ipelets, of course it works but using the command with the bash PATH setting is convenient for sharing the same ipelets file in different environments...)

MasahiroMae avatar Nov 06 '24 15:11 MasahiroMae

Have you tried actually setting PATH in ~/.ipe/ipe.conf ?

otfried avatar Nov 08 '24 21:11 otfried

The remaining problem is, for example, that I am setting the external editor of VSCode in customize.lua as prefs.external_editor = "code --wait %s" but the command is based on the PATH inheriting from bash.

Of course, it works with an absolute full path of code but I share the same ipelets file in different environments so a relative path is preferable.

MasahiroMae avatar Nov 09 '24 06:11 MasahiroMae

Thanks for the great app!

Does it work to create a text file ~/.ipe/ipe.conf with the contents:

IPELATEXPATH=/Library/TeX/texbin

(one line)

See https://otfried.github.io/ipe/80_advanced.html#ipe-conf

To confirm, where should we add this file? In /Applications/Ipe.app/Contents/?

Regards,

Prahlad.

pranarkas avatar Jun 03 '25 21:06 pranarkas

In Ipe 7.2.XX it would be .ipe/ipe.conf in your home directory, that is /Users/Username/.ipe/ipe.conf. In 7.3.1, it has changed.

otfried avatar Jun 04 '25 14:06 otfried

I was having the same issue with the following config after a fresh install of MacTex and IPE (new computer)

IPE 7.2.29 macOS 15.5 (24F74) M4 Pro

Setting the IPELATEXPATH variable in ~/.ipe/ipe.conf fixed it.

akiss-ic avatar Aug 13 '25 13:08 akiss-ic

In Ipe 7.2.XX it would be .ipe/ipe.conf in your home directory, that is /Users/Username/.ipe/ipe.conf. In 7.3.1, it has changed.

So, where to download the 7.3.1 dmg package?

cshishaliu avatar Oct 10 '25 08:10 cshishaliu

I have the same issue now and it isn't getting fixed by creating a text file in ~/.ipe/ipe.conf with IPELATEXPATH=/Library/TeX/texbin. I am running running Tahoe 26.0.1 on M4 MacBook Pro.

kshitijvijay avatar Oct 31 '25 05:10 kshitijvijay

What is the output of which pdflatex for you?

otfried avatar Oct 31 '25 11:10 otfried

@otfried /Library/TeX/texbin/pdflatex

latex works if I open ipe via terminal using open /Applications/Ipe.app

kshitijvijay avatar Oct 31 '25 13:10 kshitijvijay

What do you get when you open Ipe (not from the terminal) and go to Help ➤ Show configuration?

otfried avatar Oct 31 '25 14:10 otfried

I get a whole bunch of things, can you tell me what specifically you want to know?

kshitijvijay avatar Nov 01 '25 04:11 kshitijvijay