https://bugs.openldap.org/show_bug.cgi?id=10026

--- Comment #2 from Howard Chu <[email protected]> ---
requirements.txt is incomplete.

I had to pip install ldif and pytest, but was still unable to run this:

$ pip install pytest
Collecting pytest
  Downloading pytest-9.0.1-py3-none-any.whl.metadata (7.6 kB)
Collecting iniconfig>=1.0.1 (from pytest)
  Downloading iniconfig-2.3.0-py3-none-any.whl.metadata (2.5 kB)
Collecting packaging>=22 (from pytest)
  Downloading packaging-25.0-py3-none-any.whl.metadata (3.3 kB)
Collecting pluggy<2,>=1.5 (from pytest)
  Downloading pluggy-1.6.0-py3-none-any.whl.metadata (4.8 kB)
Collecting pygments>=2.7.2 (from pytest)
  Downloading pygments-2.19.2-py3-none-any.whl.metadata (2.5 kB)
Downloading pytest-9.0.1-py3-none-any.whl (373 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 373.7/373.7 kB 6.8 MB/s eta 0:00:00
Downloading iniconfig-2.3.0-py3-none-any.whl (7.5 kB)
Downloading packaging-25.0-py3-none-any.whl (66 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 66.5/66.5 kB 14.9 MB/s eta 0:00:00
Downloading pluggy-1.6.0-py3-none-any.whl (20 kB)
Downloading pygments-2.19.2-py3-none-any.whl (1.2 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 33.8 MB/s eta 0:00:00
Installing collected packages: pygments, pluggy, packaging, iniconfig, pytest
Successfully installed iniconfig-2.3.0 packaging-25.0 pluggy-1.6.0
pygments-2.19.2 pytest-9.0.1
(venv) hyc@viola:~/OD/hobj/tests/test050$ TOP_SRCDIR=../../../head ./tester.py
Traceback (most recent call last):
  File "/home/hyc/OD/hobj/tests/test050/./tester.py", line 649, in <module>
    asyncio.run(main())
  File "/usr/lib/python3.12/asyncio/runners.py", line 194, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/asyncio/base_events.py", line 687, in
run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/home/hyc/OD/hobj/tests/test050/./tester.py", line 507, in main
    server = Server(test_ldif)
             ^^^^^^^^^^^^^^^^^
  File "/home/hyc/OD/hobj/tests/test050/./tester.py", line 147, in __init__
    self.populate_db()
  File "/home/hyc/OD/hobj/tests/test050/./tester.py", line 151, in populate_db
    db = ldif.LDIFRecordList(open(self.dbname))
         ^^^^^^^^^^^^^^^^^^^
AttributeError: module 'ldif' has no attribute 'LDIFRecordList'

-- 
You are receiving this mail because:
You are on the CC list for the issue.

Reply via email to