uqfoundation / pathos

parallel graph management and execution in heterogeneous computing
http://pathos.rtfd.io
Other
1.38k stars 89 forks source link

AttributeError: 'int' object has no attribute 'encode' #168

Closed sagarsadhu closed 5 years ago

sagarsadhu commented 5 years ago

error1 In the picture , I showed you how I used multiprocessing to 'run'. The error which I get is

Exception in thread Thread-3: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 754, in run self.target(*self.args, **self.kwargs) File "/usr/lib/python2.7/multiprocessing/pool.py", line 392, in _handle_results task = get() File "/home/ubuntu/.local/lib/python2.7/site-packages/mysql/connector/errors.py", line 194, in init__ 'msg': self.msg.encode('utf8') if PY2 else self.msg AttributeError: 'int' object has no attribute 'encode'

Details: OS : ubuntu 18.04

If you need any additional details, please ask me