Errore nel lanciare il test

nick98 (700 points)
3 11 14
asked Oct 25, 2020 in HW2 obbligatorio by nick98 (700 points)
recategorized Nov 5, 2020 by andrea.sterbini
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)
8 20 84
answered Oct 25, 2020 by Loriv3 (7,970 points)