Please ignore secret bonuses. Secret tests do NOT award bonus. Max hw grade is 30+2 bonus efficiency

Do you need help?

Notice Board

Per partecipare al corso di Fondamenti di programmazione 2023-24 loggatevi e attivatelo nella vostra pagina dei corsi preferiti. A quel punto il corso appare nel menù personale cliccando sul proprio avatar. Per i materiali degli anni precedenti seguite lo stesso metodo.

To join the Programming/Lab 2023-24 course, log-on and select it on the my courses page. It will appear on the personal menu of your avatar. For earlier years use the same method.

Hw3 bis esercizio 2

p
paolo (360 points)
0 8 14
in Es2 by (360 points)
closed by

La virtual machine nel testare il secondo esercizio dell' HW3Bis in corettezza mi da questo messaggio:

python -m pytest -v -s  --timeout=5 --durations 0 -ra --json program02.log.json test_02.py


Still running (1 of 30)= python -m pytest -v -s --timeout=5 --durations 0 -ra --json program02.log.json test_02.py
[31;1mThe command python -m pytest -v -s --timeout=5 --durations 0 -ra --json program02.log.json test_02.py exited with 2.[0m

[32;1mLog=[0m

============================= test session starts ==============================
platform linux -- Python 3.6.3, pytest-4.0.2, py-1.5.2, pluggy-0.8.0 -- /home/travis/virtualenv/python3.6.3/bin/python
cachedir= .pytest_cache
rootdir= /home/travis/build/Fondamenti18/HW3bis/students/1810033/homework07, inifile=
plugins= timeout-1.3.3, json-0.4.0
timeout= 5.0s
timeout method= signal
timeout func_only= False
collecting ... collected 0 items / 1 errors

==================================== ERRORS ====================================
______________________________ ERROR collecting  _______________________________
ImportError while importing test module '/home/travis/build/Fondamenti18/HW3bis/master/test_02.py'.
Hint= make sure your test modules/packages have valid Python names.
Traceback=
../../../master/test_02.py=5= in 
    import program02 as program
program02.py=76= in 
    import IPython.display as ipd
E   ModuleNotFoundError= No module named 'IPython'
 generated json report= /home/travis/build/Fondamenti18/HW3bis/students/1810033/homework07/program02.log.json 
=========================== short test summary info ============================
ERROR 
!!!!!!!!!!!!!!!!!!! Interrupted= 1 errors during collection !!!!!!!!!!!!!!!!!!!!
=========================== 1 error in 0.11 seconds ============================
/bin/bash= line 1=  5763 Terminated              travis_jigger "${!}" "${timeout}" "${cmd[@]}"
MAX TEST TIME (240s) REACHED
non capisco che cosa vuol dire 
305 views
closed with the note: answered

1 Answer

andrea.sterbini (208020 points)
756 1270 2377
by (208k points)
Non puoi importare librerie aggiuntive.
(e nella VM non è installato ipython)