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

Do you need help?

Errore nel lanciare il test

nick98 (700 points)
4 12 14
in HW2 obbligatorio by (700 points)
recategorized by
uso la versione di python 3.8.5, ho aggiornato anaconda ho modificato i file in testlib ma ogni volta che eseguo il test mi ritorna questo errore:

ERROR:tornado.application:Exception in callback functools.partial(<function ZMQStream._update_handler.<locals>.<lambda> at 0x00000124C7F21550>)
Traceback (most recent call last):
  File "C:\Users\nclmd\anaconda3\lib\site-packages\tornado\ioloop.py", line 743, in _run_callback
    ret = callback()
  File "C:\Users\nclmd\anaconda3\lib\site-packages\zmq\eventloop\zmqstream.py", line 548, in <lambda>
    self.io_loop.add_callback(lambda : self._handle_events(self.socket, 0))
  File "C:\Users\nclmd\anaconda3\lib\site-packages\zmq\eventloop\zmqstream.py", line 458, in _handle_events
    zmq_events = self.socket.EVENTS
  File "C:\Users\nclmd\anaconda3\lib\site-packages\zmq\sugar\attrsettr.py", line 48, in __getattr__
    from zmq import ZMQError
  File "C:\Users\nclmd\Desktop\HW2req\HW2req\testlib.py", line 44, in _check_import
    raise ForbiddenError(f"The import of '{name}' is forbidden")
testlib.ForbiddenError: The import of 'zmq' is forbidden
test_example (__main__.Test) ... ERROR
test_json1_00001_test_200_4_eng (__main__.Test)
test_json1_00001_test_200_4_eng ... ERROR
test_json1_00002_test_400_5_ita (__main__.Test)
test_json1_00002_test_400_5_ita ...

come posso risolvere?

1 Answer

Loriv3 (7970 points)
13 21 84
by (8.0k points)