Run Raspbery Pi แล้วขึ้นแบบนี้ ช่วยแนะนำหน่อยครับไม่รู้ว่า error อะไรบ้าง

ตอบกระทู้

รูปแสดงอารมณ์
:icon_plusone: :like: :plusone: :gfb: :-D :) :( :-o 8O :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: :angry: :baa: :biggrin:
รูปแสดงอารมณ์อื่นๆ

BBCode เปิด
[img] เปิด
[url] เปิด
[Smile icon] เปิด

กระทู้แนะนำ
   

มุมมองที่ขยายได้ กระทู้แนะนำ: Run Raspbery Pi แล้วขึ้นแบบนี้ ช่วยแนะนำหน่อยครับไม่รู้ว่า error อะไรบ้าง

Re: Run Raspbery Pi แล้วขึ้นแบบนี้ ช่วยแนะนำหน่อยครับไม่รู้ว่า error อะไรบ้าง

โดย bellzeed » 12/07/2017 5:30 pm

เช็คแล้วครับ host ตัวนี้ไม่ได้เปิดอยู่ครับ
เดี๋ยวผมจะลองสร้างฐานข้อมูลเองครับ
ขอบคุณครับ

Re: Run Raspbery Pi แล้วขึ้นแบบนี้ ช่วยแนะนำหน่อยครับไม่รู้ว่า error อะไรบ้าง

โดย mindphp » 12/07/2017 4:31 pm

xmlrpc ติดต่อ host อื่นไม่ได้ครับ ลองเช็คว่า host ที่ระบุเปิดอยู่ หรือเปล่า
ถ้าเขียนทดสอบ ลองสร้างฐานข้อมูลในเครื่องตัวเอง แล้วใช้เป็น localhost แทน ip host อื่นดูก่อนก็ได้ครับ

Run Raspbery Pi แล้วขึ้นแบบนี้ ช่วยแนะนำหน่อยครับไม่รู้ว่า error อะไรบ้าง

โดย bellzeed » 12/07/2017 3:30 pm

โค้ด: เลือกทั้งหมด

Traceback (most recent call last):
  File "/home/pi/Desktop/scan_bk/attend/Web_register/f_register.py", line 61, in <module>
    class Register(object):
  File "/home/pi/Desktop/scan_bk/attend/Web_register/f_register.py", line 88, in Register
    uid = sock.login(DB,USER,PASS)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1233, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1591, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.7/xmlrpclib.py", line 1273, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1301, in single_request
    self.send_content(h, request_body)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1448, in send_content
    connection.endheaders(request_body)
  File "/usr/lib/python2.7/httplib.py", line 997, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python2.7/httplib.py", line 850, in _send_output
    self.send(msg)
  File "/usr/lib/python2.7/httplib.py", line 812, in send
    self.connect()
  File "/usr/lib/python2.7/httplib.py", line 793, in connect
    self.timeout, self.source_address)
  File "/usr/lib/python2.7/socket.py", line 571, in create_connection
    raise err
error: [Errno 113] No route to host
>>> 

ข้างบน