I’ have texlive 2023 installed. As I try to install the textext extension for inkscape, from source, i met the error:
textext-1.9.0/ $ sudo python3 setup.py --inkscape-extensions-path '/usr/bin/inkscape'
[sudo] Mot de passe de jeanpat :
[TexText][SUCCESS ]: + [Succ] TexText requirements
[TexText][SUCCESS ]: /-and-* [Succ] Detect inkscape >= 1.3
[TexText][SUCCESS ]: | inkscape=1.3 is found
[TexText][SUCCESS ]: /-and-+ [Succ] Detect *latex
[TexText][SUCCESS ]: | /--or-* [Succ] `pdflatex` is found at `/usr/local/texlive/2023/bin/x86_64-linux`
[TexText][SUCCESS ]: | /--or-* [Succ] `lualatex` is found at `/usr/local/texlive/2023/bin/x86_64-linux`
[TexText][SUCCESS ]: | /--or-* [Succ] `xelatex` is found at `/usr/local/texlive/2023/bin/x86_64-linux`
[TexText][SUCCESS ]: /-and-+ [Succ] Detect GUI library
[TexText][SUCCESS ]: /--or-* [Succ] GTK3 is found
[TexText][SUCCESS ]: /--or-* [Succ] TkInter is found
[TexText][CRITICAL]: Can't copy files to `%s`: it's not a directory
Traceback (most recent call last):
File "/home/jeanpat/Apps/TexText-Linux-1.9.0/textext-1.9.0/setup.py", line 478, in <module>
copy_extension_files(
File "/home/jeanpat/Apps/TexText-Linux-1.9.0/textext-1.9.0/setup.py", line 160, in copy_extension_files
raise CopyFileOverDirectoryError("Can't copy files to `%s`: it's not a directory")
CopyFileOverDirectoryError: Can't copy files to `%s`: it's not a directory
I can install textext with yay, but yay install some texlive elements leading to two texlive distro installed.
Any idea where to start?
thanks
You can try to install texlive-installer from the AUR and then install textext also from the AUR. texlive-installer installs only installer script, not texlive itself:
This packages provides the installer of texlive. It also tricks Arch into thinking it has its texlive packages installed.
Inkscape was recently updated to major version, are you sure your extension is updated to work with it? Make sure that any instructions you are following are for Inkscape 1.3, not earlier.
Are latex executable files in your system PATH? If so, you don’t need to provide textext with exact path to pdflatex, IMHO.
You can check that with which pdflatex from terminal.
If pdflatex is not found, append /usr/local/texlive/2023/bin/x86_64-linux/ (choose correct path on your installation) to the system PATH.
# If you come from bash you might have to change your $PATH.
export PATH="$HOME/bin:/usr/local/bin:$PATH"
export PATH="/home/jeanpat/.local/bin/:$PATH"
export PATH="/usr/local/texlive/2023/bin/x86_64-linux:$PATH"
I installed textext from the AUR and it works fine with my local LaTeX installation. The default configuration is OK, I didn’t change any settings. If it doesn’t wotk in your case, maybe there is some other problem unrelated to pdflatex path.