Skip to content
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 version not found when using uv #3838

Open
sehHeiden opened this issue Jan 2, 2025 · 2 comments
Open

Python version not found when using uv #3838

sehHeiden opened this issue Jan 2, 2025 · 2 comments
Labels
bug Deficiencies in TeXiFy behaviour. untriaged Issue type still needs to be triaged or verified.

Comments

@sehHeiden
Copy link

Type of JetBrains IDE (IntelliJ, PyCharm, etc.) and version

PyCharm

Operating System

Linux

TeXiFy IDEA version

0.9.9

What I did (steps to reproduce)

Added pythontex as external tool in before launch.

So my before lauch looks like:

  1. run the old automatic created steps
  2. run pythontex

Minimal example to reproduce the problem

\documentclass{article}
\usepackage{pythontex}

\begin{document}
\begin{pycode}
"""Show Graphs for Statistic of MaStR."""
print("Hallo")
\end{pycode}
\end{document}

Expected behavior

This behaviour works from the PyCharm terminal. Here the python version is: Python 3.12.6

  1. pdflatex
  2. pythontex
  3. pdflatex

Actual behavior

Get the error below.
Altough I have a .venv that works, has the correct python version as in the .python-version file.
Looks for me, that not the correct python python is used?

(if applicable) The full stacktrace of the exception thrown

  pyenv: version `3.12.6' is not installed (set by /home/.../.python-version)
@sehHeiden sehHeiden added bug Deficiencies in TeXiFy behaviour. untriaged Issue type still needs to be triaged or verified. labels Jan 2, 2025
@sehHeiden
Copy link
Author

I added an init.py file to the out folder and the folder of the latex files.

Not changing the error.

@sehHeiden
Copy link
Author

Do I have to activate the .venv for the external tools (not needed in the terminal).

I tried:

uv run pythontex

Not changing the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Deficiencies in TeXiFy behaviour. untriaged Issue type still needs to be triaged or verified.
Projects
None yet
Development

No branches or pull requests

1 participant