Skip to content

Commit 672bb71

Browse files
committed
🐛 try to fix python executable path
- just copy what ever is pointing to sys.executable - move to binaries folder Locally this all works, but it might be that the lcoal Python exe is somehow 'valid' (signed, etc)
1 parent f9b7979 commit 672bb71

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.github/workflows/cdci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ jobs:
152152
- name: Build executable
153153
run: |
154154
cd gui
155-
pyinstaller -n vuegen_gui -D --collect-all pyvis --collect-all streamlit --collect-all st_aggrid --collect-all customtkinter --collect-all quarto_cli --collect-all jupyter_core --collect-all yaml --collect-all ipykernel --collect-all nbconvert --collect-all notebook --collect-all ipywidgets --collect-all jupyter_console --collect-all jupyter_client --add-data ../docs/example_data/Basic_example_vuegen_demo_notebook:example_data/Basic_example_vuegen_demo_notebook app.py
155+
pyinstaller -n vuegen_gui -D --collect-all pyvis --collect-all streamlit --collect-all st_aggrid --collect-all customtkinter --collect-all quarto_cli --collect-all jupyter_core --collect-all yaml --collect-all ipykernel --collect-all nbconvert --collect-all notebook --collect-all ipywidgets --collect-all jupyter_console --collect-all jupyter_client --add-data ../docs/example_data/Basic_example_vuegen_demo_notebook:example_data/Basic_example_vuegen_demo_notebook app.py
156156
python copy_python_executable.py
157157
- name: Upload executable
158158
uses: actions/upload-artifact@v4

gui/copy_python_executable.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@
22
import sys
33
from pathlib import Path
44

5-
python_exe = Path(sys.executable).with_stem("python")
6-
shutil.copy(python_exe, "dist/vuegen_gui/_internal")
5+
python_exe = Path(sys.executable) #.with_stem("python")
6+
print("Copying python executable:", python_exe)
7+
shutil.copy(python_exe, "dist/vuegen_gui/_internal/python")
8+
print("Done.")

src/vuegen/quarto_reportview.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def run_report(self, output_dir: str = BASE_DIR) -> None:
200200
quarto_path = Path(sys._MEIPASS) / "quarto_cli" / "bin" / "quarto"
201201
_sys_exe = sys.executable
202202
# set executable to the bundled python (manually added to bundle)
203-
sys.executable = str(Path(sys._MEIPASS) / "python")
203+
sys.executable = str(Path(sys._MEIPASS).parent / "python")
204204
self.report.logger.info(f"quarto_path: {quarto_path}")
205205

206206
args = [f"{quarto_path}", "convert", file_path_to_qmd]

0 commit comments

Comments
 (0)