Skip to content

BKChem-portable for Windows

Choose a tag to compare

@github-actions github-actions released this 11 Nov 00:20
· 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.py and http_server2.py was fixed so that they would pass the import and handler functionality tests. Note that the start_server() function in main.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 pysqlite2 has been replaced by the standard library’s sqlite3. Three instances within the same file (file(), opening a file in gzip text mode, and passing dict.values() to sqlite3) are also fixed. (bkchem/oasa/oasa/structure_database.py)
  • InChIKey generation is fixed: get_sha256() passed a str to hashlib, which raises TypeError on Python 3, so the whole inchi_key module was unusable and oasa silently disabled it. The digest is now computed from UTF-8 bytes and decoded back with latin-1, so the existing ord()-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 via inchi-1.exe is unaffected. (bkchem/oasa/oasa/inchi_key.py)