-
Notifications
You must be signed in to change notification settings - Fork 101
After reinstalling Python, pythontex don't work (macOS) #225
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
Comments
Does it work again if you replace Background:
which your system no longer has, and therefore fails with When using https://github.com/gpoore/pythontex/blob/master/pythontex/pythontex3.py#L1 instead, it has:
and so should not need the symlink. If you want to manually specify the python executable to use, you can instead of
Note: you will see a bunch of these warnings after python3.11:
these are just warnings and will/has been fixed. |
After a lot of tests, with the help of an AI (because I'm not a Python/Terminal expert), So one solution is to change in After this change, in Terminal, And in Texifier, I need to use this:
( Yet it is working. Thanks. |
Oh no, still not working!!! The code (from https://clogique.fr/maths/profs/latex/doc/exemples_Pythontex.pdf):
is working. The code:
is not working. (was working in a previous compilation four days before). The error is (compiled in Terminal):
(recall: I have changed I cannot create a symbolic link from python3 to python because this probably break another software. What??? I read in the end line of the error: But is not Or was this because of |
Uh oh!
There was an error while loading. Please reload this page.
I use this code:
With the previous installation the output is:
It create some files:
and a file
test1.pytxcode
.With the new installation, I have this output:
no folder
pythontex-files-test10
but a filetest10.pytxcode
.In the log from the compilation:
The file
test10.pytxcode
contains this:The command
python3 -m pip list
in the terminal gives (among others):Pygments 2.19.1
Oh, strange... But:
and I have all these files in TeXLive:
I use the IDE Texpad (renamed Texifier, https://www.texifier.com)
It use this script file:
Edit
If I try in the terminal (on a new file
test11.tex
):pdflatex test11.tex
works (This is pdfTeX, Version 3.141592653-2.6-1.40.26
...Output written on test11.pdf (1 page, 32850 bytes). Transcript written on test11.log.
)But:
Why?
echo $PATH
gives:I tryed this:
What happens?
I found these informations in a previous Terminal window (before reinstallation of Python):
So after enter
sudo ln -sf /usr/local/bin/python3 /usr/local/bin/python
it was working? Perhaps, I don't recall.But is it safe to use
sudo ln -sf /usr/local/bin/python3 /usr/local/bin/python
? I have reinstalled Python because (perhaps after enter this last command), my Python IDE don't anymore warned me about syntax error in the editing mode.I'm afraid the (very old) Python2 -> Python3 transition was a disaster, with the introducing of "python3" command. But anyway, the transition is what it is, we cannot change anything.
But what need the end users (that don't know a lot about python installation, but only need to use it as a tool) to do?
Can anyone help me?
The text was updated successfully, but these errors were encountered: