OPUS-CAT MT installation issues

Hi 

I'm trying to test the OPUS-CAT app but Studio can't connect to the engine. I think this is because the main engine installation has a problem (I get no results when I enter text in the "Translate with model" in the engine interface).

In Studio, although the Connection status is green:

I get an error message when a look-up is performed:

So, presuming my OPUS-CAT installation has an issue, my doubts and questions are:
1. I copied the zip installation file to the location where I wanted to install the MT engine and unzipped it into its own folder. I ran the .exe file by clicking "Open". Windows defender flagged it and I clicked "Allow".
Question: Does the folder location matter? I've got it in Dropbox, which is recognised as a local folder on my PC. 

2. Since point 1 didn't work, I tried uninstalling. There was nothing in Window's "Remove app" list, so I thought that I could simply delete the whole folder.
Question: Is there a better way to uninstall OPUS-CAT?

3. I reinstalled in My Documents and ran the .exe as Administrator (not just "Open"). I was surprised to see the es-en model was still there from the deleted installation.
Question: where does OPUS-CAT store these models?

4. With both attempts, I tried using the model for my language pair (es-en opus-2019-12-04) and then installed the opposite direction, es-en, just in case. Then, since I'd read elsewhere that en-ru works, I tried that language pair, with no results at all in the "Translate with model".
Question: Why don't any of these language pairs work when I click "Translate with model"?

5. Finally, I tried changing the MT service net.tcp port from 8477 to 1024 on the MT interface (which I then restarted) and in the Studio plug-in (which I also restarted). No luck.
Question: can any port be selected from 1024-65535 or is it more complex than that?
 

I look forward to solving these problems and testing OPUS-CAT.

Emma

  • Hi Emma,

    Sorry to hear you're having trouble, I've answered your questions below, there's a potential solution in answer 4:

    1. Install location should not matter, although My Documents is a good place.

    2. OPUS-CAT MT Engine is what's called a portable application, which basically means that it can be installed just by extracting the zip package and uninstalled by removing the extraction directory (no changes are made to Windows registry or settings). So deleting the folder is the normal way of uninstalling.

    3. All OPUS-CAT data (including models) are stored in the user's local application data folder, usually in the path C:\Users\[YourUserNameHere]\AppData\Local\opuscat\. You can open this folder by typing %localappdata%\opuscat into the address bar in Windows Explorer.

    4. This might be due to a bug I came across recently. OPUS-CAT caches the translations it generates into a database file, and in some cases that file has become corrupted, which causes translation to fail. You can check this opening the OPUS-CAT data directory (the aforementioned %localappdata%/opuscat), removing the file translations.sqlite and then restarting OPUS-CAT (a new translations.sqlite file will be generated on startup).

    5. Any free port can be selected, but the default port should work. Since you got the green signal in the Trados plugin, the port is working, it's just that translation is failing.

    -Tommi

  • Thank you for your fast response and very clear explanations,  .

    I removed the sqlite file you mention in point 4 and reloaded OPUS-CAT. No improvement.

    I'm attaching a log file I've found. The main problem I can see are the "file not found" errors, like these: 
    C:\Users\Emma\source.bpe
    C:\Users\Emma\decoder.yml
    C:\\Users\\Emma\\source.tcmodel

    But that username doesn't exist. I think it should be looking here:
    C:\Users\Emma Goldsmith\AppData\Local\opuscat\models\es-en\opus-2019-12-04

    Anyway, no doubt the log file errors will be more meaningful to you than me!

    Emma


    2021-06-05 09:35:09.762 +02:00 [INF] Setting Tls12 as security protocol (required for accessing online model storage
    2021-06-05 09:35:09.779 +02:00 [INF] Opening OPUS-CAT MT Engine window
    2021-06-05 09:35:09.781 +02:00 [INF] Starting OPUS-CAT MT Engine
    2021-06-05 09:35:09.782 +02:00 [INF] Fetching a list of online models from https://object.pouta.csc.fi/OPUS-MT-models/
    2021-06-05 09:35:09.997 +02:00 [INF] Starting OPUS-CAT MT Engine's net.tcp and HTTP APIs
    2021-06-05 09:35:10.010 +02:00 [INF] Creating service host with following URIs: net.tcp://localhost:8477/,http://localhost:8500/
    2021-06-05 09:35:10.031 +02:00 [INF] Opening the service host
    2021-06-05 09:35:10.100 +02:00 [INF] HTTP API could not be started, starting Net.tcp API. If HTTP API is required, add the relevant URL to the urlacl list with netsh.
    2021-06-05 09:35:10.100 +02:00 [INF] Creating service host with following URIs: net.tcp://localhost:8477/
    2021-06-05 09:35:10.101 +02:00 [INF] Opening the service host
    2021-06-05 09:40:41.407 +02:00 [INF] Starting MT pipe for model es-en_opus-2019-12-04.
    2021-06-05 09:40:41.558 +02:00 [INF] [2021-06-05 09:40:41] Error: File 'C:\Users\Emma\decoder.yml' does not exist
    2021-06-05 09:40:41.558 +02:00 [INF] [2021-06-05 09:40:41] Error: Aborted from marian::io::InputFileStream::InputFileStream in C:\Users\niemi\Documents\Code\marian\src\common\file_stream.cpp:22
    2021-06-05 09:40:41.595 +02:00 [INF] 
    2021-06-05 09:40:41.595 +02:00 [INF] [CALL STACK]
    2021-06-05 09:40:41.595 +02:00 [INF]     > 00007FF73C230209 (SymFromAddr() error)
    2021-06-05 09:40:41.595 +02:00 [INF]     - 00007FF73C22F51A (SymFromAddr() error)
    2021-06-05 09:40:41.595 +02:00 [INF]     - 00007FF73C057FFC (SymFromAddr() error)
    2021-06-05 09:40:41.595 +02:00 [INF]     - 00007FF73BE23583 (SymFromAddr() error)
    2021-06-05 09:40:41.595 +02:00 [INF]     - 00007FF73BE2674B (SymFromAddr() error)
    2021-06-05 09:40:41.595 +02:00 [INF]     - 00007FF73C3309F4 (SymFromAddr() error)
    2021-06-05 09:40:41.595 +02:00 [INF]     - BaseThreadInitThunk
    2021-06-05 09:40:41.595 +02:00 [INF]     - RtlUserThreadStart
    2021-06-05 09:40:41.595 +02:00 [INF] 
    2021-06-05 09:40:41.595 +02:00 [INF] 
    2021-06-05 09:40:41.694 +02:00 [INF] usage: apply_bpe.exe [-h] [--input PATH] --codes PATH [--merges INT]
    2021-06-05 09:40:41.694 +02:00 [INF]                      [--output PATH] [--separator STR] [--vocabulary PATH]
    2021-06-05 09:40:41.694 +02:00 [INF]                      [--vocabulary-threshold INT] [--glossaries STR [STR ...]]
    2021-06-05 09:40:41.694 +02:00 [INF] apply_bpe.exe: error: argument --codes/-c: can't open 'C:\Users\Emma\source.bpe': [Errno 2] No such file or directory: 'C:\\Users\\Emma\\source.bpe'
    2021-06-05 09:40:41.916 +02:00 [INF] [18092] Failed to execute script process
    2021-06-05 09:40:41.916 +02:00 [INF] Traceback (most recent call last):
    2021-06-05 09:40:41.916 +02:00 [INF]   File "process.py", line 46, in <module>
    2021-06-05 09:40:41.916 +02:00 [INF]   File "process.py", line 21, in preprocess
    2021-06-05 09:40:41.916 +02:00 [INF]   File "sacremoses\truecase.py", line 83, in __init__
    2021-06-05 09:40:41.916 +02:00 [INF]   File "sacremoses\truecase.py", line 430, in _load_model
    2021-06-05 09:40:41.916 +02:00 [INF] FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Emma\\source.tcmodel'
    2021-06-05 11:37:13.738 +02:00 [INF] Setting Tls12 as security protocol (required for accessing online model storage
    2021-06-05 11:37:13.754 +02:00 [INF] Opening OPUS-CAT MT Engine window
    2021-06-05 11:37:13.755 +02:00 [INF] Starting OPUS-CAT MT Engine
    2021-06-05 11:37:13.760 +02:00 [INF] Fetching a list of online models from https://object.pouta.csc.fi/OPUS-MT-models/
    2021-06-05 11:37:14.134 +02:00 [INF] Starting OPUS-CAT MT Engine's net.tcp and HTTP APIs
    2021-06-05 11:37:14.139 +02:00 [INF] Creating service host with following URIs: net.tcp://localhost:8477/,http://localhost:8500/
    2021-06-05 11:37:14.154 +02:00 [INF] Opening the service host
    2021-06-05 11:37:14.203 +02:00 [INF] HTTP API could not be started, starting Net.tcp API. If HTTP API is required, add the relevant URL to the urlacl list with netsh.
    2021-06-05 11:37:14.203 +02:00 [INF] Creating service host with following URIs: net.tcp://localhost:8477/
    2021-06-05 11:37:14.204 +02:00 [INF] Opening the service host
    2021-06-05 11:37:24.811 +02:00 [INF] Starting MT pipe for model es-en_opus-2019-12-04.
    2021-06-05 11:37:24.938 +02:00 [INF] [2021-06-05 11:37:24] Error: File 'C:\Users\Emma\decoder.yml' does not exist
    2021-06-05 11:37:24.938 +02:00 [INF] [2021-06-05 11:37:24] Error: Aborted from marian::io::InputFileStream::InputFileStream in C:\Users\niemi\Documents\Code\marian\src\common\file_stream.cpp:22
    2021-06-05 11:37:24.980 +02:00 [INF] 
    2021-06-05 11:37:24.980 +02:00 [INF] [CALL STACK]
    2021-06-05 11:37:24.980 +02:00 [INF]     > 00007FF73C230209 (SymFromAddr() error)
    2021-06-05 11:37:24.980 +02:00 [INF]     - 00007FF73C22F51A (SymFromAddr() error)
    2021-06-05 11:37:24.980 +02:00 [INF]     - 00007FF73C057FFC (SymFromAddr() error)
    2021-06-05 11:37:24.980 +02:00 [INF]     - 00007FF73BE23583 (SymFromAddr() error)
    2021-06-05 11:37:24.980 +02:00 [INF]     - 00007FF73BE2674B (SymFromAddr() error)
    2021-06-05 11:37:24.980 +02:00 [INF]     - 00007FF73C3309F4 (SymFromAddr() error)
    2021-06-05 11:37:24.980 +02:00 [INF]     - BaseThreadInitThunk
    2021-06-05 11:37:24.980 +02:00 [INF]     - RtlUserThreadStart
    2021-06-05 11:37:24.980 +02:00 [INF] 
    2021-06-05 11:37:24.980 +02:00 [INF] 
    2021-06-05 11:37:25.096 +02:00 [INF] usage: apply_bpe.exe [-h] [--input PATH] --codes PATH [--merges INT]
    2021-06-05 11:37:25.096 +02:00 [INF]                      [--output PATH] [--separator STR] [--vocabulary PATH]
    2021-06-05 11:37:25.096 +02:00 [INF]                      [--vocabulary-threshold INT] [--glossaries STR [STR ...]]
    2021-06-05 11:37:25.096 +02:00 [INF] apply_bpe.exe: error: argument --codes/-c: can't open 'C:\Users\Emma\source.bpe': [Errno 2] No such file or directory: 'C:\\Users\\Emma\\source.bpe'
    2021-06-05 11:37:25.276 +02:00 [INF] [8492] Failed to execute script process
    2021-06-05 11:37:25.277 +02:00 [INF] Traceback (most recent call last):
    2021-06-05 11:37:25.277 +02:00 [INF]   File "process.py", line 46, in <module>
    2021-06-05 11:37:25.277 +02:00 [INF]   File "process.py", line 21, in preprocess
    2021-06-05 11:37:25.277 +02:00 [INF]   File "sacremoses\truecase.py", line 83, in __init__
    2021-06-05 11:37:25.277 +02:00 [INF]   File "sacremoses\truecase.py", line 430, in _load_model
    2021-06-05 11:37:25.277 +02:00 [INF] FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Emma\\source.tcmodel'
    2021-06-05 12:18:12.738 +02:00 [INF] Setting Tls12 as security protocol (required for accessing online model storage
    2021-06-05 12:18:12.754 +02:00 [INF] Opening OPUS-CAT MT Engine window
    2021-06-05 12:18:12.756 +02:00 [INF] Starting OPUS-CAT MT Engine
    2021-06-05 12:18:12.760 +02:00 [INF] Fetching a list of online models from https://object.pouta.csc.fi/OPUS-MT-models/
    2021-06-05 12:18:13.079 +02:00 [INF] Starting OPUS-CAT MT Engine's net.tcp and HTTP APIs
    2021-06-05 12:18:13.084 +02:00 [INF] Creating service host with following URIs: net.tcp://localhost:8477/,http://localhost:8500/
    2021-06-05 12:18:13.098 +02:00 [INF] Opening the service host
    2021-06-05 12:18:13.146 +02:00 [INF] HTTP API could not be started, starting Net.tcp API. If HTTP API is required, add the relevant URL to the urlacl list with netsh.
    2021-06-05 12:18:13.147 +02:00 [INF] Creating service host with following URIs: net.tcp://localhost:8477/
    2021-06-05 12:18:13.147 +02:00 [INF] Opening the service host
    2021-06-05 12:19:17.677 +02:00 [INF] Setting Tls12 as security protocol (required for accessing online model storage
    2021-06-05 12:19:17.693 +02:00 [INF] Opening OPUS-CAT MT Engine window
    2021-06-05 12:19:17.695 +02:00 [INF] Starting OPUS-CAT MT Engine
    2021-06-05 12:19:17.698 +02:00 [INF] Fetching a list of online models from https://object.pouta.csc.fi/OPUS-MT-models/
    2021-06-05 12:19:17.845 +02:00 [INF] Starting OPUS-CAT MT Engine's net.tcp and HTTP APIs
    2021-06-05 12:19:17.850 +02:00 [INF] Creating service host with following URIs: net.tcp://localhost:8477/,http://localhost:8500/
    2021-06-05 12:19:17.864 +02:00 [INF] Opening the service host
    2021-06-05 12:19:17.913 +02:00 [INF] HTTP API could not be started, starting Net.tcp API. If HTTP API is required, add the relevant URL to the urlacl list with netsh.
    2021-06-05 12:19:17.914 +02:00 [INF] Creating service host with following URIs: net.tcp://localhost:8477/
    2021-06-05 12:19:17.914 +02:00 [INF] Opening the service host
    2021-06-05 12:20:07.817 +02:00 [INF] Starting MT pipe for model en-es_opus-2019-12-04.
    2021-06-05 12:20:07.867 +02:00 [INF] [2021-06-05 12:20:07] Error: File 'C:\Users\Emma\decoder.yml' does not exist
    2021-06-05 12:20:07.867 +02:00 [INF] [2021-06-05 12:20:07] Error: Aborted from marian::io::InputFileStream::InputFileStream in C:\Users\niemi\Documents\Code\marian\src\common\file_stream.cpp:22
    2021-06-05 12:20:07.921 +02:00 [INF] 
    2021-06-05 12:20:07.921 +02:00 [INF] [CALL STACK]
    2021-06-05 12:20:07.921 +02:00 [INF]     > 00007FF73C230209 (SymFromAddr() error)
    2021-06-05 12:20:07.921 +02:00 [INF]     - 00007FF73C22F51A (SymFromAddr() error)
    2021-06-05 12:20:07.921 +02:00 [INF]     - 00007FF73C057FFC (SymFromAddr() error)
    2021-06-05 12:20:07.921 +02:00 [INF]     - 00007FF73BE23583 (SymFromAddr() error)
    2021-06-05 12:20:07.921 +02:00 [INF]     - 00007FF73BE2674B (SymFromAddr() error)
    2021-06-05 12:20:07.921 +02:00 [INF]     - 00007FF73C3309F4 (SymFromAddr() error)
    2021-06-05 12:20:07.921 +02:00 [INF]     - BaseThreadInitThunk
    2021-06-05 12:20:07.921 +02:00 [INF]     - RtlUserThreadStart
    2021-06-05 12:20:07.921 +02:00 [INF] 
    2021-06-05 12:20:07.921 +02:00 [INF] 
    2021-06-05 12:20:08.063 +02:00 [INF] usage: apply_bpe.exe [-h] [--input PATH] --codes PATH [--merges INT]
    2021-06-05 12:20:08.063 +02:00 [INF]                      [--output PATH] [--separator STR] [--vocabulary PATH]
    2021-06-05 12:20:08.063 +02:00 [INF]                      [--vocabulary-threshold INT] [--glossaries STR [STR ...]]
    2021-06-05 12:20:08.063 +02:00 [INF] apply_bpe.exe: error: argument --codes/-c: can't open 'C:\Users\Emma\source.bpe': [Errno 2] No such file or directory: 'C:\\Users\\Emma\\source.bpe'
    2021-06-05 12:20:08.289 +02:00 [INF] [22208] Failed to execute script process
    2021-06-05 12:20:08.289 +02:00 [INF] Traceback (most recent call last):
    2021-06-05 12:20:08.289 +02:00 [INF]   File "process.py", line 46, in <module>
    2021-06-05 12:20:08.289 +02:00 [INF]   File "process.py", line 21, in preprocess
    2021-06-05 12:20:08.289 +02:00 [INF]   File "sacremoses\truecase.py", line 83, in __init__
    2021-06-05 12:20:08.289 +02:00 [INF]   File "sacremoses\truecase.py", line 430, in _load_model
    2021-06-05 12:20:08.289 +02:00 [INF] FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Emma\\source.tcmodel'
    2021-06-05 12:22:05.309 +02:00 [INF] Starting MT pipe for model en-fr_opus-2020-02-26.
    2021-06-05 12:22:05.370 +02:00 [INF] spm_encode_main.cc(52) [_status.ok()] Not found: "C:\Users\Emma\source.spm": No such file or directory Error #2
    2021-06-05 12:22:05.370 +02:00 [INF] Program terminated with an unrecoverable error.
    2021-06-05 12:22:05.375 +02:00 [INF] [2021-06-05 12:22:05] Error: File 'C:\Users\Emma\decoder.yml' does not exist
    2021-06-05 12:22:05.375 +02:00 [INF] [2021-06-05 12:22:05] Error: Aborted from marian::io::InputFileStream::InputFileStream in C:\Users\niemi\Documents\Code\marian\src\common\file_stream.cpp:22
    2021-06-05 12:22:05.396 +02:00 [INF] 
    2021-06-05 12:22:05.396 +02:00 [INF] [CALL STACK]
    2021-06-05 12:22:05.396 +02:00 [INF]     > 00007FF73C230209 (SymFromAddr() error)
    2021-06-05 12:22:05.396 +02:00 [INF]     - 00007FF73C22F51A (SymFromAddr() error)
    2021-06-05 12:22:05.396 +02:00 [INF]     - 00007FF73C057FFC (SymFromAddr() error)
    2021-06-05 12:22:05.396 +02:00 [INF]     - 00007FF73BE23583 (SymFromAddr() error)
    2021-06-05 12:22:05.396 +02:00 [INF]     - 00007FF73BE2674B (SymFromAddr() error)
    2021-06-05 12:22:05.396 +02:00 [INF]     - 00007FF73C3309F4 (SymFromAddr() error)
    2021-06-05 12:22:05.396 +02:00 [INF]     - BaseThreadInitThunk
    2021-06-05 12:22:05.396 +02:00 [INF]     - RtlUserThreadStart
    2021-06-05 12:22:05.396 +02:00 [INF] 
    2021-06-05 12:22:05.396 +02:00 [INF] 
    2021-06-05 12:23:00.196 +02:00 [INF] Starting MT pipe for model en-ru_opus-2020-02-11.
    2021-06-05 12:23:00.223 +02:00 [INF] spm_encode_main.cc(52) [_status.ok()] Not found: "C:\Users\Emma\source.spm": No such file or directory Error #2
    2021-06-05 12:23:00.223 +02:00 [INF] Program terminated with an unrecoverable error.
    2021-06-05 12:23:00.230 +02:00 [INF] [2021-06-05 12:23:00] Error: File 'C:\Users\Emma\decoder.yml' does not exist
    2021-06-05 12:23:00.230 +02:00 [INF] [2021-06-05 12:23:00] Error: Aborted from marian::io::InputFileStream::InputFileStream in C:\Users\niemi\Documents\Code\marian\src\common\file_stream.cpp:22
    2021-06-05 12:23:00.250 +02:00 [INF] 
    2021-06-05 12:23:00.251 +02:00 [INF] [CALL STACK]
    2021-06-05 12:23:00.251 +02:00 [INF]     > 00007FF73C230209 (SymFromAddr() error)
    2021-06-05 12:23:00.251 +02:00 [INF]     - 00007FF73C22F51A (SymFromAddr() error)
    2021-06-05 12:23:00.251 +02:00 [INF]     - 00007FF73C057FFC (SymFromAddr() error)
    2021-06-05 12:23:00.251 +02:00 [INF]     - 00007FF73BE23583 (SymFromAddr() error)
    2021-06-05 12:23:00.251 +02:00 [INF]     - 00007FF73BE2674B (SymFromAddr() error)
    2021-06-05 12:23:00.251 +02:00 [INF]     - 00007FF73C3309F4 (SymFromAddr() error)
    2021-06-05 12:23:00.251 +02:00 [INF]     - BaseThreadInitThunk
    2021-06-05 12:23:00.251 +02:00 [INF]     - RtlUserThreadStart
    2021-06-05 12:23:00.251 +02:00 [INF] 
    2021-06-05 12:23:00.251 +02:00 [INF] 
    2021-06-05 12:27:36.070 +02:00 [INF] Setting Tls12 as security protocol (required for accessing online model storage
    2021-06-05 12:27:36.085 +02:00 [INF] Opening OPUS-CAT MT Engine window
    2021-06-05 12:27:36.087 +02:00 [INF] Starting OPUS-CAT MT Engine
    2021-06-05 12:27:36.092 +02:00 [INF] Fetching a list of online models from https://object.pouta.csc.fi/OPUS-MT-models/
    2021-06-05 12:27:36.603 +02:00 [INF] Starting OPUS-CAT MT Engine's net.tcp and HTTP APIs
    2021-06-05 12:27:36.626 +02:00 [INF] Creating service host with following URIs: net.tcp://localhost:8477/,http://localhost:8500/
    2021-06-05 12:27:36.642 +02:00 [INF] Opening the service host
    2021-06-05 12:27:36.695 +02:00 [INF] HTTP API could not be started, starting Net.tcp API. If HTTP API is required, add the relevant URL to the urlacl list with netsh.
    2021-06-05 12:27:36.695 +02:00 [INF] Creating service host with following URIs: net.tcp://localhost:8477/
    2021-06-05 12:27:36.696 +02:00 [INF] Opening the service host
    2021-06-05 12:54:42.655 +02:00 [INF] Starting MT pipe for model es-en_opus-2019-12-04.
    2021-06-05 12:54:42.771 +02:00 [INF] [2021-06-05 12:54:42] Error: File 'C:\Users\Emma\decoder.yml' does not exist
    2021-06-05 12:54:42.771 +02:00 [INF] [2021-06-05 12:54:42] Error: Aborted from marian::io::InputFileStream::InputFileStream in C:\Users\niemi\Documents\Code\marian\src\common\file_stream.cpp:22
    2021-06-05 12:54:42.794 +02:00 [INF] 
    2021-06-05 12:54:42.794 +02:00 [INF] [CALL STACK]
    2021-06-05 12:54:42.794 +02:00 [INF]     > 00007FF6A51C0209 (SymFromAddr() error)
    2021-06-05 12:54:42.794 +02:00 [INF]     - 00007FF6A51BF51A (SymFromAddr() error)
    2021-06-05 12:54:42.794 +02:00 [INF]     - 00007FF6A4FE7FFC (SymFromAddr() error)
    2021-06-05 12:54:42.794 +02:00 [INF]     - 00007FF6A4DB3583 (SymFromAddr() error)
    2021-06-05 12:54:42.794 +02:00 [INF]     - 00007FF6A4DB674B (SymFromAddr() error)
    2021-06-05 12:54:42.794 +02:00 [INF]     - 00007FF6A52C09F4 (SymFromAddr() error)
    2021-06-05 12:54:42.794 +02:00 [INF]     - BaseThreadInitThunk
    2021-06-05 12:54:42.794 +02:00 [INF]     - RtlUserThreadStart
    2021-06-05 12:54:42.794 +02:00 [INF] 
    2021-06-05 12:54:42.794 +02:00 [INF] 
    2021-06-05 12:54:42.936 +02:00 [INF] usage: apply_bpe.exe [-h] [--input PATH] --codes PATH [--merges INT]
    2021-06-05 12:54:42.936 +02:00 [INF]                      [--output PATH] [--separator STR] [--vocabulary PATH]
    2021-06-05 12:54:42.936 +02:00 [INF]                      [--vocabulary-threshold INT] [--glossaries STR [STR ...]]
    2021-06-05 12:54:42.936 +02:00 [INF] apply_bpe.exe: error: argument --codes/-c: can't open 'C:\Users\Emma\source.bpe': [Errno 2] No such file or directory: 'C:\\Users\\Emma\\source.bpe'
    2021-06-05 12:54:43.122 +02:00 [INF] [16392] Failed to execute script process
    2021-06-05 12:54:43.122 +02:00 [INF] Traceback (most recent call last):
    2021-06-05 12:54:43.122 +02:00 [INF]   File "process.py", line 46, in <module>
    2021-06-05 12:54:43.122 +02:00 [INF]   File "process.py", line 21, in preprocess
    2021-06-05 12:54:43.122 +02:00 [INF]   File "sacremoses\truecase.py", line 83, in __init__
    2021-06-05 12:54:43.122 +02:00 [INF]   File "sacremoses\truecase.py", line 430, in _load_model
    2021-06-05 12:54:43.122 +02:00 [INF] FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Emma\\source.tcmodel'
    2021-06-05 13:05:14.271 +02:00 [INF] Setting Tls12 as security protocol (required for accessing online model storage
    2021-06-05 13:05:14.308 +02:00 [INF] Opening OPUS-CAT MT Engine window
    2021-06-05 13:05:14.314 +02:00 [INF] Starting OPUS-CAT MT Engine
    2021-06-05 13:05:14.342 +02:00 [INF] Fetching a list of online models from https://object.pouta.csc.fi/OPUS-MT-models/
    2021-06-05 13:05:14.682 +02:00 [INF] Starting OPUS-CAT MT Engine's net.tcp and HTTP APIs
    2021-06-05 13:05:14.700 +02:00 [INF] Creating service host with following URIs: net.tcp://localhost:8477/,http://localhost:8500/
    2021-06-05 13:05:14.753 +02:00 [INF] Opening the service host
    2021-06-05 13:05:14.871 +02:00 [INF] net.tcp and HTTP APIs were started
    2021-06-05 13:05:50.280 +02:00 [INF] Starting MT pipe for model es-en_opus-2019-12-04.
    2021-06-05 13:05:50.390 +02:00 [INF] [2021-06-05 13:05:50] Error: File 'C:\Users\Emma\decoder.yml' does not exist
    2021-06-05 13:05:50.390 +02:00 [INF] [2021-06-05 13:05:50] Error: Aborted from marian::io::InputFileStream::InputFileStream in C:\Users\niemi\Documents\Code\marian\src\common\file_stream.cpp:22
    2021-06-05 13:05:50.413 +02:00 [INF] 
    2021-06-05 13:05:50.413 +02:00 [INF] [CALL STACK]
    2021-06-05 13:05:50.413 +02:00 [INF]     > 00007FF6EA560209 (SymFromAddr() error)
    2021-06-05 13:05:50.413 +02:00 [INF]     - 00007FF6EA55F51A (SymFromAddr() error)
    2021-06-05 13:05:50.413 +02:00 [INF]     - 00007FF6EA387FFC (SymFromAddr() error)
    2021-06-05 13:05:50.413 +02:00 [INF]     - 00007FF6EA153583 (SymFromAddr() error)
    2021-06-05 13:05:50.413 +02:00 [INF]     - 00007FF6EA15674B (SymFromAddr() error)
    2021-06-05 13:05:50.413 +02:00 [INF]     - 00007FF6EA6609F4 (SymFromAddr() error)
    2021-06-05 13:05:50.413 +02:00 [INF]     - BaseThreadInitThunk
    2021-06-05 13:05:50.413 +02:00 [INF]     - RtlUserThreadStart
    2021-06-05 13:05:50.413 +02:00 [INF] 
    2021-06-05 13:05:50.413 +02:00 [INF] 
    2021-06-05 13:05:50.579 +02:00 [INF] usage: apply_bpe.exe [-h] [--input PATH] --codes PATH [--merges INT]
    2021-06-05 13:05:50.579 +02:00 [INF]                      [--output PATH] [--separator STR] [--vocabulary PATH]
    2021-06-05 13:05:50.579 +02:00 [INF]                      [--vocabulary-threshold INT] [--glossaries STR [STR ...]]
    2021-06-05 13:05:50.579 +02:00 [INF] apply_bpe.exe: error: argument --codes/-c: can't open 'C:\Users\Emma\source.bpe': [Errno 2] No such file or directory: 'C:\\Users\\Emma\\source.bpe'
    2021-06-05 13:05:50.750 +02:00 [INF] [4456] Failed to execute script process
    2021-06-05 13:05:50.751 +02:00 [INF] Traceback (most recent call last):
    2021-06-05 13:05:50.751 +02:00 [INF]   File "process.py", line 46, in <module>
    2021-06-05 13:05:50.751 +02:00 [INF]   File "process.py", line 21, in preprocess
    2021-06-05 13:05:50.751 +02:00 [INF]   File "sacremoses\truecase.py", line 83, in __init__
    2021-06-05 13:05:50.751 +02:00 [INF]   File "sacremoses\truecase.py", line 430, in _load_model
    2021-06-05 13:05:50.751 +02:00 [INF] FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Emma\\source.tcmodel'
    2021-06-05 13:37:55.242 +02:00 [INF] Setting Tls12 as security protocol (required for accessing online model storage
    2021-06-05 13:37:55.260 +02:00 [INF] Opening OPUS-CAT MT Engine window
    2021-06-05 13:37:55.262 +02:00 [INF] Starting OPUS-CAT MT Engine
    2021-06-05 13:37:55.267 +02:00 [INF] Fetching a list of online models from https://object.pouta.csc.fi/OPUS-MT-models/
    2021-06-05 13:37:55.690 +02:00 [INF] Starting OPUS-CAT MT Engine's net.tcp and HTTP APIs
    2021-06-05 13:37:55.712 +02:00 [INF] Creating service host with following URIs: net.tcp://localhost:1024/,http://localhost:8500/
    2021-06-05 13:37:55.730 +02:00 [INF] Opening the service host
    2021-06-05 13:37:55.783 +02:00 [INF] HTTP API could not be started, starting Net.tcp API. If HTTP API is required, add the relevant URL to the urlacl list with netsh.
    2021-06-05 13:37:55.783 +02:00 [INF] Creating service host with following URIs: net.tcp://localhost:1024/
    2021-06-05 13:37:55.783 +02:00 [INF] Opening the service host
    2021-06-05 13:38:59.685 +02:00 [INF] Starting MT pipe for model es-en_opus-2019-12-04.
    2021-06-05 13:38:59.832 +02:00 [INF] [2021-06-05 13:38:59] Error: File 'C:\Users\Emma\decoder.yml' does not exist
    2021-06-05 13:38:59.832 +02:00 [INF] [2021-06-05 13:38:59] Error: Aborted from marian::io::InputFileStream::InputFileStream in C:\Users\niemi\Documents\Code\marian\src\common\file_stream.cpp:22
    2021-06-05 13:38:59.854 +02:00 [INF] 
    2021-06-05 13:38:59.854 +02:00 [INF] [CALL STACK]
    2021-06-05 13:38:59.854 +02:00 [INF]     > 00007FF6EA560209 (SymFromAddr() error)
    2021-06-05 13:38:59.855 +02:00 [INF]     - 00007FF6EA55F51A (SymFromAddr() error)
    2021-06-05 13:38:59.855 +02:00 [INF]     - 00007FF6EA387FFC (SymFromAddr() error)
    2021-06-05 13:38:59.855 +02:00 [INF]     - 00007FF6EA153583 (SymFromAddr() error)
    2021-06-05 13:38:59.855 +02:00 [INF]     - 00007FF6EA15674B (SymFromAddr() error)
    2021-06-05 13:38:59.855 +02:00 [INF]     - 00007FF6EA6609F4 (SymFromAddr() error)
    2021-06-05 13:38:59.855 +02:00 [INF]     - BaseThreadInitThunk
    2021-06-05 13:38:59.855 +02:00 [INF]     - RtlUserThreadStart
    2021-06-05 13:38:59.855 +02:00 [INF] 
    2021-06-05 13:38:59.855 +02:00 [INF] 
    2021-06-05 13:38:59.960 +02:00 [INF] usage: apply_bpe.exe [-h] [--input PATH] --codes PATH [--merges INT]
    2021-06-05 13:38:59.960 +02:00 [INF]                      [--output PATH] [--separator STR] [--vocabulary PATH]
    2021-06-05 13:38:59.960 +02:00 [INF]                      [--vocabulary-threshold INT] [--glossaries STR [STR ...]]
    2021-06-05 13:38:59.960 +02:00 [INF] apply_bpe.exe: error: argument --codes/-c: can't open 'C:\Users\Emma\source.bpe': [Errno 2] No such file or directory: 'C:\\Users\\Emma\\source.bpe'
    2021-06-05 13:39:00.184 +02:00 [INF] [6328] Failed to execute script process
    2021-06-05 13:39:00.184 +02:00 [INF] Traceback (most recent call last):
    2021-06-05 13:39:00.184 +02:00 [INF]   File "process.py", line 46, in <module>
    2021-06-05 13:39:00.184 +02:00 [INF]   File "process.py", line 21, in preprocess
    2021-06-05 13:39:00.184 +02:00 [INF]   File "sacremoses\truecase.py", line 83, in __init__
    2021-06-05 13:39:00.184 +02:00 [INF]   File "sacremoses\truecase.py", line 430, in _load_model
    2021-06-05 13:39:00.184 +02:00 [INF] FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Emma\\source.tcmodel'
    2021-06-05 17:35:45.748 +02:00 [INF] Setting Tls12 as security protocol (required for accessing online model storage
    2021-06-05 17:35:45.763 +02:00 [INF] Opening OPUS-CAT MT Engine window
    2021-06-05 17:35:45.765 +02:00 [INF] Starting OPUS-CAT MT Engine
    2021-06-05 17:35:45.766 +02:00 [INF] Fetching a list of online models from https://object.pouta.csc.fi/OPUS-MT-models/
    2021-06-05 17:35:46.169 +02:00 [INF] Starting OPUS-CAT MT Engine's net.tcp and HTTP APIs
    2021-06-05 17:35:46.173 +02:00 [INF] Creating service host with following URIs: net.tcp://localhost:8477/,http://localhost:8500/
    2021-06-05 17:35:46.189 +02:00 [INF] Opening the service host
    2021-06-05 17:35:46.240 +02:00 [INF] HTTP API could not be started, starting Net.tcp API. If HTTP API is required, add the relevant URL to the urlacl list with netsh.
    2021-06-05 17:35:46.240 +02:00 [INF] Creating service host with following URIs: net.tcp://localhost:8477/
    2021-06-05 17:35:46.241 +02:00 [INF] Opening the service host
    2021-06-05 17:35:57.138 +02:00 [INF] Starting MT pipe for model es-en_opus-2019-12-04.
    2021-06-05 17:35:57.189 +02:00 [INF] [2021-06-05 17:35:57] Error: File 'C:\Users\Emma\decoder.yml' does not exist
    2021-06-05 17:35:57.189 +02:00 [INF] [2021-06-05 17:35:57] Error: Aborted from marian::io::InputFileStream::InputFileStream in C:\Users\niemi\Documents\Code\marian\src\common\file_stream.cpp:22
    2021-06-05 17:35:57.212 +02:00 [INF] 
    2021-06-05 17:35:57.212 +02:00 [INF] [CALL STACK]
    2021-06-05 17:35:57.212 +02:00 [INF]     > 00007FF6EA560209 (SymFromAddr() error)
    2021-06-05 17:35:57.212 +02:00 [INF]     - 00007FF6EA55F51A (SymFromAddr() error)
    2021-06-05 17:35:57.212 +02:00 [INF]     - 00007FF6EA387FFC (SymFromAddr() error)
    2021-06-05 17:35:57.212 +02:00 [INF]     - 00007FF6EA153583 (SymFromAddr() error)
    2021-06-05 17:35:57.212 +02:00 [INF]     - 00007FF6EA15674B (SymFromAddr() error)
    2021-06-05 17:35:57.213 +02:00 [INF]     - 00007FF6EA6609F4 (SymFromAddr() error)
    2021-06-05 17:35:57.213 +02:00 [INF]     - BaseThreadInitThunk
    2021-06-05 17:35:57.213 +02:00 [INF]     - RtlUserThreadStart
    2021-06-05 17:35:57.213 +02:00 [INF] 
    2021-06-05 17:35:57.213 +02:00 [INF] 
    2021-06-05 17:35:57.435 +02:00 [INF] usage: apply_bpe.exe [-h] [--input PATH] --codes PATH [--merges INT]
    2021-06-05 17:35:57.435 +02:00 [INF]                      [--output PATH] [--separator STR] [--vocabulary PATH]
    2021-06-05 17:35:57.435 +02:00 [INF]                      [--vocabulary-threshold INT] [--glossaries STR [STR ...]]
    2021-06-05 17:35:57.435 +02:00 [INF] apply_bpe.exe: error: argument --codes/-c: can't open 'C:\Users\Emma\source.bpe': [Errno 2] No such file or directory: 'C:\\Users\\Emma\\source.bpe'
    2021-06-05 17:35:57.687 +02:00 [INF] [12632] Failed to execute script process
    2021-06-05 17:35:57.687 +02:00 [INF] Traceback (most recent call last):
    2021-06-05 17:35:57.687 +02:00 [INF]   File "process.py", line 46, in <module>
    2021-06-05 17:35:57.687 +02:00 [INF]   File "process.py", line 21, in preprocess
    2021-06-05 17:35:57.687 +02:00 [INF]   File "sacremoses\truecase.py", line 83, in __init__
    2021-06-05 17:35:57.687 +02:00 [INF]   File "sacremoses\truecase.py", line 430, in _load_model
    2021-06-05 17:35:57.687 +02:00 [INF] FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Emma\\source.tcmodel'
    

  • Hi Emma,

    Ok, this seems to be another known bug, caused by a space in your username. Unfortunately there's no workaround for this problem, but the next version that fixes this problem (and the database problem) will be out next week.

    -Tommi

  • Ah, yes. I've got that crazy space in my username – why oh why did I do that, when I know some programs are sensitive to spaces in paths Rolling eyes
    Thanks for identifying the problem. I look forward to a new version next week.

  • The new version that fixes the issue with spaces in user names can be downloaded from here.