8000 Scikit-bio installation with Python 3.12 causes failures when testing · Issue #1897 · scikit-bio/scikit-bio · GitHub
[go: up one dir, main page]

Skip to content
Scikit-bio installation with Python 3.12 causes failures when testing #1897
@Bharath-Sathappan

Description

@Bharath-Sathappan

I followed these instructions to install scikit-bio with Python version 3.12.

At the make test step, I encountered the below failures:

FAIL: test_open_gzip (__main__.TestWriteBufferedReader.test_open_gzip)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/bsathappan/scikit-bio/skbio/io/tests/test_util.py", line 343, in test_open_gzip
    self.compare_gzip_file_contents(self.get_contents(self.gzip_file),
  File "/home/bsathappan/scikit-bio/skbio/io/tests/test_util.py", line 329, in compare_gzip_file_contents
    self.assertEqual(a[-8:], b[-8:])
AssertionError: b'le_file\x00' != b'\x8a\x9d\xf4\x165\x00\x00\x00'
======================================================================
FAIL: test_open_gzip_encoding (__main__.TestWriteBufferedReader.test_open_gzip_encoding)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/bsathappan/scikit-bio/skbio/io/tests/test_util.py", line 365, in test_open_gzip_encoding
    self.compare_gzip_file_contents(
  File "/home/bsathappan/scikit-bio/skbio/io/tests/test_util.py", line 329, in compare_gzip_file_contents
    self.assertEqual(a[-8:], b[-8:])
AssertionError: b'g5_file\x00' != b'&\x05\xd3\xe1\x05\x00\x00\x00'
======================================================================
FAIL: test_open_gzip (__main__.TestWriteBytesIO.test_open_gzip)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/bsathappan/scikit-bio/skbio/io/tests/test_util.py", line 493, in test_open_gzip
    self.compare_gzip_file_contents(self.get_contents(self.gzip_file),
  File "/home/bsathappan/scikit-bio/skbio/io/tests/test_util.py", line 329, in compare_gzip_file_contents
    self.assertEqual(a[-8:], b[-8:])
AssertionError: b'' != b'\x8a\x9d\xf4\x165\x00\x00\x00'
======================================================================
FAIL: test_open_gzip_encoding (__main__.TestWriteBytesIO.test_open_gzip_encoding)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/bsathappan/scikit-bio/skbio/io/tests/test_util.py", line 501, in test_open_gzip_encoding
    self.compare_gzip_file_contents(
  File "/home/bsathappan/scikit-bio/skbio/io/tests/test_util.py", line 329, in compare_gzip_file_contents
    self.assertEqual(a[-8:], b[-8:])
AssertionError: b'' != b'&\x05\xd3\xe1\x05\x00\x00\x00'
======================================================================
FAIL: test_open_gzip (__main__.TestWriteNamedTemporaryFile.test_open_gzip)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/bsathappan/scikit-bio/skbio/io/tests/test_util.py", line 343, in test_open_gzip
    self.compare_gzip_file_contents(self.get_contents(self.gzip_file),
  File "/home/bsathappan/scikit-bio/skbio/io/tests/test_util.py", line 329, in compare_gzip_file_contents
    self.assertEqual(a[-8:], b[-8:])
AssertionError: b'py4ezep\x00' != b'\x8a\x9d\xf4\x165\x00\x00\x00'
======================================================================
FAIL: test_open_gzip_encoding (__main__.TestWriteNamedTemporaryFile.test_open_gzip_encoding)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/bsathappan/scikit-bio/skbio/io/tests/test_util.py", line 365, in test_open_gzip_encoding
    self.compare_gzip_file_contents(
  File "/home/bsathappan/scikit-bio/skbio/io/tests/test_util.py", line 329, in compare_gzip_file_contents
    self.assertEqual(a[-8:], b[-8:])
AssertionError: b'v7olg_j\x00' != b'&\x05\xd3\xe1\x05\x00\x00\x00'
======================================================================
FAIL: test_open_gzip (__main__.TestWriteTemporaryFile.test_open_gzip)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/bsathappan/scikit-bio/skbio/io/tests/test_util.py", line 343, in test_open_gzip
    self.compare_gzip_file_contents(self.get_contents(self.gzip_file),
  File "/home/bsathappan/scikit-bio/skbio/io/tests/test_util.py", line 329, in compare_gzip_file_contents
    self.assertEqual(a[-8:], b[-8:])
AssertionError: b'\x08\x004\xb6Se\x02\xff' != b'\x8a\x9d\xf4\x165\x00\x00\x00'
======================================================================
FAIL: test_open_gzip_encoding (__main__.TestWriteTemporaryFile.test_open_gzip_encoding)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/bsathappan/scikit-bio/skbio/io/tests/test_util.py", line 365, in test_open_gzip_encoding
    self.compare_gzip_file_contents(
  File "/home/bsathappan/scikit-bio/skbio/io/tests/test_util.py", line 329, in compare_gzip_file_contents
    self.assertEqual(a[-8:], b[-8:])
AssertionError: b'\x08\x004\xb6Se\x02\xff' != b'&\x05\xd3\xe1\x05\x00\x00\x00'
----------------------------------------------------------------------
Ran 220 tests in 2.498s
FAILED (failures=8)

I repeated the installation process with Python version 3.11, and everything worked properly and all tests passed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0