Skip to content

Commit

Permalink
Refer to phonopy troubleshooting
Browse files Browse the repository at this point in the history
  • Loading branch information
ElliottKasoar committed Feb 8, 2025
1 parent 40241a7 commit cb5b3bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 34 deletions.
1 change: 0 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"sphinxcontrib.contentui",
"sphinx_copybutton",
"sphinx_autodoc_typehints",
"sphinx_collapse",
]

always_use_bars_union = True
Expand Down
35 changes: 2 additions & 33 deletions docs/source/user_guide/troubleshooting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,40 +5,9 @@ Troubleshooting
Installation
------------

When installing ``janus-core``, CMake errors can occur when building ``phonopy``, such as:
When installing ``janus-core``, CMake errors can occur when building ``phonopy``, often related to the CXX compiler.

.. 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.
Please refer to their `installation documentation <http://phonopy.github.io/phonopy/install.html#missing-or-unknown-cxx-compiler>`_ for guidance.


Carbon tracking
Expand Down

0 comments on commit cb5b3bc

Please sign in to comment.