OpenNMT Forum

Core dump while running


 I am creating a virtual environment in anaconda. While running in the created

environment, I am getting a core dump issue. Please find the below error message:

(opennmt) administrator@~/OpenNMT-py$ python3 -m pdb --ip “” --port “7790” --url_root “/translator” --config "./available_models/conf_pyonmttok.json"
> /home/administrator/OpenNMT-py/
-> import configargparse
(Pdb) n
> /home/administrator/OpenNMT-py/
-> from flask import Flask, jsonify, request
(Pdb) n
> /home/administrator/OpenNMT-py/
-> from onmt.translate import TranslationServer, ServerModelError
(Pdb) n
Illegal instruction (core dumped)
(opennmt) administrator@~/OpenNMT-py$

The above is captured while debugging. There is core dump while importing TranslationServer, ServerModelError.

Please someone assist me in resolving the Core Dump issue.


did you follow this tuto ?

Dear Vincent,

I have followed the tutorial for creating the simple REST OpenNMT-py server. 

The issue is resolved by reinstalling the torch.

Thank You for the support.