Last active
September 19, 2022 13:49
-
-
Save stevenkolawole/efd112baaa5a5396c8aac7b526d4ed6e to your computer and use it in GitHub Desktop.
`run.sh` error log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "/usr/lib/python3.7/urllib/request.py", line 1350, in do_open | |
encode_chunked=req.has_header('Transfer-encoding')) | |
File "/usr/lib/python3.7/http/client.py", line 1281, in request | |
self._send_request(method, url, body, headers, encode_chunked) | |
File "/usr/lib/python3.7/http/client.py", line 1327, in _send_request | |
self.endheaders(body, encode_chunked=encode_chunked) | |
File "/usr/lib/python3.7/http/client.py", line 1276, in endheaders | |
self._send_output(message_body, encode_chunked=encode_chunked) | |
File "/usr/lib/python3.7/http/client.py", line 1036, in _send_output | |
self.send(msg) | |
File "/usr/lib/python3.7/http/client.py", line 976, in send | |
self.connect() | |
File "/usr/lib/python3.7/http/client.py", line 1443, in connect | |
super().connect() | |
File "/usr/lib/python3.7/http/client.py", line 948, in connect | |
(self.host,self.port), self.timeout, self.source_address) | |
File "/usr/lib/python3.7/socket.py", line 707, in create_connection | |
for res in getaddrinfo(host, port, 0, SOCK_STREAM): | |
File "/usr/lib/python3.7/socket.py", line 752, in getaddrinfo | |
for res in _socket.getaddrinfo(host, port, family, type, proto, flags): | |
socket.gaierror: [Errno -2] Name or service not known | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "main.py", line 80, in <module> | |
dataset_train = datasets.CIFAR10('../data/cifar', train=True, download=True, transform=transform_train) | |
File "/usr/local/lib/python3.7/dist-packages/torchvision/datasets/cifar.py", line 65, in __init__ | |
self.download() | |
File "/usr/local/lib/python3.7/dist-packages/torchvision/datasets/cifar.py", line 141, in download | |
download_and_extract_archive(self.url, self.root, filename=self.filename, md5=self.tgz_md5) | |
File "/usr/local/lib/python3.7/dist-packages/torchvision/datasets/utils.py", line 446, in download_and_extract_archive | |
download_url(url, download_root, filename, md5) | |
File "/usr/local/lib/python3.7/dist-packages/torchvision/datasets/utils.py", line 146, in download_url | |
url = _get_redirect_url(url, max_hops=max_redirect_hops) | |
File "/usr/local/lib/python3.7/dist-packages/torchvision/datasets/utils.py", line 94, in _get_redirect_url | |
with urllib.request.urlopen(urllib.request.Request(url, headers=headers)) as response: | |
File "/usr/lib/python3.7/urllib/request.py", line 222, in urlopen | |
return opener.open(url, data, timeout) | |
File "/usr/lib/python3.7/urllib/request.py", line 525, in open | |
response = self._open(req, data) | |
File "/usr/lib/python3.7/urllib/request.py", line 543, in _open | |
'_open', req) | |
File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain | |
result = func(*args) | |
File "/usr/lib/python3.7/urllib/request.py", line 1393, in https_open | |
context=self._context, check_hostname=self._check_hostname) | |
File "/usr/lib/python3.7/urllib/request.py", line 1352, in do_open | |
raise URLError(err) | |
urllib.error.URLError: <urlopen error [Errno -2] Name or service not known> | |
Downloading https://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz to ../data/cifar/cifar-10-python.tar.gz | |
Downloading https://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz to ../data/cifar/cifar-10-python.tar.gz | |
100% 170498071/170498071 [00:04<00:00, 40027107.56it/s] | |
79% 134643712/170498071 [00:03<00:00, 39708884.44it/s]Extracting ../data/cifar/cifar-10-python.tar.gz to ../data/cifar | |
100% 170498071/170498071 [00:04<00:00, 36281708.22it/s] | |
Extracting ../data/cifar/cifar-10-python.tar.gz to ../data/cifar | |
Traceback (most recent call last): | |
File "main.py", line 80, in <module> | |
dataset_train = datasets.CIFAR10('../data/cifar', train=True, download=True, transform=transform_train) | |
File "/usr/local/lib/python3.7/dist-packages/torchvision/datasets/cifar.py", line 68, in __init__ | |
raise RuntimeError("Dataset not found or corrupted. You can use download=True to download it") | |
RuntimeError: Dataset not found or corrupted. You can use download=True to download it | |
Files already downloaded and verified | |
Downloading https://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz to ./data/cifar/cifar-10-python.tar.gz | |
41% 69861376/170498071 [00:00<00:01, 88806814.21it/s]Files already downloaded and verified | |
57% 97484800/170498071 [00:01<00:00, 89761820.67it/s]Files already downloaded and verified | |
100% 170498071/170498071 [00:02<00:00, 80082683.02it/s] | |
Files already downloaded and verified | |
Files already downloaded and verified | |
Extracting ./data/cifar/cifar-10-python.tar.gz to ./data/cifar | |
Files already downloaded and verified | |
Files already downloaded and verified | |
Using downloaded and verified file: ./data/cifar/cifar-10-python.tar.gz | |
Extracting ./data/cifar/cifar-10-python.tar.gz to ./data/cifar | |
Using downloaded and verified file: ./data/cifar/cifar-10-python.tar.gz | |
Extracting ./data/cifar/cifar-10-python.tar.gz to ./data/cifar | |
Using downloaded and verified file: ./data/cifar/cifar-10-python.tar.gz | |
Extracting ./data/cifar/cifar-10-python.tar.gz to ./data/cifar | |
Traceback (most recent call last): | |
File "main.py", line 82, in <module> | |
dataset_eval = datasets.CIFAR10('./data/cifar', train=True, transform=transform_val, target_transform=None, download=True) | |
File "/usr/local/lib/python3.7/dist-packages/torchvision/datasets/cifar.py", line 68, in __init__ | |
raise RuntimeError("Dataset not found or corrupted. You can use download=True to download it") | |
RuntimeError: Dataset not found or corrupted. You can use download=True to download it | |
Traceback (most recent call last): | |
File "main.py", line 82, in <module> | |
dataset_eval = datasets.CIFAR10('./data/cifar', train=True, transform=transform_val, target_transform=None, download=True) | |
File "/usr/local/lib/python3.7/dist-packages/torchvision/datasets/cifar.py", line 68, in __init__ | |
raise RuntimeError("Dataset not found or corrupted. You can use download=True to download it") | |
RuntimeError: Dataset not found or corrupted. You can use download=True to download it | |
CNNCifar( | |
(conv1): Conv2d(3, 32, kernel_size=(3, 3), stride=(1, 1)) | |
(pool): MaxPool2d(kernel_size=2, stride=2, padding=0, dilation=1, ceil_mode=False) | |
(conv2): Conv2d(32, 64, kernel_size=(3, 3), stride=(1, 1)) | |
(conv3): Conv2d(64, 64, kernel_size=(3, 3), stride=(1, 1)) | |
(hidden): ModuleList() | |
(fc1): Linear(in_features=1024, out_features=64, bias=True) | |
(fc2): Linear(in_features=64, out_features=10, bias=True) | |
) | |
Process Process-2: | |
Traceback (most recent call last): | |
File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap | |
self.run() | |
File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run | |
self._target(*self._args, **self._kwargs) | |
File "main.py", line 135, in cliet_train | |
device=torch.device('cuda:{}'.format(device_id) if torch.cuda.is_available() and args.gpu != -1 else 'cpu') | |
AttributeError: 'Namespace' object has no attribute 'gpu' | |
Process Process-4: | |
Traceback (most recent call last): | |
File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap | |
self.run() | |
File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run | |
self._target(*self._args, **self._kwargs) | |
File "main.py", line 135, in cliet_train | |
device=torch.device('cuda:{}'.format(device_id) if torch.cuda.is_available() and args.gpu != -1 else 'cpu') | |
AttributeError: 'Namespace' object has no attribute 'gpu' | |
Process Process-5: | |
Traceback (most recent call last): | |
File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap | |
self.run() | |
File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run | |
self._target(*self._args, **self._kwargs) | |
File "main.py", line 135, in cliet_train | |
device=torch.device('cuda:{}'.format(device_id) if torch.cuda.is_available() and args.gpu != -1 else 'cpu') | |
AttributeError: 'Namespace' object has no attribute 'gpu' | |
Process Process-6: | |
Traceback (most recent call last): | |
File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap | |
self.run() | |
File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run | |
self._target(*self._args, **self._kwargs) | |
File "main.py", line 135, in cliet_train | |
device=torch.device('cuda:{}'.format(device_id) if torch.cuda.is_available() and args.gpu != -1 else 'cpu') | |
AttributeError: 'Namespace' object has no attribute 'gpu' | |
Process Process-3: | |
Traceback (most recent call last): | |
File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap | |
self.run() | |
File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run | |
self._target(*self._args, **self._kwargs) | |
File "main.py", line 135, in cliet_train | |
device=torch.device('cuda:{}'.format(device_id) if torch.cuda.is_available() and args.gpu != -1 else 'cpu') | |
AttributeError: 'Namespace' object has no attribute 'gpu' | |
CNNCifar( | |
(conv1): Conv2d(3, 32, kernel_size=(3, 3), stride=(1, 1)) | |
(pool): MaxPool2d(kernel_size=2, stride=2, padding=0, dilation=1, ceil_mode=False) | |
(conv2): Conv2d(32, 64, kernel_size=(3, 3), stride=(1, 1)) | |
(conv3): Conv2d(64, 64, kernel_size=(3, 3), stride=(1, 1)) | |
(hidden): ModuleList() | |
(fc1): Linear(in_features=1024, out_features=64, bias=True) | |
(fc2): Linear(in_features=64, out_features=10, bias=True) | |
) | |
Process Process-9: | |
Traceback (most recent call last): | |
File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap | |
self.run() | |
File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run | |
self._target(*self._args, **self._kwargs) | |
File "main.py", line 135, in cliet_train | |
device=torch.device('cuda:{}'.format(device_id) if torch.cuda.is_available() and args.gpu != -1 else 'cpu') | |
AttributeError: 'Namespace' object has no attribute 'gpu' | |
Process Process-11: | |
Traceback (most recent call last): | |
File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap | |
self.run() | |
File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run | |
self._target(*self._args, **self._kwargs) | |
File "main.py", line 135, in cliet_train | |
device=torch.device('cuda:{}'.format(device_id) if torch.cuda.is_available() and args.gpu != -1 else 'cpu') | |
AttributeError: 'Namespace' object has no attribute 'gpu' | |
Process Process-12: | |
Traceback (most recent call last): | |
File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap | |
self.run() | |
File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run | |
self._target(*self._args, **self._kwargs) | |
File "main.py", line 135, in cliet_train | |
device=torch.device('cuda:{}'.format(device_id) if torch.cuda.is_available() and args.gpu != -1 else 'cpu') | |
AttributeError: 'Namespace' object has no attribute 'gpu' | |
Process Process-10: | |
Traceback (most recent call last): | |
File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap | |
self.run() | |
File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run | |
self._target(*self._args, **self._kwargs) | |
File "main.py", line 135, in cliet_train | |
device=torch.device('cuda:{}'.format(device_id) if torch.cuda.is_available() and args.gpu != -1 else 'cpu') | |
AttributeError: 'Namespace' object has no attribute 'gpu' | |
Process Process-2: | |
Process Process-8: | |
Traceback (most recent call last): | |
File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap | |
self.run() | |
File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run | |
self._target(*self._args, **self._kwargs) | |
File "main.py", line 135, in cliet_train | |
device=torch.device('cuda:{}'.format(device_id) if torch.cuda.is_available() and args.gpu != -1 else 'cpu') | |
AttributeError: 'Namespace' object has no attribute 'gpu' | |
Traceback (most recent call last): | |
File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap | |
self.run() | |
File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run | |
self._target(*self._args, **self._kwargs) | |
File "main.py", line 135, in cliet_train | |
device=torch.device('cuda:{}'.format(device_id) if torch.cuda.is_available() and args.gpu != -1 else 'cpu') | |
AttributeError: 'Namespace' object has no attribute 'gpu' | |
Process Process-3: | |
Traceback (most recent call last): | |
File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap | |
self.run() | |
File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run | |
self._target(*self._args, **self._kwargs) | |
File "main.py", line 135, in cliet_train | |
device=torch.device('cuda:{}'.format(device_id) if torch.cuda.is_available() and args.gpu != -1 else 'cpu') | |
AttributeError: 'Namespace' object has no attribute 'gpu' | |
Traceback (most recent call last): | |
File "main.py", line 319, in <module> | |
w_glob_avg = FedAvg(client_w, args.num_gpu-1, size_arr=size_arr) | |
File "/content/FedBE/models/Fed.py", line 22, in FedAvg | |
for k in w[0].keys(): | |
IndexError: list index out of range | |
Process Process-5: | |
Traceback (most recent call last): | |
File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap | |
self.run() | |
File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run | |
self._target(*self._args, **self._kwargs) | |
File "main.py", line 135, in cliet_train | |
device=torch.device('cuda:{}'.format(device_id) if torch.cuda.is_available() and args.gpu != -1 else 'cpu') | |
AttributeError: 'Namespace' object has no attribute 'gpu' | |
Process Process-6: | |
Traceback (most recent call last): | |
File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap | |
self.run() | |
File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run | |
self._target(*self._args, **self._kwargs) | |
File "main.py", line 135, in cliet_train | |
device=torch.device('cuda:{}'.format(device_id) if torch.cuda.is_available() and args.gpu != -1 else 'cpu') | |
AttributeError: 'Namespace' object has no attribute 'gpu' | |
Process Process-4: | |
Traceback (most recent call last): | |
File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap | |
self.run() | |
File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run | |
self._target(*self._args, **self._kwargs) | |
File "main.py", line 135, in cliet_train | |
device=torch.device('cuda:{}'.format(device_id) if torch.cuda.is_available() and args.gpu != -1 else 'cpu') | |
AttributeError: 'Namespace' object has no attribute 'gpu' | |
Process Process-10: | |
Traceback (most recent call last): | |
File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap | |
self.run() | |
File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run | |
self._target(*self._args, **self._kwargs) | |
File "main.py", line 135, in cliet_train | |
device=torch.device('cuda:{}'.format(device_id) if torch.cuda.is_available() and args.gpu != -1 else 'cpu') | |
AttributeError: 'Namespace' object has no attribute 'gpu' | |
Process Process-8: | |
Traceback (most recent call last): | |
File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap | |
self.run() | |
File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run | |
self._target(*self._args, **self._kwargs) | |
File "main.py", line 135, in cliet_train | |
device=torch.device('cuda:{}'.format(device_id) if torch.cuda.is_available() and args.gpu != -1 else 'cpu') | |
AttributeError: 'Namespace' object has no attribute 'gpu' | |
Process Process-9: | |
Traceback (most recent call last): | |
File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap | |
self.run() | |
File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run | |
self._target(*self._args, **self._kwargs) | |
File "main.py", line 135, in cliet_train | |
device=torch.device('cuda:{}'.format(device_id) if torch.cuda.is_available() and args.gpu != -1 else 'cpu') | |
AttributeError: 'Namespace' object has no attribute 'gpu' | |
Process Process-11: | |
Traceback (most recent call last): | |
File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap | |
self.run() | |
File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run | |
self._target(*self._args, **self._kwargs) | |
File "main.py", line 135, in cliet_train | |
device=torch.device('cuda:{}'.format(device_id) if torch.cuda.is_available() and args.gpu != -1 else 'cpu') | |
AttributeError: 'Namespace' object has no attribute 'gpu' | |
Process Process-12: | |
Traceback (most recent call last): | |
File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap | |
self.run() | |
File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run | |
self._target(*self._args, **self._kwargs) | |
File "main.py", line 135, in cliet_train | |
device=torch.device('cuda:{}'.format(device_id) if torch.cuda.is_available() and args.gpu != -1 else 'cpu') | |
AttributeError: 'Namespace' object has no attribute 'gpu' | |
Traceback (most recent call last): | |
File "main.py", line 319, in <module> | |
w_glob_avg = FedAvg(client_w, args.num_gpu-1, size_arr=size_arr) | |
File "/content/FedBE/models/Fed.py", line 22, in FedAvg | |
for k in w[0].keys(): | |
IndexError: list index out of range |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment