Installation fails on Windows with Python 3.12 - missing import os and incorrect DLL naming

2 views
Skip to first unread message

christelann...@gmail.com

unread,
Dec 19, 2025, 4:50:51 AM (4 days ago) Dec 19
to Annif Users

Dear all,
Not sure how I should mention an error that I encountered when I was installing Umikuji. But I can tell the following (not sure if this is something Annif should change or the developer of Umikuji but may be someone can help on how to approach this - I am "just" a historian ;-) )

Description: Installing omikuji 0.4.1 on Windows with Python 3.12 fails due to two issues:

  1. setup.py uses os.environ but does not import os, causing NameError: name 'os' is not defined
  2. After manually fixing this, the built library file is named _libomikuji__libNone instead of _libomikuji__lib.dll, causing an OSError when loading

Environment:

  • Windows 11
  • Python 3.12.10
  • setuptools 80.x
  • Rust installed via rustup

Workaround:

  1. Download and extract omikuji source
  2. Add import os to the top of setup.py
  3. Build with pip install . --no-build-isolation
  4. Rename _libomikuji__libNone to _libomikuji__lib.dll in site-packages/omikuji/
  5. Edit _libomikuji.py to reference the correct filename

Best,
Annemieke Romein
Reply all
Reply to author
Forward
0 new messages