Bengali to English KeyError: 'packages'
Author: AztoriusCreated Aug 24, 2026Updated Aug 27, 2026
Hello,
It seems the Bengali to English model is not working as I have a consistent KeyError exception inside stanza. When using other pairs it works well.
Here is the sample code :
import argostranslate.package
import argostranslate.translate
from_code = "bn"
to_code = "en"
argostranslate.package.update_package_index()
available_packages = argostranslate.package.get_available_packages()
package_to_install = next(
filter(
lambda x: x.from_code == from_code and x.to_code == to_code, available_packages
)
)
argostranslate.package.install_from_path(package_to_install.download())
translatedText = argostranslate.translate.translate("আমি আপনার সাথে দেখা করে খুশি.", from_code, to_code)
print(translatedText)Thank you
Source: argosopentech/argos-translate