Repository navigation
BKChem-portable for Windows
·
11 commits
to main
since this release
Fork release 9 — 2026-11-10
Added / Changed
- The build of the portable releases is automated by GitHub Actions: (
.github/workflows/build-portable.yml)
Fixed
- The bugs in the experimental web server module are fixed: The Python 2 code in
http_server.pyandhttp_server2.pywas fixed so that they would pass the import and handler functionality tests. Note that thestart_server()function inmain.py—the only file that calls these scripts—has been commented out. (bkchem/http_server.py,bkchem/http_server2.py) - The final processing for Read SMILES / Read InChI is modified: The final processing of the structural formula generation program within BKChem is modified to use a more conservative approach: only atoms that are virtually completely overlapping (less than 5% of the bond length) are separated to 0.6 bond lengths. While the conversion of compounds that are resistant to deformation, such as Phloxine B, has improved, compounds with longer carbon chains, such as α-Tocopherol acetate, sometimes result in entangled structures when converted. In such cases, reloading helps. However, using OpenBabel is recommended instead. (
bkchem/oasa_bridge.py) - Structure database module is fixed: This is a library feature that oasa silently disabled when the import failed, as there was no place in the BKChem menu to call this module. The now-deprecated external package
pysqlite2has been replaced by the standard library’ssqlite3. Three instances within the same file (file(), opening a file in gzip text mode, and passingdict.values()tosqlite3) are also fixed. (bkchem/oasa/oasa/structure_database.py) - InChIKey generation is fixed:
get_sha256()passed astrtohashlib, which raisesTypeErroron Python 3, so the wholeinchi_keymodule was unusable and oasa silently disabled it. The digest is now computed from UTF-8 bytes and decoded back with latin-1, so the existingord()-based code sees the same characters as on Python 2. Verified against official keys for ethanol, water, benzene, acetic acid and methane (5/5 match). This is only the fallback used when the external InChI program returns no key — Generate InChI viainchi-1.exeis unaffected. (bkchem/oasa/oasa/inchi_key.py)