cyclus / cyclus/cyclus.github.com

Installation Errors in Archetype Developer Tutorial "Hello, Cyclus!"

Open
#280 17 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
8
Forks
33
PR merge metrics
No merged PRs in 30d

Description

I am attempting to complete the hello, cyclus tutorial for @kdhuff, but I am unable to build cycstub. This is on Ubuntu 16.04 with cyclus and cycamore installed from source. Both pass all unit tests. I installed the dependencies with apt and, after encountering this error, attempted to reinstall with conda install -c conda-forge cyclus-build-deps

This is the error message when I run python install.py --clean-build in the tutorial directory, which is a clone of /arfc/cycstub:

lou@arfc~/tutorial$ python install.py --clean-build

CMake Warning at /home/lou/anaconda3/share/cmake-3.5/Modules/FindBoost.cmake:725 (message):
  Imported targets not available for Boost version 106501
Call Stack (most recent call first):
  /home/lou/anaconda3/share/cmake-3.5/Modules/FindBoost.cmake:762 (_Boost_COMPONENT_DEPENDENCIES)
  /home/lou/anaconda3/share/cmake-3.5/Modules/FindBoost.cmake:1309 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:92 (FIND_PACKAGE)

-- Configuring incomplete, errors occurred!
See also "/home/lou/tutorial/build/CMakeFiles/CMakeOutput.log".
See also "/home/lou/tutorial/build/CMakeFiles/CMakeError.log".
Traceback (most recent call last):
  File "install.py", line 137, in <module>
    main()
  File "install.py", line 134, in main
    install(args)
  File "install.py", line 62, in install
    shell=(os.name == 'nt'))
  File "/home/lou/anaconda3/lib/python3.6/subprocess.py", line 291, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '/home/lou/tutorial', '-DCMAKE_INSTALL_PREFIX=/home/lou/.local', '-DCYCLUS_ROOT_DIR=/home/lou/.local']' returned non-zero exit status 1.

Here is the error when I run python install.py --clean-build in the cyclus directory, which is a clone of /cyclus/cyclus:

lou@arfc:~/cyclus$ python install.py --clean-build
/home/lou/anaconda3/bin/cmake

CMake Error at /home/lou/anaconda3/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
  Could NOT find HDF5 (missing: HDF5_LIBRARIES) (found version "1.10.1")
Call Stack (most recent call first):
  /home/lou/anaconda3/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
  /home/lou/anaconda3/share/cmake-3.5/Modules/FindHDF5.cmake:398 (find_package_handle_standard_args)
  CMakeLists.txt:195 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!
See also "/home/lou/cyclus/build/CMakeFiles/CMakeOutput.log".
See also "/home/lou/cyclus/build/CMakeFiles/CMakeError.log".
Traceback (most recent call last):
  File "install.py", line 223, in <module>
    main()
  File "install.py", line 219, in main
    install_cyclus(args)
  File "install.py", line 94, in install_cyclus
    shell=(os.name == 'nt'))
  File "/home/lou/anaconda3/lib/python3.6/subprocess.py", line 291, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '/home/lou/cyclus', '-DCMAKE_INSTALL_PREFIX=/home/lou/.local', '-DDEFAULT_ALLOW_MILPS=FALSE']' returned non-zero exit status 1.

Finally, here is the error when I type cycstub --type facility /home/lou/tutorial:mylib:myfacility in the tutorial directory:

lou@arfc:~/tutorial$ cycstub --type facility /home/lou/tutorial:mylib:myfacility
/usr/local/bin/cyclus
Traceback (most recent call last):
  File "/usr/local/bin/cycstub", line 126, in <module>
    prevlibpath, prevlibname, _ = read_cmake_spec()
  File "/usr/local/bin/cycstub", line 33, in read_cmake_spec
    _, spec = s[0].split('::')
ValueError: not enough values to unpack (expected 2, got 1)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the three commands in the issue and read the referenced install.py and CMakeLists.txt files alongside CMakeOutput.log and CMakeError.log. Trace the HDF5, Boost, and CMake-spec failures across the Cyclus and cycstub builds; done means the tutorial builds successfully and cycstub runs without the reported exceptions.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, python
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.