Skip to content

Commit

Permalink
Add installation troubleshooting
Browse files Browse the repository at this point in the history
  • Loading branch information
ElliottKasoar committed Jan 31, 2025
1 parent 85d5807 commit df64132
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"sphinxcontrib.contentui",
"sphinx_copybutton",
"sphinx_autodoc_typehints",
"sphinx_collapse",
]

always_use_bars_union = True
Expand Down
39 changes: 39 additions & 0 deletions docs/source/user_guide/troubleshooting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,45 @@
Troubleshooting
===============

Installation
------------

When installing ``janus-core``, CMake errors can occur when building ``phonopy``, such as:

.. collapse:: Example CMake error

.. code-block:: bash
CMake Error at /tmp/pip-build-env-j2jx9pp5/overlay/lib/python3.11/site-packages/nanobind/cmake/nanobind-config.cmake:243 (target_compile_features):
target_compile_features The compiler feature "cxx_std_17" is not known to
CXX compiler
"GNU"
version 4.8.5.
Call Stack (most recent call first):
/tmp/pip-build-env-j2jx9pp5/overlay/lib/python3.11/site-packages/nanobind/cmake/nanobind-config.cmake:358 (nanobind_build_library)
CMakeLists.txt:108 (nanobind_add_module)
-- Configuring incomplete, errors occurred!
*** CMake configuration failed
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for phonopy
Building wheel for python-hostlist (setup.py) ... done
Created wheel for python-hostlist: filename=python_hostlist-2.2.1-py3-none-any.whl size=39604 sha256=44f9f27a42895e61a521cf9129a6a3ad03e633b201390da5ef76d5f59db3b94f
Stored in directory: ...
Successfully built janus-core python-hostlist
Failed to build phonopy
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (phonopy)
This can typically be resolved by ensuring your C++ compiler is updated, and that the `CXX <https://cmake.org/cmake/help/latest/envvar/CXX.html>`_ environment variable is set.


Carbon tracking
---------------

Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,9 @@ docs = [
"sphinx<9.0.0,>=8.0.2",
"sphinxcontrib-contentui<1.0.0,>=0.2.5",
"sphinxcontrib-details-directive<1.0,>=0.1",
"sphinx-copybutton<1.0.0,>=0.5.2",
"sphinx-autodoc-typehints<3.0.0,>=2.5.0"
"sphinx-collapse>=0.1.3",
"sphinx-copybutton<1.0.0,>=0.5.2",
]

pre-commit = [
Expand Down

0 comments on commit df64132

Please sign in to comment.