tiktoken: pybuild-autopkgtest fails

Bug #2060690 reported by Nick Rosbrook
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tiktoken (Ubuntu)
Fix Released
Medium
Nick Rosbrook

Bug Description

Example log: https://autopkgtest.ubuntu.com/results/autopkgtest-noble/noble/amd64/t/tiktoken/20240407_063236_b4ec2@/log.gz

Relevant part:

1562s autopkgtest [06:32:23]: test pybuild-autopkgtest: [-----------------------
1562s I: pybuild base:311: cd /tmp/autopkgtest.Wp5oZZ/autopkgtest_tmp/build; python3.12 -m unittest discover -v
1562s tests.test_encoding (unittest.loader._FailedTest.tests.test_encoding) ... ERROR
1562s tests.test_helpers (unittest.loader._FailedTest.tests.test_helpers) ... ERROR
1562s tests.test_offsets (unittest.loader._FailedTest.tests.test_offsets) ... ERROR
1562s
1562s ======================================================================
1562s ERROR: tests.test_encoding (unittest.loader._FailedTest.tests.test_encoding)
1562s ----------------------------------------------------------------------
1562s ImportError: Failed to import test module: tests.test_encoding
1562s Traceback (most recent call last):
1562s File "/usr/lib/python3.12/unittest/loader.py", line 394, in _find_test_path
1562s module = self._get_module_from_name(name)
1562s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1562s File "/usr/lib/python3.12/unittest/loader.py", line 337, in _get_module_from_name
1562s __import__(name)
1562s File "/tmp/autopkgtest.Wp5oZZ/autopkgtest_tmp/build/tests/test_encoding.py", line 5, in <module>
1562s import hypothesis
1562s ModuleNotFoundError: No module named 'hypothesis'
1562s
1562s
1562s ======================================================================
1562s ERROR: tests.test_helpers (unittest.loader._FailedTest.tests.test_helpers)
1562s ----------------------------------------------------------------------
1562s ImportError: Failed to import test module: tests.test_helpers
1562s Traceback (most recent call last):
1562s File "/usr/lib/python3.12/unittest/loader.py", line 394, in _find_test_path
1562s module = self._get_module_from_name(name)
1562s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1562s File "/usr/lib/python3.12/unittest/loader.py", line 337, in _get_module_from_name
1562s __import__(name)
1562s File "/tmp/autopkgtest.Wp5oZZ/autopkgtest_tmp/build/tests/test_helpers.py", line 5, in <module>
1562s import pytest
1562s ModuleNotFoundError: No module named 'pytest'
1562s
1562s
1562s ======================================================================
1562s ERROR: tests.test_offsets (unittest.loader._FailedTest.tests.test_offsets)
1562s ----------------------------------------------------------------------
1562s ImportError: Failed to import test module: tests.test_offsets
1562s Traceback (most recent call last):
1562s File "/usr/lib/python3.12/unittest/loader.py", line 394, in _find_test_path
1562s module = self._get_module_from_name(name)
1562s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1562s File "/usr/lib/python3.12/unittest/loader.py", line 337, in _get_module_from_name
1562s __import__(name)
1562s File "/tmp/autopkgtest.Wp5oZZ/autopkgtest_tmp/build/tests/test_offsets.py", line 3, in <module>
1562s import hypothesis
1562s ModuleNotFoundError: No module named 'hypothesis'
1562s
1562s
1562s ----------------------------------------------------------------------
1562s Ran 3 tests in 0.000s
1562s
1562s FAILED (errors=3)

It appears this package needs Build-Depends: python3-pytest python3-hypothesis

Nick Rosbrook (enr0n)
tags: added: update-e
tags: added: update-excuse
removed: update-e
Nick Rosbrook (enr0n)
Changed in tiktoken (Ubuntu):
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Nick Rosbrook (enr0n)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package tiktoken - 0.6.0-2ubuntu1

---------------
tiktoken (0.6.0-2ubuntu1) noble; urgency=medium

  * debian/control: Build-Depends: python3-{pytest,hypothesis}
    (LP: #2060690)

 -- Nick Rosbrook <email address hidden> Tue, 09 Apr 2024 10:23:56 -0400

Changed in tiktoken (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.