Pergunta

Problema de acesso a determinados sites

  • 12 June 2019
  • 0 respostas
  • 200 visualizações

Crachá +1
Boa tarde,

Já algum tempo que tenho problemas de acesso a determinados sites, e os que sinto que me fazem falta são:
  • https://pip.pypa.io/
  • https://pypi.org/
  • https://files.pythonhosted.org/
Não consigo aceder mudando os DNS (1.1.1.1 ou 8.8.8.8), já tentei contactar o 16209 e não me conseguiram resolver o problema.

Apenas consigo aceder utilizando proxy (tanto no browser como na linha de comandos) (Privoxy com Tor).

Para além de não consegui aceder aos sites, o funcionamento do comando "pip" do Python também é afetado.

Log:
code:
#pip install --no-cache-dir -v MySQL-python
Config variable 'Py_DEBUG' is unset, Python ABI tag may be incorrect
Config variable 'WITH_PYMALLOC' is unset, Python ABI tag may be incorrect
Created temporary directory: C:\Users\Karbust\AppData\Local\Temp\pip-ephem-wheel-cache-7ix7el7m
Created temporary directory: C:\Users\Karbust\AppData\Local\Temp\pip-req-tracker-4ft4gt6n
Created requirements tracker 'C:\\Users\\Karbust\\AppData\\Local\\Temp\\pip-req-tracker-4ft4gt6n'
Created temporary directory: C:\Users\Karbust\AppData\Local\Temp\pip-install-w1nnib17
Collecting MySQL-python
1 location(s) to search for versions of MySQL-python:
* https://pypi.org/simple/mysql-python/
Getting page https://pypi.org/simple/mysql-python/
Starting new HTTPS connection (1): pypi.org:443
Incremented Retry for (url='/simple/mysql-python/'): Retry(total=4, connect=None, read=None, redirect=None, status=None)
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/mysql-python/
Starting new HTTPS connection (2): pypi.org:443
Incremented Retry for (url='/simple/mysql-python/'): Retry(total=3, connect=None, read=None, redirect=None, status=None)
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/mysql-python/
Starting new HTTPS connection (3): pypi.org:443
Incremented Retry for (url='/simple/mysql-python/'): Retry(total=2, connect=None, read=None, redirect=None, status=None)
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/mysql-python/
Starting new HTTPS connection (4): pypi.org:443
Incremented Retry for (url='/simple/mysql-python/'): Retry(total=1, connect=None, read=None, redirect=None, status=None)
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/mysql-python/
Starting new HTTPS connection (5): pypi.org:443
Incremented Retry for (url='/simple/mysql-python/'): Retry(total=0, connect=None, read=None, redirect=None, status=None)
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/mysql-python/
Starting new HTTPS connection (6): pypi.org:443
Could not fetch URL https://pypi.org/simple/mysql-python/: connection error: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/mysql-python/ (Caused by ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))) - skipping
ERROR: Could not find a version that satisfies the requirement MySQL-python (from versions: none)
Cleaning up...
Removed build tracker 'C:\\Users\\Karbust\\AppData\\Local\\Temp\\pip-req-tracker-4ft4gt6n'
ERROR: No matching distribution found for MySQL-python
Exception information:
Traceback (most recent call last):
File "c:\users\karbust\appdata\local\programs\python\python37\lib\site-packages\pip\_internal\cli\base_command.py", line 178, in main
status = self.run(options, args)
File "c:\users\karbust\appdata\local\programs\python\python37\lib\site-packages\pip\_internal\commands\install.py", line 352, in run
resolver.resolve(requirement_set)
File "c:\users\karbust\appdata\local\programs\python\python37\lib\site-packages\pip\_internal\resolve.py", line 131, in resolve
self._resolve_one(requirement_set, req)
File "c:\users\karbust\appdata\local\programs\python\python37\lib\site-packages\pip\_internal\resolve.py", line 294, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
File "c:\users\karbust\appdata\local\programs\python\python37\lib\site-packages\pip\_internal\resolve.py", line 242, in _get_abstract_dist_for
self.require_hashes
File "c:\users\karbust\appdata\local\programs\python\python37\lib\site-packages\pip\_internal\operations\prepare.py", line 282, in prepare_linked_requirement
req.populate_link(finder, upgrade_allowed, require_hashes)
File "c:\users\karbust\appdata\local\programs\python\python37\lib\site-packages\pip\_internal\req\req_install.py", line 198, in populate_link
self.link = finder.find_requirement(self, upgrade)
File "c:\users\karbust\appdata\local\programs\python\python37\lib\site-packages\pip\_internal\index.py", line 792, in find_requirement
'No matching distribution found for %s' % req
pip._internal.exceptions.DistributionNotFound: No matching distribution found for MySQL-python
Config variable 'Py_DEBUG' is unset, Python ABI tag may be incorrect
Config variable 'WITH_PYMALLOC' is unset, Python ABI tag may be incorrect
1 location(s) to search for versions of pip:
* https://pypi.org/simple/pip/
Getting page https://pypi.org/simple/pip/
Starting new HTTPS connection (1): pypi.org:443
Could not fetch URL https://pypi.org/simple/pip/: connection error: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))) - skipping


Já tentei com com outro computadores (Ubuntu e Kali Linux) e o resultado foi o mesmo.

Alguém me consegue ajudar com este problema?

Obrigado

Tópico fechado, já não permite mais respostas.