SpecialistOff.NET / Вопросы / Статьи / Фрагменты кода / Резюме / Метки / Помощь / Файлы

Список вопросов Печать

Ошибки при сборке Python 3.6


Метки: python 

$ make test

======================================================================
ERROR: test_logincapa_with_client_certfile (test.test_imaplib.RemoteIMAP_SSLTest)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/root/Python-3.6.1/Lib/test/test_imaplib.py", line 973, in test_logincapa_with_client_certfile
   certfile=CERTFILE)
 File "/root/Python-3.6.1/Lib/imaplib.py", line 1280, in __init__
   IMAP4.__init__(self, host, port)
 File "/root/Python-3.6.1/Lib/imaplib.py", line 197, in __init__
   self.open(host, port)
 File "/root/Python-3.6.1/Lib/imaplib.py", line 1293, in open
   IMAP4.open(self, host, port)
 File "/root/Python-3.6.1/Lib/imaplib.py", line 294, in open
   self.sock = self._create_socket()
 File "/root/Python-3.6.1/Lib/imaplib.py", line 1285, in _create_socket
   server_hostname=self.host)
 File "/root/Python-3.6.1/Lib/ssl.py", line 401, in wrap_socket
   _context=self, _session=session)
 File "/root/Python-3.6.1/Lib/ssl.py", line 808, in __init__
   self.do_handshake()
 File "/root/Python-3.6.1/Lib/ssl.py", line 1061, in do_handshake
   self._sslobj.do_handshake()
 File "/root/Python-3.6.1/Lib/ssl.py", line 683, in do_handshake
   self._sslobj.do_handshake()
ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:749)

======================================================================
ERROR: test_logincapa_with_client_ssl_context (test.test_imaplib.RemoteIMAP_SSLTest)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/root/Python-3.6.1/Lib/test/test_imaplib.py", line 979, in test_logincapa_with_client_ssl_context
   self.host, self.port, ssl_context=self.create_ssl_context())
 File "/root/Python-3.6.1/Lib/imaplib.py", line 1280, in __init__
   IMAP4.__init__(self, host, port)
 File "/root/Python-3.6.1/Lib/imaplib.py", line 197, in __init__
   self.open(host, port)
 File "/root/Python-3.6.1/Lib/imaplib.py", line 1293, in open
   IMAP4.open(self, host, port)
 File "/root/Python-3.6.1/Lib/imaplib.py", line 294, in open
   self.sock = self._create_socket()
 File "/root/Python-3.6.1/Lib/imaplib.py", line 1285, in _create_socket
   server_hostname=self.host)
 File "/root/Python-3.6.1/Lib/ssl.py", line 401, in wrap_socket
   _context=self, _session=session)
 File "/root/Python-3.6.1/Lib/ssl.py", line 808, in __init__
   self.do_handshake()
 File "/root/Python-3.6.1/Lib/ssl.py", line 1061, in do_handshake
   self._sslobj.do_handshake()
 File "/root/Python-3.6.1/Lib/ssl.py", line 683, in do_handshake
   self._sslobj.do_handshake()
ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:749)

----------------------------------------------------------------------
Ran 95 tests in 17.151s

FAILED (errors=2)
test test_imaplib failed
3 tests failed again:
   test_dtrace test_imaplib test_socket

Total duration: 4 min 53 sec
Tests result: FAILURE
Makefile:1018: ошибка выполнения рецепта для цели «test»
make: *** [test] Ошибка 1

Ещё ошибка


======================================================================
ERROR: test_aead_aes_gcm (test.test_socket.LinuxKernelCryptoAPI)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/root/Python-3.6.1/Lib/test/support/__init__.py", line 556, in wrapper
   return func(*args, **kw)
 File "/root/Python-3.6.1/Lib/test/test_socket.py", line 5497, in test_aead_aes_gcm
   res = op.recv(assoclen + len(plain) + taglen)
OSError: [Errno 22] Invalid argument

----------------------------------------------------------------------
Ran 539 tests in 24.731s

FAILED (errors=1, skipped=12)
test test_socket failed
Re-running test 'test_urllib2net' in verbose mode
test_close (test.test_urllib2net.CloseSocketTest) ... skipped "Resource 'http://www.example.com/' is not available"
test_custom_headers (test.test_urllib2net.OtherNetworkTests) ... skipped "Resource 'http://www.example.com' is not availab
le"
test_file (test.test_urllib2net.OtherNetworkTests) ... ok
test_ftp (test.test_urllib2net.OtherNetworkTests) ... ok
test_redirect_url_withfrag (test.test_urllib2net.OtherNetworkTests) ... ok
test_sites_no_connection_close (test.test_urllib2net.OtherNetworkTests) ... ok
test_urlwithfrag (test.test_urllib2net.OtherNetworkTests) ... ok
test_ftp_basic (test.test_urllib2net.TimeoutTest) ... ok
test_ftp_default_timeout (test.test_urllib2net.TimeoutTest) ... ok
test_ftp_no_timeout (test.test_urllib2net.TimeoutTest) ... ok
test_ftp_timeout (test.test_urllib2net.TimeoutTest) ... ok
test_http_basic (test.test_urllib2net.TimeoutTest) ... skipped "Resource 'http://www.example.com' is not available"
test_http_default_timeout (test.test_urllib2net.TimeoutTest) ... skipped "Resource 'http://www.example.com' is not availab
le"
test_http_no_timeout (test.test_urllib2net.TimeoutTest) ... skipped "Resource 'http://www.example.com' is not available"
test_http_timeout (test.test_urllib2net.TimeoutTest) ... skipped "Resource 'http://www.example.com' is not available"

----------------------------------------------------------------------
Ran 15 tests in 5.669s

OK (skipped=6)
2 tests failed again:
   test_dtrace test_socket

Total duration: 5 min 22 sec
Tests result: FAILURE
Makefile:1018: ошибка выполнения рецепта для цели «test»
make: *** [test] Ошибка 1

Ответы

Возможно будут интересны и другие вопросы