-
Notifications
You must be signed in to change notification settings - Fork 64
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
Python interpreter on macOS 12.3 #190
Comments
Could you advise in which file you are changing the python path? I have the the python environment variable TM_PYTHON in TextMate, but unfortunately this does not seem to work. |
I manually changed the hash-bang from (by the way: I hope the maintainers will fix this soon since 12.3 is out) |
Thanks, I changed the hash-bang but now it seems my homebrew python installation go messed up :D |
I am now on Monterey 12.3 and However, using |
I followed @schoeps advise, changed all references from python to python3 and installed pyobjc package. |
I wrote:
But @nimacodes wrote:
Which is indeed the solution. In particular: |
Sorry. I forgot to mention that you need |
Unfortunatively, this does not work for me. I installed pyobjc, updated textmate (and my MacOS as well) and get the following error messages if I run LaTeX (cmd-R) |
Weird. Do you have any weird characters in your document? Can you run latex on that file outside of TM? |
Perhaps it's worth forking this bundle into a version with the hardcoded python3? Is there any way to force installation of pyobjc or at least give a useful message to users? (How did it work with the old python2 installation? Was pyobjc installed by Apple?) |
|
|
Thanks for posting this! |
I followed the suggestions above (change python to python3 in the .py files) and now TextMate indeed compiles in latex. Failure running “Preferences…”. Preferences…: /Users/xxx/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/bin/configure.py: /usr/bin/python3: bad interpreter: Operation not permitted Any further help? Thanks |
Also hitting this problem, hopefully this gets fixed soon. Thanks ! |
I haven't seen any of the issues since
I did briefly see the syntax highlighting issue, but it went away after restarting textmate. Hint: make sure that you make the python -> python3 change everywhere. I changed it in:
Note that the first one isn't python source, but an xml file. |
Thanks! |
Hmm, I've missed the tmCommand file, but fixing that didn't fix the syntax highlighting issue. I'm thankful for other ideas :) |
I agree... It worked for me on an old Mac, but not on a newer one in my office... |
To do 1) from @defjaf suggestion, I had to:
|
You don’t need to convert it back to binary. This is only to keep the
size of bundle deployments/updates down.
…On 22 Mar 2022, at 14:48, Valerio Schiavoni wrote:
To do 1) from @defjaf suggestion, I had to:
```
plutil -convert xml1 "Commands/Lines to List Environment.tmCommand"
(..do the edit..)
plutil -convert binary1 Commands/Lines\ to\ List\
Environment.tmCommand
```
--
Reply to this email directly or view it on GitHub:
#190 (comment)
You are receiving this because you are subscribed to this thread.
Message ID: ***@***.***>
|
In any case, the steps mentioned above from @defjaf worked for me on a new macbook pro M1 with macOS 12.3. |
My fault, sorry. It now works also for me. |
The pull request #191 above would resolve this issue for everyone, it would be great if it could be approved… any maintainers for this repository? |
I just made a similar PR in javascript.tmbundle, but it's been years since any have been approved. Having just found this, I am less optimistic. |
Commit 54d6709 should hopefully improve the current situation a little bit. On macOS 12.3 or later you still need to install PyObjC, using Terminal (or a similar application): /usr/bin/pip3 install pyobjc before you can use commands that depend on Python though. I tested the changes on macOS |
I finally solved my syntax highlighting problem, but without fully understanding it. It has nothing to do with Python, but I'll describe it here because of the context. Situation: Solution: |
@andreasloe Did you solve this problem? I seem to experience the same issue... |
It seems the parsing issue is NOT related to python: see #198 (comment) |
It is not always recommended to meddle with the python that already comes installed with the system. Therefore, would it be possible for the bundle to link with the python indicated in the environment variable? |
Apple will finally drop python 2 in macOS 12.3. It's already missing in the current beta. Unfortunately, there is no binary
/usr/bin/python
but only/usr/bin/python3
. Therefore this workflows fails although being python3 compatible (since #111). However, manually correcting the python path in the first line (hash-bang) works for me.The text was updated successfully, but these errors were encountered: