Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft release crashes #31

Closed
marcellofederico opened this issue Jan 7, 2016 · 11 comments
Closed

Draft release crashes #31

marcellofederico opened this issue Jan 7, 2016 · 11 comments
Assignees
Labels
Milestone

Comments

@marcellofederico
Copy link
Contributor

It took me some time to update the release of java to version 8 and to tell my computer to actually use it with

sudo update-alternatives --config java
maybe some further instructions would be helpful.

Then, while running

./mmt create en it examples/data/train
the command crashes with the following message:

=========== TRAINING STARTED ===========

ENGINE: default
CORPORA: /home/marcello/Progetti/mmt/examples/data/train (3 documents)
LANGS: en > it

INFO: (1 of 6) Corpora tokenization... DONE (in 22s)
INFO: (2 of 6) Corpora cleaning... DONE (in 0s)
INFO: (3 of 6) Context Analyzer training... DONE (in 2s)
INFO: (4 of 6) Language Model training... DONE (in 0s)
2016-01-08 00:52:19,721 [ERROR] - [Errno 8] Exec format error
Traceback (most recent call last):
File "/home/marcello/Progetti/mmt/scripts/engine.py", line 286, in build
self._lm.train(tokenized_corpora, self.target_lang, working_dir, log_file)
File "/home/marcello/Progetti/mmt/scripts/mt/lm.py", line 117, in train
self._train_lm(file, os.path.join(models_folder, lm), working_dir, log)
File "/home/marcello/Progetti/mmt/scripts/mt/lm.py", line 144, in _train_lm
shell.execute(command, stderr=log)
File "/home/marcello/Progetti/mmt/scripts/libs/shell.py", line 42, in execute
process = subprocess.Popen(cmd, stdin=stdin, stdout=stdout, stderr=stderr, shell=(True if isinstance(cmd, basestring) else False))
File "/usr/lib/python2.7/subprocess.py", line 710, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 8] Exec format error
Traceback (most recent call last):
File "./mmt", line 370, in
main()
File "./mmt", line 346, in main
main_create(argv[1:])
File "./mmt", line 329, in main_create
engine.build(corpora, debug=args.debug, steps=args.training_steps)
File "/home/marcello/Progetti/mmt/scripts/engine.py", line 286, in build
self._lm.train(tokenized_corpora, self.target_lang, working_dir, log_file)
File "/home/marcello/Progetti/mmt/scripts/mt/lm.py", line 117, in train
self._train_lm(file, os.path.join(models_folder, lm), working_dir, log)
File "/home/marcello/Progetti/mmt/scripts/mt/lm.py", line 144, in _train_lm
shell.execute(command, stderr=log)
File "/home/marcello/Progetti/mmt/scripts/libs/shell.py", line 42, in execute
process = subprocess.Popen(cmd, stdin=stdin, stdout=stdout, stderr=stderr, shell=(True if isinstance(cmd, basestring) else False))
File "/usr/lib/python2.7/subprocess.py", line 710, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 8] Exec format error

@marcotrombetti
Copy link
Contributor

Have you tried this?

sudo add-apt-repository ppa:openjdk-r/ppa && sudo apt-get update && sudo apt-get install openjdk-8-jdk

@davidecaroselli
Copy link
Member

Ciao Marcello,

Due check velocissimi:
Stai usando ubuntu 14.04?
Se esegui java -version hai effettivamente la versione 1.8?

Dovresti inoltre avere dei log nella cartella engines/default/logs,
potresti passarmeli?

Grazie!

Il venerdì 8 gennaio 2016, Marco Trombetti notifications@github.com ha
scritto:

Have you tried this?

sudo add-apt-repository ppa:openjdk-r/ppa && sudo apt-get update && sudo apt-get install openjdk-8-jdk


Reply to this email directly or view it on GitHub
#31 (comment).

@marcellofederico
Copy link
Contributor Author

Ciao Davide,

more /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.3 LTS"

java -version
openjdk version "1.8.0_72-internal"
OpenJDK Runtime Environment (build 1.8.0_72-internal-b05)
OpenJDK Server VM (build 25.72-b05, mixed mode)

Ecco i file di log:
log.tar.zip

@marcellofederico
Copy link
Contributor Author

@marcotrombetti: yes I did.

@marcotrombetti marcotrombetti added this to the 0.11 milestone Jan 8, 2016
@davidecaroselli
Copy link
Member

Perdonami Marcello, ma non riesco ad aprire il file log.tar.zip. Potresti
rimandarmi un nuovo archivio zip o tar.gz ? Grazie!

2016-01-08 9:30 GMT+01:00 Marcello Federico notifications@github.com:

@marcotrombetti https://github.com/marcotrombetti: yes I did.


Reply to this email directly or view it on GitHub
#31 (comment).

@marcellofederico
Copy link
Contributor Author

Scusami ma ormai sono in ufficio. Il fai lo creato facendo tar e poi zip
Marcello

On 08 Jan 2016, at 10:14, Davide Caroselli notifications@github.com wrote:

Perdonami Marcello, ma non riesco ad aprire il file log.tar.zip. Potresti
rimandarmi un nuovo archivio zip o tar.gz ? Grazie!

2016-01-08 9:30 GMT+01:00 Marcello Federico notifications@github.com:

@marcotrombetti https://github.com/marcotrombetti: yes I did.


Reply to this email directly or view it on GitHub
#31 (comment).


Reply to this email directly or view it on GitHub #31 (comment).

@marcotrombetti
Copy link
Contributor

@davidecaroselli

Ti allego qui il contenuto del file di Marcello:

engines/default/logs/�������������������������������������������������������������������������������0000755�0001750�0001753�00000000000�12643667014�014753� 5����������������������������������������������������������������������������������������������������ustar  �marcello������������������������family�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������engines/default/logs/build.lm.log�������������������������������������������������������������������0000644�0001750�0001753�00000000173�12643667015�017166� 0����������������������������������������������������������������������������������������������������ustar  �marcello������������������������family�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ls: impossibile accedere a /home/marcello/Progetti/mmt/engines/default/temp/lm/temp/dict.*: File o directory non esistente
�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������engines/default/logs/build.context.log��������������������������������������������������������������0000644�0001750�0001753�00000001376�12643667014�020247� 0����������������������������������������������������������������������������������������������������ustar  �marcello������������������������family�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������[main] INFO eu.modernmt.context.ContextAnalyzer - Rebuild ContextAnalyzer index...
[main] INFO eu.modernmt.context.lucene.ContextAnalyzerIndex - Adding to index document ibm.en
[main] INFO eu.modernmt.context.lucene.ContextAnalyzerIndex - Adding to index document europarl.it
[main] INFO eu.modernmt.context.lucene.ContextAnalyzerIndex - Adding to index document ibm.it
[main] INFO eu.modernmt.context.lucene.ContextAnalyzerIndex - Adding to index document microsoft.it
[main] INFO eu.modernmt.context.lucene.ContextAnalyzerIndex - Adding to index document microsoft.en
[main] INFO eu.modernmt.context.lucene.ContextAnalyzerIndex - Adding to index document europarl.en
[main] INFO eu.modernmt.context.ContextAnalyzer - ContextAnalyzer index rebuild completed in 2s.
����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������```

@marcotrombetti
Copy link
Contributor

Comunque mi sembra che non possiamo assumere che Ubuntu 14.04 funzioni in tutti i casi.

Vedi ad esempio #39

@davidecaroselli
Copy link
Member

@mfederico could you please send me a zip file with the entire engines folder, and the exact sequence of commands you run?

Can you also send me the version of your python? Just run 'python --version' in a terminal. Thanks!

@marcotrombetti
Copy link
Contributor

Can we close this?

@davidecaroselli has it been solved?

@davidecaroselli
Copy link
Member

I close it for now because the bug is still not replicable. If you have more information about this problem, please reopen it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants