Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python module: Ubuntu 23.x build #197

Open
wperkins opened this issue Feb 5, 2024 · 4 comments
Open

Python module: Ubuntu 23.x build #197

wperkins opened this issue Feb 5, 2024 · 4 comments
Assignees

Comments

@wperkins
Copy link
Member

wperkins commented Feb 5, 2024

There are difficulties building the GridPACK Python module on Ubuntu 23.x. Ubuntu 23.x uses Python 3.11. The pybind11 submodule used by GridPACK is rather old (2.4.3) and probably needs to be updated. Build on Ubuntu 22.04 LTS should be checked as well.

@wperkins wperkins added this to the GridPACK 3.5 Release milestone Feb 5, 2024
@wperkins wperkins self-assigned this Feb 5, 2024
@wperkins
Copy link
Member Author

wperkins commented Feb 5, 2024

With Ubuntu 20 LTS (Python 3.08). I tried using a newer version of the pybind11 submodule

cd python/pybind11
git checkout v2.11.1

The GridPACK module built fine after that, but I got this from python setup.py test:

hadrec_test (tests.gridpack_test.GridPACKTester) ... a[0] = 0.0
ERROR
hello_comm_test (tests.gridpack_test.GridPACKTester) ... ok
hello_test (tests.gridpack_test.GridPACKTester) ... ok
task_test (tests.gridpack_test.GridPACKTester) ... ok

======================================================================
ERROR: hadrec_test (tests.gridpack_test.GridPACKTester)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/d3g096/Projects/GridPACK-Wind/src/GridPACK/python/src/tests/gridpack_test.py", line 63, in hadrec_test
    hadapp.initializeDynSimu(busfaultlist)
RuntimeError: Cblock is not a transfer function
Check the value of the parameters

No idea what's causing this.

@wperkins
Copy link
Member Author

wperkins commented Feb 5, 2024

hadrec_test (tests.gridpack_test.GridPACKTester) ... a[0] = 0.0
ERROR
hello_comm_test (tests.gridpack_test.GridPACKTester) ... ok
hello_test (tests.gridpack_test.GridPACKTester) ... ok
task_test (tests.gridpack_test.GridPACKTester) ... ok

======================================================================
ERROR: hadrec_test (tests.gridpack_test.GridPACKTester)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/d3g096/Projects/GridPACK-Wind/src/GridPACK/python/src/tests/gridpack_test.py", line 63, in hadrec_test
    hadapp.initializeDynSimu(busfaultlist)
RuntimeError: Cblock is not a transfer function
Check the value of the parameters

This error does not seem related to the pybind11 version. I started #198 for that.

@abhyshr
Copy link
Collaborator

abhyshr commented Feb 5, 2024

This is definitely an issue with the input file. What test is this?

@wperkins
Copy link
Member Author

wperkins commented Feb 5, 2024

This is definitely an issue with the input file. What test is this?

The Python unit test input. See this comment: #198 (comment)

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

No branches or pull requests

2 participants