Skip to content

Windows Error in GHA #79

@hmgaudecker

Description

@hmgaudecker

Finally getting close to getting the econ-project-templates run smoothly on Windows, thanks to updated plotly/kaleido.

However, GHA fails with the error below ("ValueError: path is on mount 'C:', start on mount 'D:'"). I have no clue why that would occur, but I'd think it would need to be addressed on the pytask-latex side of things. Apologies for my nearly fully deprecated Windows-knowledge, if that is not the case!

──────────────────────────── Start pytask session ─────────────────────────────
Platform: win32 -- Python 3.13.2, pytask 0.5.2, pluggy 1.5.0
Root: D:\\a\\econ-project-templates\\econ-project-templates
Configuration: 
D:\\a\\econ-project-templates\\econ-project-templates\\pyproject.toml
Plugins: pytask_latex-0.4.2, pytask_parallel-0.5.0
Collected 11 tasks.

┌───────────────────────────────────────────────────────────────────┬─────────┐
│ Task                                                              │ Outcome │
├───────────────────────────────────────────────────────────────────┼─────────┤
│ task_analysis_template.py::task_fit_model                         │ .       │
│ task_analysis_template.py::task_predict[highest_qualification]    │ .       │
│ task_analysis_template.py::task_predict[marital_status]           │ .       │
│ task_data_management_template.py::task_clean_stats4schools_smokin │ .       │
│ g_data                                                            │         │
│ task_documents.py::task_compile_document[paper]                   │ F       │
│ task_documents.py::task_compile_document[presentation]            │ F       │
│ task_final_template.py::task_create_results_table                 │ .       │
│ task_final_template.py::task_plot_results_by_age[highest_qualific │ .       │
│ ation]                                                            │         │
│ task_final_template.py::task_plot_results_by_age[marital_status]  │ .       │
└───────────────────────────────────────────────────────────────────┴─────────┘

────────────────────────────────── Failures ───────────────────────────────────

───────── Task task_documents.py::task_compile_document[paper] failed ─────────

┌───────────────────── Traceback (most recent call last) ─────────────────────┐
│ D:\\a\\econ-project-templates\\econ-project-templates\\.pixi\\envs\\default\\Lib\\s │
│ ite-packages\\pytask_latex\\collect.py:76 in compile_latex_document           │
│                                                                             │
│    73 │   """                                                               │
│    74 │   try:                                                              │
│    75 │   │   for step in _compilation_steps:                               │
│ >  76 │   │   │   step(path_to_tex=_path_to_tex, path_to_document=_path_to_ │
│    77 │   except CalledProcessError as e:                                   │
│    78 │   │   msg = f"Compilation step {step.__name__} failed."             │
│    79 │   │   raise RuntimeError(msg) from e                                │
│                                                                             │
│ D:\\a\\econ-project-templates\\econ-project-templates\\.pixi\\envs\\default\\Lib\\s │
│ ite-packages\\pytask_latex\\compilation_steps.py:41 in run_latexmk            │
│                                                                             │
│   38 │   def run_latexmk(path_to_tex: Path, path_to_document: Path) -> None │
│   39 │   │   job_name_opt = [f"--jobname={path_to_document.stem}"]          │
│   40 │   │   out_dir_opt = [                                                │
│ > 41 │   │   │   f"--output-directory={relative_to(path_to_tex, path_to_doc │
│    42 │   │   ]                                                              │
│    43 │   │   cmd = ["latexmk", *options, *job_name_opt, *out_dir_opt, path_ │
│    44 │   │   subprocess.run(cmd, check=True)  # noqa: S603                  │
│                                                                             │
│ D:\\a\\econ-project-templates\\econ-project-templates\\.pixi\\envs\\default\\Lib\\s │
│ ite-packages\\pytask_latex\\path.py:36 in relative_to                         │
│                                                                             │
│   33 │   '../../bld/docs'                                                   │
│   34 │                                                                      │
│   35 │   """                                                                │
│ > 36 │   return Path(os.path.relpath(relative_to_, path.parent)).as_posix() │
│    37 │                                                                     │
│ in relpath:796                                                              │
└─────────────────────────────────────────────────────────────────────────────┘
ValueError: path is on mount 'C:', start on mount 'D:'

───── Task task_documents.py::task_compile_document[presentation] failed ──────

┌───────────────────── Traceback (most recent call last) ─────────────────────┐
│ D:\\a\\econ-project-templates\\econ-project-templates\\.pixi\\envs\\default\\Lib\\s │
│ ite-packages\\pytask_latex\\collect.py:76 in compile_latex_document           │
│                                                                             │
│    73 │   """                                                               │
│    74 │   try:                                                              │
│    75 │   │   for step in _compilation_steps:                               │
│ >  76 │   │   │   step(path_to_tex=_path_to_tex, path_to_document=_path_to_ │
│    77 │   except CalledProcessError as e:                                   │
│    78 │   │   msg = f"Compilation step {step.__name__} failed."             │
│    79 │   │   raise RuntimeError(msg) from e                                │
│                                                                             │
│ D:\\a\\econ-project-templates\\econ-project-templates\\.pixi\\envs\\default\\Lib\\s │
│ ite-packages\\pytask_latex\\compilation_steps.py:41 in run_latexmk            │
│                                                                             │
│   38 │   def run_latexmk(path_to_tex: Path, path_to_document: Path) -> None │
│   39 │   │   job_name_opt = [f"--jobname={path_to_document.stem}"]          │
│   40 │   │   out_dir_opt = [                                                │
│ > 41 │   │   │   f"--output-directory={relative_to(path_to_tex, path_to_doc │
│    42 │   │   ]                                                              │
│    43 │   │   cmd = ["latexmk", *options, *job_name_opt, *out_dir_opt, path_ │
│    44 │   │   subprocess.run(cmd, check=True)  # noqa: S603                  │
│                                                                             │
│ D:\\a\\econ-project-templates\\econ-project-templates\\.pixi\\envs\\default\\Lib\\s │
│ ite-packages\\pytask_latex\\path.py:36 in relative_to                         │
│                                                                             │
│   33 │   '../../bld/docs'                                                   │
│   34 │                                                                      │
│   35 │   """                                                                │
│ > 36 │   return Path(os.path.relpath(relative_to_, path.parent)).as_posix() │
│    37 │                                                                     │
│ in relpath:796                                                              │
└─────────────────────────────────────────────────────────────────────────────┘
ValueError: path is on mount 'C:', start on mount 'D:'

───────────────────────────────────────────────────────────────────────────────
┌─────────────────── Summary ────────────────────┐
│  11  Collected tasks                           │
│  7   Succeeded                        (63.6%)  │
│  2   Skipped because previous failed  (18.2%)  │
│  2   Failed                           (18.2%)  │
└────────────────────────────────────────────────┘
─────────────────────────── Failed in 8.31 seconds ────────────────────────────

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions