Traceback (most recent call last):


 "/home/zhangxu/project/python/map/test.py", line 1, in <module>

import requests


 "/home/zhangxu/.virtualenvs/spider/lib/python3.6/site-packages/requests/__init__.py", line 48, in <module>

import urllib3


 "/home/zhangxu/.virtualenvs/spider/lib/python3.6/site-packages/urllib3/__init__.py", line 8, in <module>

from .connectionpool import (


 "/home/zhangxu/.virtualenvs/spider/lib/python3.6/site-packages/urllib3/connectionpool.py", line 7, in <module>

from socket import error as SocketError, timeout as SocketTimeout


 "/usr/lib64/python3.6/socket.py", line 52, in <module>

import os, sys, io, selectors


 "/usr/lib64/python3.6/selectors.py", line 11, in <module>

import select


 "/home/zhangxu/project/python/map/select.py", line 31, in <module>

con = connect.mysql_save()


 "/home/zhangxu/project/python/map/connect.py", line 7, in __init__

self.conn = self.connect()


 "/home/zhangxu/project/python/map/connect.py", line 16, in connect

conn = pymysql.connect(host=host, port="", user=user, passwd=password, db=dbName, charset=charset)


 "/home/zhangxu/.virtualenvs/spider/lib/python3.6/site-packages/pymysql/__init__.py", line 90, in Connect

return Connection(*args, **kwargs)


 "/home/zhangxu/.virtualenvs/spider/lib/python3.6/site-packages/pymysql/connections.py", line 699, in __init__

self.connect()


 "/home/zhangxu/.virtualenvs/spider/lib/python3.6/site-packages/pymysql/connections.py", line 918, in connect

sock = socket.create_connection(
AttributeError: module 'socket' has no attribute 'create_connection'

Traceback (most recent call last):


 "/home/hyunjo/Segmentation/detectron2/detectron2/engine/train_loop.py", line 132, in train

self.run_step()


 "/home/hyunjo/Segmentation/detectron2/detectron2/engine/train_loop.py", line 215, in run_step

loss_dict = self.model(data)


 "/home/hyunjo/anaconda3/envs/detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py", line 532, in __call__

result = self.forward(*input, **kwargs)


 "/home/hyunjo/Segmentation/detectron2/detectron2/modeling/meta_arch/rcnn.py", line 130, in forward

_, detector_losses = self.roi_heads(images, features, proposals, gt_instances)


 "/home/hyunjo/anaconda3/envs/detectron2/lib/python3.6/site-packages/torch/nn/modules/module.py", line 532, in __call__

result = self.forward(*input, **kwargs)


 "/home/hyunjo/Segmentation/detectron2/detectron2/modeling/roi_heads/roi_heads.py", line 589, in forward

losses.update(self._forward_mask(features_list, proposals))


 "/home/hyunjo/Segmentation/detectron2/projects/PointRend/point_rend/roi_heads.py", line 124, in _forward_mask

losses.update(self._forward_mask_point(features, mask_coarse_logits, proposals))


 "/home/hyunjo/Segmentation/detectron2/projects/PointRend/point_rend/roi_heads.py", line 183, in _forward_mask_point

point_logits, instances, point_coords_wrt_image


 "/home/hyunjo/Segmentation/detectron2/projects/PointRend/point_rend/point_head.py", line 43, in roi_mask_point_loss

instances[0].gt_masks, BitMasks


 "/home/hyunjo/Segmentation/detectron2/detectron2/structures/instances.py", line 62, in __getattr__

raise AttributeError("Cannot find field '{}' in the given Instances!".format(name))
AttributeError: Cannot find field 'gt_masks' in the given Instances!
