Skip to content

Installing and Testing pip hsp2 execution on Linux #69

@rburghol

Description

@rburghol

I wanted to document my testing of the new pip-based install (alternative to Anaconda) developed by @timcera . Install seems fine, but testing is now a challenge. I would love any pointers that can be given specifically on managing my expectations about what I should be seeing.

  • Install pip and package dependencies
  • Install runnable hsp2 command line tool via pip
  • Run a test UCI
  • Examine UCI test run output in hd5 file
  • Compare output to previous (maybe in ./tests/test10/HSPFresults/ ?)

Installation of pip and package

  • Get test branch: This branch made by @timcera -- Will replace with master after it is merged
    • git clone https://github.com/timcera/HSPsquared/tree/develop
  • install hdf5
    • The necessity of this step on Ubuntu is uncertain. There are apt packages for hdf5-tools, and there are existing executables named h5cc in the system prior to unpacking and installing this package, however, this did not seem sufficient to run test10, so I added these.
    • download hdf5-1.12.1.tar.gz (need to go through their web sign-up, so no direct download link to use with wget)
    • tar -xvf hdf5-1.12.1.tar.gz
    • cd hdf5-1.12.1
    • make all
    • sudo make install
    • sudo apt install hdf5
  • Install pip:
    • sudo apt-get install pip
  • Install Python Dependencies (I had a brand new Ubtuntu 20.04/python and had to install some dependencies via pip first)
    • pip install panda
    • pip install tables==3.6.1
      • Needed the previous version of tables because the newest tables breaks numba
    • pip install numba
  • Create hsp2 executable
    • pip install .
  • Log out and log back in to get the python/pip path updated tp be able to run hsp2
  • Test hsp2 executable (see Testing below)

Testing

  • I used /opt/model/HSPsquared/HSP2notebooks/Data, though the run did not appear to complete to completion.
    • mkdir test; cd test
    • cp /HSPsquared/HSP2notebooks/Data/* ./
    • hsp2 import_uci test10.uci test10.h5
    • hsp2 run test10.h5
  • Comments below will be used to debug and/or verify the steps above

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions