Discussion: ddt2000 pour tous !
Afficher un message
Vieux 22/11/2016, 15h40  
cedricp
Membre attaché
 
Avatar de cedricp
 
Date d'inscription: novembre 2016
Localisation: France
Âge: 50
Messages: 225
Thanks: 34
Thanked 546 Times in 94 Posts
Pouvoir de réputation: 21
cedricp has much to be proud ofcedricp has much to be proud ofcedricp has much to be proud ofcedricp has much to be proud ofcedricp has much to be proud ofcedricp has much to be proud ofcedricp has much to be proud ofcedricp has much to be proud ofcedricp has much to be proud of
Par défaut

Citation:
Envoyé par GAD Voir le message
j'ai déplacer les fichiers dans le dossier python27
C:\Python27>Python.exe ddt4all.py
Traceback (most recent call last):
File "ddt4all.py", line 8, in <module>
import parameters, ecu
File "C:\Python27\parameters.py", line 3, in <module>
import ecu
File "C:\Python27\ecu.py", line 3, in <module>
import elm
File "C:\Python27\elm.py", line 8, in <module>
import serial
File "C:\Python27\serial\__init__.py", line 27, in <module>
from serial.serialwin32 import Serial
File "C:\Python27\serial\serialwin32.py", line 15, in <module>
from serial import win32
File "C:\Python27\serial\win32.py", line 182, in <module>
CancelIoEx = _stdcall_libraries['kernel32'].CancelIoEx
File "C:\Python27\lib\ctypes\__init__.py", line 366, in __getattr__
func = self.__getitem__(name)
File "C:\Python27\lib\ctypes\__init__.py", line 371, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: function 'CancelIoEx' not found

C:\Python27>

c'est pas bien grave ,çà fonctionne sur w7
Ok on avance... Effectivement la librairie serial utilise des méthodes qui n'existent pas dans WinXP, if faudrait la remplacer en :
* Téléchargeant : https://pypi.python.org/packages/df/...0de0d18803dd11
* supprimer le dossier "serial" de ddt4all
* copier le dossier "serial" de l'archive téléchargee dans le dossier "ddt4all"
cedricp est déconnecté   Réponse avec citation
The Following 2 Users Say Thank You to cedricp For This Useful Post:
JOE (22/11/2016), vortex (22/11/2016)