Bonjour,

J'ai une erreur dans la distrib python 3.7 ou 3.2 avec ftplib :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Python 3.2.3 (default, Mar 25 2017, 13:24:50) 
[GCC 4.6.3] on linux2
Type "copyright", "credits" or "license()" for more information.
>>> ================================ RESTART ================================
>>> 
17
Traceback (most recent call last):
  File "/home/pi/Rs_Arduino/part1_fic/bou_part_ftp3.py", line 49, in <module>
    go_ftp_res_rpa()
  File "/home/pi/Rs_Arduino/part1_fic/bou_part_ftp3.py", line 37, in go_ftp_res_rpa
    ftp = ftplib.FTP('ftp.xxxxxxxxxxxxxx')
  File "/usr/lib/python3.2/ftplib.py", line 113, in __init__
    self.connect(host)
  File "/usr/lib/python3.2/ftplib.py", line 142, in connect
    self.sock = socket.create_connection((self.host, self.port), self.timeout)
  File "/usr/lib/python3.2/socket.py", line 397, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
socket.gaierror: [Errno -2] Name or service not known
D'où peut venir ce problème ?
Des-installer / installer python est ce conseillé ?

@+

nb : ce script identique fonctionne sur un autre poste