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 2.7 Error #403

Open
jonesnat opened this issue Jul 1, 2024 · 1 comment
Open

Python 2.7 Error #403

jonesnat opened this issue Jul 1, 2024 · 1 comment

Comments

@jonesnat
Copy link

jonesnat commented Jul 1, 2024

Describe the bug
I am getting a PyType_GetFlags error when I type this command: mdl = getBrainAgeModel( tempfile() ) in R.

Below is the error message:
Error: PyType_GetFlags - /usr/lib64/python2.7/config/libpython2.7.so: undefined symbol: PyType_GetFlags

To Reproduce
Steps to reproduce the behavior:

  1. Load Python 3.10 and R 4.3.1
  2. Start R session
  3. Load required libraries in R: brainAgeR, ANTsR, tensorflow, keras
  4. Type filename = system.file("extdata", "test_image.nii.gz", package = "brainAgeR", mustWork = TRUE)
  5. Type img = antsImageRead( filename )
  6. Run getBrainAgeModel command: mdl = getBrainAgeModel( tempfile() )
  7. See error

Expected behavior
Not get the error message

Desktop (please complete the following information):

  • OS: RHEL8
  • High performance computing cluster

Additional context
Since Python2.7 is deprecated is there a plan to update to Python3?

@ncullen93
Copy link
Member

Can you provide more context on the interplay between R and Python here - What do you mean by "Load Python 3.10.." ? Are you calling R from within Python, or vice-versa? I don't understand why you would get a Python error in ANTsR otherwise.

And in any case - we don't support Python2.7 in ANTsPy anymore.

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

No branches or pull requests

2 participants