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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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:
setup.py uses os.environ but does not import os, causing NameError: name 'os' is not defined
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:
Download and extract omikuji source
Add import os to the top of setup.py
Build with pip install . --no-build-isolation
Rename _libomikuji__libNone to _libomikuji__lib.dll in site-packages/omikuji/
Edit _libomikuji.py to reference the correct filename