Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Update setup-Linux-centos-8.sh #1048

Closed
wants to merge 32 commits into from
Closed

Conversation

catzzz
Copy link
Contributor

@catzzz catzzz commented Jan 3, 2022

This PR fixes

  1. setup-Linux-centos-8.sh issue Fix setup-Linux-centos-8 #1046.
  2. Missing $SYSTEM variable in install.sh Parallel option is not working in install.sh #1044.

Current issues

Code changes

  1. In setup-Linux-centos-8.sh
  • Add /usr/local/bin/python3 -m pip install IPython , /usr/local/bin/python3 -m pip install wheel and /usr/local/bin/python3 -m pip install censusdata.
  • Modify mono installation:rpmkeys --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF" and su -c 'curl https://download.mono-project.com/repo/centos8-stable.repo | tee /etc/yum.repos.d/mono-centos8-stable.repo'
  • fix typo "$(/usr/local/bin/python3 --version)"
  • upgrade Python to 3.9.6
    2)In install.sh
  • add SYSTEM=$(uname -s)

Documentation changes

None

Test and Validation Notes

None

@catzzz catzzz changed the title Develop Upgrade setup-Linux-centos-8.sh Jan 3, 2022
@dchassin dchassin self-requested a review January 3, 2022 20:36
@catzzz catzzz changed the title Upgrade setup-Linux-centos-8.sh Update setup-Linux-centos-8.sh Jan 3, 2022
Copy link
Member

@dchassin dchassin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On docker centos:8 I get the following error: RuntimeError: module compiled against API version 0xf but this version of numpy is 0xe. This means that numpy is not the correct version. Recommend using numpy>=1.21.4 in requirements.txt.

After fixing this, I'm still getting errors in validation, e.g.,:

Traceback (most recent call last):test/test_inline_python.glm...              
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'gridlabd'
ERROR    [INIT] : /usr/local/src/gridlabd/gldcore/autotest/test_inline_python.glm error unexpected, code 5 (simulation failed) in 0.0 seconds
ERROR    [INIT] : /usr/local/src/gridlabd/gldcore/autotest/test_python_property.glm error unexpected, code 5 (simulation failed) in 0.0 seconds
ERROR    [INIT] : /usr/local/src/gridlabd/gldcore/autotest/test_template_option.glm error unexpected, code 5 (simulation failed) in 0.5 seconds
ERROR    [INIT] : /usr/local/src/gridlabd/gldcore/scripts/autotest/test_job.glm error unexpected, code 5 (simulation failed) in 0.8 seconds
ERROR    [INIT] : /usr/local/src/gridlabd/gldcore/scripts/autotest/test_job_modfile.glm error unexpected, code 5 (simulation failed) in 0.8 seconds
ERROR    [INIT] : /usr/local/src/gridlabd/gldcore/scripts/autotest/test_matrix.glm error unexpected, code 5 (simulation failed) in 0.5 seconds
ERROR    [INIT] : /usr/local/src/gridlabd/gldcore/scripts/autotest/test_matrix_linalg.glm error unexpected, code 5 (simulation failed) in 0.5 seconds
ERROR    [INIT] : /usr/local/src/gridlabd/gldcore/scripts/autotest/test_matrix_matlib.glm error unexpected, code 5 (simulation failed) in 0.5 seconds
ERROR    [INIT] : /usr/local/src/gridlabd/gldcore/scripts/autotest/test_matrix_matrix.glm error unexpected, code 5 (simulation failed) in 0.5 seconds
ERROR    [INIT] : /usr/local/src/gridlabd/gldcore/scripts/autotest/test_matrix_random.glm error unexpected, code 5 (simulation failed) in 0.5 seconds
ERROR    [INIT] : /usr/local/src/gridlabd/module/revenue/autotest/test_pgande_billing.glm error unexpected, code 5 (simulation failed) in 0.5 seconds

The test_*python* and test_template_option look like the gridlabd python module build did not work correctly.

The test_matrix_* errors are the result of a check of the numpy version in the matrix subcommand. Suggest changing the assert to #assert $(gridlabd matrix version) >= '1.21.4'

Thetest_job* errors look like they're a result of running from a fork rather than the original project. Recommend using a branch in slacgismo/gridlabd project instead of a fork.

In addition, two generator validation tests hang at 2% progress:

test_1isochronous_dg_1PQconstant_dg_err.glm
test_1isochronous_dg_1Pconstant_Qdroop_dg_err.glm

I've reached out to @ftuffner about this problem.

…. && /bin/sh /usr/local/src/gridlabd/build-aux/missing aclocal-1.16 -I m4 causes python installation problems. It will fail later in validation
@catzzz catzzz closed this Jan 6, 2022
@catzzz
Copy link
Contributor Author

catzzz commented Jan 6, 2022

This is a pull request from the forked branch. It causes validation errors. I close this branch and reopen a new pull request direct from the repository.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants