Dear Joaquim,

You can try increasing the waiting time by changing the run_cmd_qa call in the CPLEX easyblock (see https://github.com/easybuilders/easybuild-easyblocks/blob/easybuild-easyblocks-v4.9.2/easybuild/easyblocks/c/cplex.py#L100) to this:

run_cmd_qa(cmd, qanda, no_qa=noqanda, log_all=True, simple=True, maxhits=1000)

The "maxhits" arguments determines how long EasyBuild will wait for additional output until it gives up...

Ideally you take a copy of the CPLEX easyblock (cplex.py), change it, and feed it to EasyBuild via --include-easyblocks, and see if that helps.


regards,

Kenneth

On 13/07/2024 18:08, Joaquim Jornet Somoza wrote:
Dear Easybuilder,

I am trying to install CPLEX 22.1.1 with the recent easyconfig file independent of Python, but I am getting an error. I am using EB 4.9.1 and the configfile from git/master (CPLEX-22.1.1.eb) and the cplex.py easyblock also from the git/master.

This is the error I get:

== installing...

running interactive command:

[started at: 2024-07-13 17:57:08]

[working dir: /dev/shm/easybuild/CPLEX/22.1.1/system-system]

[output logged in /tmp/eb-zg4y5fa3/easybuild-run_cmd_qa-m2g3y_65.log]

/dev/shm/easybuild/CPLEX/22.1.1/system-system/cplex_studio2211.linux_x86_64.bin 
-i console

interactive command completed: exit -9, ran in 00h00m13s

== ... (took 13 secs)

== FAILED: Installation ended unsuccessfully (build directory: /dev/shm/easybuild/CPLEX/22.1.1/system-system): build failed (first 300 chars): cmd "/dev/shm/easybuild/CPLEX/22.1.1/system-system/cplex_studio2211.linux_x86_64.bin -i console" exited with exit code -9 and output:

Preparing to install

Extracting the JRE from the installer archive...

Unpacking the JRE...

Extracting the installation resources from the installer archive...

Configu (took 38 secs)


Looking at the log file, I realized that it gets stacked in different sections of the Q&A.
Sometimes in :

== 2024-07-13 18:02:29,279 run.py:574 DEBUG run_cmd_qa answer

question CHOOSE[\s\n]+LOCALE[\s\n]+BY[\s\n]+NUMBER:[\s\n]*$ out 5- Portugus(Brasil)


CHOOSE LOCALE BY NUMBER:

== 2024-07-13 18:02:31,475 build_log.py:171 ERROR EasyBuild crashed with an error (at easybuild/software/common/software/EasyBuild/4.9.1/lib/python3.6/site-packages/easybuild/base/exceptions.py:126 in __init__): cmd "/dev/shm/easybuild/CPLEX/22.1.1/system-system/cplex_studio2211.linux_x86_64.bin -i console" exited with exit code -9 and output:


other times it passes to the next question.

== 2024-07-13 17:57:21,221 run.py:572 DEBUG List of answers for question PRESS[\s\n]+<ENTER>[\s\n]+TO[\s\n]+CONTINUE:[\s\n]*$ after cycling: ['\n']

== 2024-07-13 17:57:21,222 run.py:574 DEBUG run_cmd_qa answer

question PRESS[\s\n]+<ENTER>[\s\n]+TO[\s\n]+CONTINUE:[\s\n]*$ out ime by typing 'quit'.


PRESS <ENTER> TO CONTINUE:

== 2024-07-13 17:57:22,229 build_log.py:171 ERROR EasyBuild crashed with an error (at easybuild/software/common/software/EasyBuild/4.9.1/lib/python3.6/site-packages/easybuild/base/exceptions.py:126 in __init__): cmd "/dev/shm/easybuild/CPLEX/22.1.1/system-system/cplex_studio2211.linux_x86_64.bin -i console" exited with exit code -9 and output:


It seems like the "waiting time" for the response is too short for my system, before EB reports an error.
Is it possible to increase this time?

Best regards
quim


--
----------------------------------------------------------------------------------------------------------------------------------------
*Dr. Joaquim Jornet Somoza*
*Técnico Superior de Cálculo Científico *
Servicios Generales a la Investigación (*SGIker*)
Universidad del País Vasco (*UPV/EHU*)
email: [email protected] <mailto:[email protected]>
Edificio Joxe Maria Korta (Campus Gipuzkoa)
Av. Tolosa 72, 4a planta
20018 Donostia-San Sebastián,
Gipuzkoa, Spain

/External Collaborator./
Nano-Bio Spectroscopy group
Departamento de Física de Materiales
Universidad del País Vasco (UPV/EHU)
Donostia-San Sebastián, Gipuzkoa, Spain

The Max Planck Institute for the Structure and Dynamics of Matter (MPSD)
Bldg. 99 (CFEL)
Luruper Chaussee 149
22761 Hamburg, Germany

Reply via email to