Installer openzwave sur Linux

Solution à base d'un PC et d'un logiciel (Misterhouse, Domotiga, Heyu, etc). Vous trouverez ici de l'aide pour installer, configurer ou développer des scripts sur ces logiciels. Les principaux langages sont Perl, Java, Shell Unix, Php, etc

Installer openzwave sur Linux

Messagede xunil2003 » 10 Juil 2013, 07:20

Bonjour,

Je voudrai installer Openzwave sur mon serveur Linux afin de l'utiliser avec le "ContrĂŽleur Z-Wave Aeon Labs Z-Stick S2".
Je suis sur debian squeeze 2.6.39.4.
Voila comment je fait :

J'ai suivi ce tuto :
http://bibi21000.gallet.info/index.php/ ... _REPO.html

1/ DĂ©tection du "contrĂŽleur Z-Wave Aeon Labs Z-Stick S2"

lsusb
Code: Tout sélectionner
Bus 001 Device 007: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x Composite Device



J'ai aussi vérifié avec dmesg que le pilotes et chargé en tant que : /dev/ttyUSB0
Code: Tout sélectionner
serveur@debian:~/Domotique/z-wave/zwapi$ ls /dev/ttyUSB*
/dev/ttyUSB0
serveur@debian:~/Domotique/z-wave/zwapi$


dmesg
Code: Tout sélectionner
    usb 1-1.3.1: USB disconnect, device number 7
    cp210x ttyUSB0: cp210x converter now disconnected from ttyUSB0
    cp210x 1-1.3.1:1.0: device disconnected
    usb 1-1.3.1: new full speed USB device number 11 using orion-ehci
    cp210x 1-1.3.1:1.0: cp210x converter detected
    usb 1-1.3.1: reset full speed USB device number 11 using orion-ehci
    usb 1-1.3.1: cp210x converter now attached to ttyUSB0


2/ Installation de openzwave

Code: Tout sélectionner
sudo apt-get install mercurial subversion
sudo: unable to resolve host debian
[sudo] password for serveur:
Lecture des listes de paquets... Fait
Construction de l'arbre des dĂ©pendances       
Lecture des informations d'Ă©tat... Fait
mercurial est déjà la plus récente version disponible.
subversion est déjà la plus récente version disponible.
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.


sudo pip install cython==0.14
sudo: unable to resolve host debian
sudo: pip: command not found


Installation de quelques modules python
Code: Tout sélectionner
sudo apt-get install python-dev python-setuptools python-louie
sudo: unable to resolve host debian
Lecture des listes de paquets... Fait
Construction de l'arbre des dĂ©pendances       
Lecture des informations d'Ă©tat... Fait
python-setuptools est déjà la plus récente version disponible.
python-louie est déjà la plus récente version disponible.
python-dev est déjà la plus récente version disponible.
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.


sudo: unable to resolve host debian
Lecture des listes de paquets... Fait
Construction de l'arbre des dĂ©pendances       
Lecture des informations d'Ă©tat... Fait
make est déjà la plus récente version disponible.
python-sphinx est déjà la plus récente version disponible.
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.


Installation de quelques contributions de sphinx
Code: Tout sélectionner
sudo pip install sphinxcontrib-blockdiag sphinxcontrib-actdiag
sudo: unable to resolve host debian
sudo: pip: command not found
sudo pip install sphinxcontrib-nwdiag sphinxcontrib-seqdiag
sudo: unable to resolve host debian
sudo: pip: command not found


Installation des outils communn et des dĂ©veloppements d'entĂȘtes libudev, Pour compiler la bibliothĂšque openzwave
Code: Tout sélectionner
sudo apt-get install build-essential libudev-dev g++
sudo: unable to resolve host debian
Lecture des listes de paquets... Fait
Construction de l'arbre des dĂ©pendances       
Lecture des informations d'Ă©tat... Fait
build-essential est déjà la plus récente version disponible.
g++ est déjà la plus récente version disponible.
libudev-dev est déjà la plus récente version disponible.
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.


Création du dossier z-wave : /home/serveur/Domotique/z-wave
Code: Tout sélectionner
mkdir -v /home/serveur/Domotique/z-wave
cd /home/serveur/Domotique/z-wave


Téléchargement des sources de python-openzwave
Code: Tout sélectionner
ceci vas crée une copie du dépÎt officiel sur votre ordinateur dans le répertoire : python-openzwave
hg clone https://code.google.com/p/python-openzwave/
destination directory: python-openzwave
abandon : destination 'python-openzwave' is not empty


Changement de dossier vers /home/serveur/Domotique/z-wave/python-openzwave
Code: Tout sélectionner
cd /home/serveur/Domotique/z-wave/python-openzwave


Met à jour votre référentiel local dans la derniÚre version de python-openzwave et openzwave
Code: Tout sélectionner
./update.sh
-----------------------------------------------------------------
|   Update sources of python-openzwave                          |
-----------------------------------------------------------------
pulling from https://code.google.com/p/python-openzwave/
searching for changes
aucun changement trouvé
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
-----------------------------------------------------------------
|   Update sources of openzwave                                 |
-----------------------------------------------------------------
Update openzwave directory
À la rĂ©vision 663.
-----------------------------------------------------------------
|   Sources updated                                             |
-----------------------------------------------------------------


Liste les fichiers télécharger et mis à jour
Code: Tout sélectionner
ls -alF
total 124
drwxr-xr-x 12 serveur serveur 4096 10 juil. 07:35 ./
drwxr-xr-x  7 serveur serveur 4096 10 juil. 07:17 ../
drwxr-xr-x  2 serveur serveur 4096  7 juil. 23:32 api/
drwxr-xr-x  3 serveur serveur 4096  8 juil. 12:58 build/
-rwxr-xr-x  1 serveur serveur 2275  7 juil. 23:32 compile.sh*
-rw-r--r--  1 serveur serveur  808  7 juil. 23:32 COPYRIGHT.txt
drwxr-xr-x  3 serveur serveur 4096  7 juil. 23:32 debian/
-rw-r--r--  1 serveur serveur 3312  7 juil. 23:32 DEVEL.txt
drwxr-xr-x  3 serveur serveur 4096  8 juil. 00:12 docs/
drwxr-xr-x  4 serveur serveur 4096  7 juil. 23:32 examples/
-rw-r--r--  1 serveur serveur 2358  7 juil. 23:32 EXAMPLES.txt
drwxr-xr-x  3 serveur serveur 4096 10 juil. 07:35 .hg/
-rwxr-xr-x  1 serveur serveur  250  7 juil. 23:32 .hgignore*
-rwxr-xr-x  1 serveur serveur 1770  7 juil. 23:32 INSTALL_ARCH.txt*
-rwxr-xr-x  1 serveur serveur 2205  7 juil. 23:32 INSTALL_MAN.txt*
-rwxr-xr-x  1 serveur serveur 2434  7 juil. 23:32 INSTALL_REPO.txt*
-rwxr-xr-x  1 serveur serveur 1309  7 juil. 23:32 install.sh*
drwxr-xr-x  2 serveur serveur 4096  8 juil. 12:58 lib/
-rwxr-xr-x  1 serveur serveur 2876  7 juil. 23:32 make_archive.sh*
-rwxr-xr-x  1 serveur serveur 1043  7 juil. 23:32 make_distdir.sh*
-rwxr-xr-x  1 serveur serveur 1261  7 juil. 23:32 make_docs.sh*
drwxr-xr-x  3 serveur serveur 4096  7 juil. 23:32 manager/
drwxr-xr-x  9 serveur serveur 4096  7 juil. 23:42 openzwave/
-rwxr-xr-x  1 serveur serveur  549  7 juil. 23:32 ozwsh.sh*
-rw-r--r--  1 serveur serveur  872  7 juil. 23:32 README.txt
-rwxr-xr-x  1 serveur serveur 3187  7 juil. 23:32 setup-api.py*
-rwxr-xr-x  1 serveur serveur 4577  7 juil. 23:32 setup-lib.py*
drwxr-xr-x  2 serveur serveur 4096  7 juil. 23:32 tests/
-rwxr-xr-x  1 serveur serveur  874  7 juil. 23:32 uninstall.sh*
-rwxr-xr-x  1 serveur serveur  946  7 juil. 23:32 update.sh*



Quand je compile j'ai plein d'erreur.

Code: Tout sélectionner
./compile.sh
/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:2543:56: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...
:return: True if the switch point is set.
:rtype: bool
:see: removeSwitchPoint_, clearSwitchPoints_, getSwitchPoint_, getNumSwitchPoints_

        '''
        if values_map.find(id) != values_map.end():
                    ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:2581:21: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...
:return: True if the switch point is set.
:rtype: bool
:see: removeSwitchPoint_, clearSwitchPoints_, getSwitchPoint_, getNumSwitchPoints_

        '''
        if values_map.find(id) != values_map.end():
                                           ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:2581:44: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...
:rtype: bool
:see: removeSwitchPoint_, clearSwitchPoints_, getSwitchPoint_, getNumSwitchPoints_

        '''
        if values_map.find(id) != values_map.end():
            return self.manager.SetSwitchPoint(values_map.at(id), hours, minutes, setback)
                                                        ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:2582:57: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...
:return: True if the switch point is removed.
:rtype: bool
:see: setSwitchPoint_, clearSwitchPoints_, getSwitchPoint_, getNumSwitchPoints_

        '''
        if values_map.find(id) != values_map.end():
                    ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:2603:21: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...
:return: True if the switch point is removed.
:rtype: bool
:see: setSwitchPoint_, clearSwitchPoints_, getSwitchPoint_, getNumSwitchPoints_

        '''
        if values_map.find(id) != values_map.end():
                                           ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:2603:44: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...
:rtype: bool
:see: setSwitchPoint_, clearSwitchPoints_, getSwitchPoint_, getNumSwitchPoints_

        '''
        if values_map.find(id) != values_map.end():
            return self.manager.RemoveSwitchPoint(values_map.at(id), hours, minutes)
                                                           ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:2604:60: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...
:return: True if all switch points are clear.
:rtype: bool
:see: setSwitchPoint_, removeSwitchPoint_, getSwitchPoint_, getNumSwitchPoints_

        '''
        if values_map.find(id) != values_map.end():
                    ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:2621:21: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...
:return: True if all switch points are clear.
:rtype: bool
:see: setSwitchPoint_, removeSwitchPoint_, getSwitchPoint_, getNumSwitchPoints_

        '''
        if values_map.find(id) != values_map.end():
                                           ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:2621:44: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...
:rtype: bool
:see: setSwitchPoint_, removeSwitchPoint_, getSwitchPoint_, getNumSwitchPoints_

        '''
        if values_map.find(id) != values_map.end():
            self.manager.ClearSwitchPoints(values_map.at(id))
                                                    ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:2622:53: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...

        '''
        cdef uint8_t ohours
        cdef uint8_t ominutes
        cdef int8_t osetback
        if values_map.find(id) != values_map.end():
                    ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:2648:21: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...

        '''
        cdef uint8_t ohours
        cdef uint8_t ominutes
        cdef int8_t osetback
        if values_map.find(id) != values_map.end():
                                           ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:2648:44: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...
        '''
        cdef uint8_t ohours
        cdef uint8_t ominutes
        cdef int8_t osetback
        if values_map.find(id) != values_map.end():
            ret=self.manager.GetSwitchPoint(values_map.at(id), idx, \
                                                     ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:2649:54: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...
:return: The number of switch points defined in this schedule.  Returns zero if the value is not a ValueID::ValueType_Schedule. The type can be tested with a call to ValueID::GetType.
:rtype: int
:see: setSwitchPoint_, removeSwitchPoint_, clearSwitchPoints_, getSwitchPoint_

        '''
        if values_map.find(id) != values_map.end():
                    ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:2673:21: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...
:return: The number of switch points defined in this schedule.  Returns zero if the value is not a ValueID::ValueType_Schedule. The type can be tested with a call to ValueID::GetType.
:rtype: int
:see: setSwitchPoint_, removeSwitchPoint_, clearSwitchPoints_, getSwitchPoint_

        '''
        if values_map.find(id) != values_map.end():
                                           ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:2673:44: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...
:rtype: int
:see: setSwitchPoint_, removeSwitchPoint_, clearSwitchPoints_, getSwitchPoint_

        '''
        if values_map.find(id) != values_map.end():
            return self.manager.GetNumSwitchPoints(values_map.at(id))
                                                            ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:2674:61: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...

        '''
        data = set()
        cdef uint32_t size = self.manager.GetMaxAssociations(homeid, nodeid, groupidx)
        #Allocate memory
        cdef uint8_t** dbuf = <uint8_t**>malloc(sizeof(uint8_t) * size)
                              ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:2841:31: 'uint8_t' is not a type identifier

Error converting Pyrex file to C:
------------------------------------------------------------
...

        '''
        data = set()
        cdef uint32_t size = self.manager.GetMaxAssociations(homeid, nodeid, groupidx)
        #Allocate memory
        cdef uint8_t** dbuf = <uint8_t**>malloc(sizeof(uint8_t) * size)
                                              ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:2841:47: undeclared name not builtin: malloc

Error converting Pyrex file to C:
------------------------------------------------------------
...

        '''
        data = set()
        cdef uint32_t size = self.manager.GetMaxAssociations(homeid, nodeid, groupidx)
        #Allocate memory
        cdef uint8_t** dbuf = <uint8_t**>malloc(sizeof(uint8_t) * size)
                                                             ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:2841:62: undeclared name not builtin: uint8_t

Error converting Pyrex file to C:
------------------------------------------------------------
...
        cdef uint8_t** dbuf = <uint8_t**>malloc(sizeof(uint8_t) * size)
        # return value is pointer to uint8_t[]
        cdef uint32_t count = self.manager.GetAssociations(homeid, nodeid, groupidx, dbuf)
        if count == 0:
            #Don't need to allocate memory.
            free(dbuf)
               ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:2846:16: undeclared name not builtin: free

Error converting Pyrex file to C:
------------------------------------------------------------
...
                    retuint8.data[i] = p[0]
                    data.add(retuint8.data[i])
                    p += 1
            finally:
                # Free memory
                free(dbuf)
                   ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:2860:20: undeclared name not builtin: free

Error converting Pyrex file to C:
------------------------------------------------------------
...
:type pythonfunc: callback
:see: removeWatcher_

        '''
        self._watcherCallback = pythonfunc # need to keep a reference to this
        if not self.manager.AddWatcher(notif_callback, <void*>pythonfunc):
                                                    ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:2977:53: Cannot convert 'void (<error>, void *) nogil' to Python object

Error converting Pyrex file to C:
------------------------------------------------------------
...
:type pythonfunc: callback
:see: removeWatcher_

        '''
        self._watcherCallback = pythonfunc # need to keep a reference to this
        if not self.manager.AddWatcher(notif_callback, <void*>pythonfunc):
                                                      ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:2977:55: Cannot convert 'void *' to Python object

Error converting Pyrex file to C:
------------------------------------------------------------
...
:param pythonfunc: Watcher pointer to a function
:type pythonfunc: callback
:see: addWatcher_

        '''
        if not self.manager.RemoveWatcher(notif_callback, <void*>self._watcherCallback):
                                                       ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:2991:56: Cannot convert 'void (<error>, void *) nogil' to Python object

Error converting Pyrex file to C:
------------------------------------------------------------
...
:param pythonfunc: Watcher pointer to a function
:type pythonfunc: callback
:see: addWatcher_

        '''
        if not self.manager.RemoveWatcher(notif_callback, <void*>self._watcherCallback):
                                                         ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:2991:58: Cannot convert 'void *' to Python object

Error converting Pyrex file to C:
------------------------------------------------------------
...
:param homeId: The Home ID of the Z-Wave controller to be reset.
:type homeId: int
:see: softResetController_

        '''
        values_map.clear()
                 ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3017:18: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...
:see: cancelControllerCommand_
        '''

        self._controllerCallback = pythonfunc # need to keep a reference to this
        return self.manager.BeginControllerCommand(homeId, command, \
                 ctrl_callback, <void*>pythonfunc, highPower, nodeId, arg)
                             ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3118:30: Cannot convert 'void (<error>, <error>, void *) nogil' to Python object

Error converting Pyrex file to C:
------------------------------------------------------------
...
:see: cancelControllerCommand_
        '''

        self._controllerCallback = pythonfunc # need to keep a reference to this
        return self.manager.BeginControllerCommand(homeId, command, \
                 ctrl_callback, <void*>pythonfunc, highPower, nodeId, arg)
                               ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3118:32: Cannot convert 'void *' to Python object

Error converting Pyrex file to C:
------------------------------------------------------------
...

        '''
        data = set()
        cdef uint32_t size = self.manager.GetNumScenes()
        # Allocate memory
        cdef uint8_t** dbuf = <uint8_t**>malloc(sizeof(uint8_t)*size)
                              ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3159:31: 'uint8_t' is not a type identifier

Error converting Pyrex file to C:
------------------------------------------------------------
...

        '''
        data = set()
        cdef uint32_t size = self.manager.GetNumScenes()
        # Allocate memory
        cdef uint8_t** dbuf = <uint8_t**>malloc(sizeof(uint8_t)*size)
                                              ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3159:47: undeclared name not builtin: malloc

Error converting Pyrex file to C:
------------------------------------------------------------
...

        '''
        data = set()
        cdef uint32_t size = self.manager.GetNumScenes()
        # Allocate memory
        cdef uint8_t** dbuf = <uint8_t**>malloc(sizeof(uint8_t)*size)
                                                             ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3159:62: undeclared name not builtin: uint8_t

Error converting Pyrex file to C:
------------------------------------------------------------
...
        cdef uint8_t** dbuf = <uint8_t**>malloc(sizeof(uint8_t)*size)
        # return value is pointer to uint8_t[]
        cdef uint32_t count = self.manager.GetAllScenes(dbuf)
        if count == 0:
            #Don't need to allocate memory.
            free(dbuf)
               ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3164:16: undeclared name not builtin: free

Error converting Pyrex file to C:
------------------------------------------------------------
...
                    retuint8.data[i] = p[0]
                    data.add(retuint8.data[i])
                    p += 1
            finally:
                # Free memory
                free(dbuf)
                   ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3178:20: undeclared name not builtin: free

Error converting Pyrex file to C:
------------------------------------------------------------
...
        cdef ValueID* cvalueID
        cdef vector[ValueID] vect
        ret = dict()
        if self.manager.SceneGetValues(id, &vect):
            while not vect.empty() :
                cvalueID = &vect.back()
                          ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3259:27: Taking address of non-lvalue

Error converting Pyrex file to C:
------------------------------------------------------------
...
                cvalueID = &vect.back()
                datatype = PyValueTypes[cvalueID.GetType()]
                value_data = None
                value_id = cvalueID.GetId()
                if datatype == "Bool":
                    cret = self.manager.SceneGetValueAsBool(id, deref(cvalueID), &type_bool)
                                                                    ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3264:69: undeclared name not builtin: deref

Error converting Pyrex file to C:
------------------------------------------------------------
...
                cvalueID = &vect.back()
                datatype = PyValueTypes[cvalueID.GetType()]
                value_data = None
                value_id = cvalueID.GetId()
                if datatype == "Bool":
                    cret = self.manager.SceneGetValueAsBool(id, deref(cvalueID), &type_bool)
                                                                                ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3264:81: Cannot take address of Python variable

Error converting Pyrex file to C:
------------------------------------------------------------
...
                value_id = cvalueID.GetId()
                if datatype == "Bool":
                    cret = self.manager.SceneGetValueAsBool(id, deref(cvalueID), &type_bool)
                    value_data = type_bool if cret else None
                elif datatype == "Byte":
                    cret = self.manager.SceneGetValueAsByte(id, deref(cvalueID), &type_byte)
                                                                    ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3267:69: undeclared name not builtin: deref

Error converting Pyrex file to C:
------------------------------------------------------------
...
                    value_data = type_bool if cret else None
                elif datatype == "Byte":
                    cret = self.manager.SceneGetValueAsByte(id, deref(cvalueID), &type_byte)
                    value_data = type_byte if cret else None
                elif datatype == "Decimal":
                    cret = self.manager.SceneGetValueAsFloat(id, deref(cvalueID), &type_float)
                                                                     ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3270:70: undeclared name not builtin: deref

Error converting Pyrex file to C:
------------------------------------------------------------
...
                    value_data = type_bool if cret else None
                elif datatype == "Byte":
                    cret = self.manager.SceneGetValueAsByte(id, deref(cvalueID), &type_byte)
                    value_data = type_byte if cret else None
                elif datatype == "Decimal":
                    cret = self.manager.SceneGetValueAsFloat(id, deref(cvalueID), &type_float)
                                                                                 ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3270:82: Cannot convert 'float *' to Python object

Error converting Pyrex file to C:
------------------------------------------------------------
...
                    value_data = type_byte if cret else None
                elif datatype == "Decimal":
                    cret = self.manager.SceneGetValueAsFloat(id, deref(cvalueID), &type_float)
                    value_data = type_float if cret else None
                elif datatype == "Int":
                    cret = self.manager.SceneGetValueAsInt(id, deref(cvalueID), &type_int)
                                                                   ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3273:68: undeclared name not builtin: deref

Error converting Pyrex file to C:
------------------------------------------------------------
...
                    value_data = type_float if cret else None
                elif datatype == "Int":
                    cret = self.manager.SceneGetValueAsInt(id, deref(cvalueID), &type_int)
                    value_data = type_int if cret else None
                elif datatype == "Short":
                    cret = self.manager.SceneGetValueAsShort(id, deref(cvalueID), &type_short)
                                                                     ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3276:70: undeclared name not builtin: deref

Error converting Pyrex file to C:
------------------------------------------------------------
...
                    value_data = type_int if cret else None
                elif datatype == "Short":
                    cret = self.manager.SceneGetValueAsShort(id, deref(cvalueID), &type_short)
                    value_data = type_short if cret else None
                elif datatype == "String":
                    cret = self.manager.SceneGetValueAsString(id, deref(cvalueID), &type_string)
                                                                      ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3279:71: undeclared name not builtin: deref

Error converting Pyrex file to C:
------------------------------------------------------------
...
                    value_data = type_short if cret else None
                elif datatype == "String":
                    cret = self.manager.SceneGetValueAsString(id, deref(cvalueID), &type_string)
                    value_data = type_string.c_str() if cret else None
                elif datatype == "Button":
                    cret = self.manager.SceneGetValueAsBool(id, deref(cvalueID), &type_bool)
                                                                    ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3282:69: undeclared name not builtin: deref

Error converting Pyrex file to C:
------------------------------------------------------------
...
                    value_data = type_short if cret else None
                elif datatype == "String":
                    cret = self.manager.SceneGetValueAsString(id, deref(cvalueID), &type_string)
                    value_data = type_string.c_str() if cret else None
                elif datatype == "Button":
                    cret = self.manager.SceneGetValueAsBool(id, deref(cvalueID), &type_bool)
                                                                                ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3282:81: Cannot take address of Python variable

Error converting Pyrex file to C:
------------------------------------------------------------
...
                    value_data = type_string.c_str() if cret else None
                elif datatype == "Button":
                    cret = self.manager.SceneGetValueAsBool(id, deref(cvalueID), &type_bool)
                    value_data = type_bool if cret else None
                elif datatype == "List":
                    cret = self.manager.SceneGetValueListSelection(id, deref(cvalueID), &type_string)
                                                                           ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3285:76: undeclared name not builtin: deref

Error converting Pyrex file to C:
------------------------------------------------------------
...
                    value_data = type_bool if cret else None
                elif datatype == "List":
                    cret = self.manager.SceneGetValueListSelection(id, deref(cvalueID), &type_string)
                    value_data = type_string.c_str() if cret else None
                else :
                    cret = self.manager.SceneGetValueAsString(id, deref(cvalueID), &type_string)
                                                                      ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3288:71: undeclared name not builtin: deref

Error converting Pyrex file to C:
------------------------------------------------------------
...
        cdef uint8_t type_byte
        cdef int32_t type_int
        cdef int16_t type_short
        cdef string type_string
        ret = 2
        if values_map.find(id) != values_map.end():
                    ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3326:21: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...
        cdef uint8_t type_byte
        cdef int32_t type_int
        cdef int16_t type_short
        cdef string type_string
        ret = 2
        if values_map.find(id) != values_map.end():
                                           ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3326:44: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...
        cdef int32_t type_int
        cdef int16_t type_short
        cdef string type_string
        ret = 2
        if values_map.find(id) != values_map.end():
            datatype = PyValueTypes[values_map.at(id).GetType()]
                                             ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3327:46: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...
        ret = 2
        if values_map.find(id) != values_map.end():
            datatype = PyValueTypes[values_map.at(id).GetType()]
            if datatype == "Bool":
                type_bool = value
                cret = self.manager.AddSceneValue(sceneid, values_map.at(id), type_bool)
                                                                    ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3330:69: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...
                type_bool = value
                cret = self.manager.AddSceneValue(sceneid, values_map.at(id), type_bool)
                ret = 1 if cret else 0
            elif datatype == "Byte":
                type_byte = value
                cret = self.manager.AddSceneValue(sceneid, values_map.at(id), type_byte)
                                                                    ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3334:69: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...
                type_byte = value
                cret = self.manager.AddSceneValue(sceneid, values_map.at(id), type_byte)
                ret = 1 if cret else 0
            elif datatype == "Decimal":
                type_float = value
                cret = self.manager.AddSceneValue(sceneid, values_map.at(id), type_float)
                                                                    ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3338:69: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...
                type_float = value
                cret = self.manager.AddSceneValue(sceneid, values_map.at(id), type_float)
                ret = 1 if cret else 0
            elif datatype == "Int":
                type_int = value
                cret = self.manager.AddSceneValue(sceneid, values_map.at(id), type_int)
                                                                    ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3342:69: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...
                type_int = value
                cret = self.manager.AddSceneValue(sceneid, values_map.at(id), type_int)
                ret = 1 if cret else 0
            elif datatype == "Short":
                type_short = value
                cret = self.manager.AddSceneValue(sceneid, values_map.at(id), type_short)
                                                                    ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3346:69: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...
            elif datatype == "Short":
                type_short = value
                cret = self.manager.AddSceneValue(sceneid, values_map.at(id), type_short)
                ret = 1 if cret else 0
            elif datatype == "String":
                type_string = string(value)
                                   ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3349:36: undeclared name not builtin: string

Error converting Pyrex file to C:
------------------------------------------------------------
...
                type_short = value
                cret = self.manager.AddSceneValue(sceneid, values_map.at(id), type_short)
                ret = 1 if cret else 0
            elif datatype == "String":
                type_string = string(value)
                cret = self.manager.AddSceneValue(sceneid, values_map.at(id), type_string)
                                                                    ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3350:69: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...
                type_string = string(value)
                cret = self.manager.AddSceneValue(sceneid, values_map.at(id), type_string)
                ret = 1 if cret else 0
            elif datatype == "Button":
                type_bool = value
                cret = self.manager.AddSceneValue(sceneid, values_map.at(id), type_bool)
                                                                    ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3354:69: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...
            elif datatype == "Button":
                type_bool = value
                cret = self.manager.AddSceneValue(sceneid, values_map.at(id), type_bool)
                ret = 1 if cret else 0
            elif datatype == "List":
                type_string = string(value)
                                   ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3357:36: undeclared name not builtin: string

Error converting Pyrex file to C:
------------------------------------------------------------
...
                type_bool = value
                cret = self.manager.AddSceneValue(sceneid, values_map.at(id), type_bool)
                ret = 1 if cret else 0
            elif datatype == "List":
                type_string = string(value)
                cret = self.manager.AddSceneValueListSelection(sceneid, values_map.at(id), type_string)
                                                                                 ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3358:82: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...
createScene_, removeScene_, activateScene_, \
getSceneLabel_, setSceneLabel_, removeSceneValue_, setSceneValue_, \
sceneGetValues_

        '''
        if values_map.find(id) != values_map.end():
                    ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3380:21: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...
createScene_, removeScene_, activateScene_, \
getSceneLabel_, setSceneLabel_, removeSceneValue_, setSceneValue_, \
sceneGetValues_

        '''
        if values_map.find(id) != values_map.end():
                                           ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3380:44: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...
getSceneLabel_, setSceneLabel_, removeSceneValue_, setSceneValue_, \
sceneGetValues_

        '''
        if values_map.find(id) != values_map.end():
            return self.manager.RemoveSceneValue(sceneid, values_map.at(id))
                                                                   ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3381:68: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...
        cdef uint8_t type_byte
        cdef int32_t type_int
        cdef int16_t type_short
        cdef string type_string
        ret = 2
        if values_map.find(id) != values_map.end():
                    ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3414:21: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...
        cdef uint8_t type_byte
        cdef int32_t type_int
        cdef int16_t type_short
        cdef string type_string
        ret = 2
        if values_map.find(id) != values_map.end():
                                           ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3414:44: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...
        cdef int32_t type_int
        cdef int16_t type_short
        cdef string type_string
        ret = 2
        if values_map.find(id) != values_map.end():
            datatype = PyValueTypes[values_map.at(id).GetType()]
                                             ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3415:46: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...
        ret = 2
        if values_map.find(id) != values_map.end():
            datatype = PyValueTypes[values_map.at(id).GetType()]
            if datatype == "Bool":
                type_bool = value
                cret = self.manager.SetSceneValue(sceneid, values_map.at(id), type_bool)
                                                                    ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3418:69: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...
                type_bool = value
                cret = self.manager.SetSceneValue(sceneid, values_map.at(id), type_bool)
                ret = 1 if cret else 0
            elif datatype == "Byte":
                type_byte = value
                cret = self.manager.SetSceneValue(sceneid, values_map.at(id), type_byte)
                                                                    ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3422:69: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...
                type_byte = value
                cret = self.manager.SetSceneValue(sceneid, values_map.at(id), type_byte)
                ret = 1 if cret else 0
            elif datatype == "Decimal":
                type_float = value
                cret = self.manager.SetSceneValue(sceneid, values_map.at(id), type_float)
                                                                    ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3426:69: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...
                type_float = value
                cret = self.manager.SetSceneValue(sceneid, values_map.at(id), type_float)
                ret = 1 if cret else 0
            elif datatype == "Int":
                type_int = value
                cret = self.manager.SetSceneValue(sceneid, values_map.at(id), type_int)
                                                                    ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3430:69: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...
                type_int = value
                cret = self.manager.SetSceneValue(sceneid, values_map.at(id), type_int)
                ret = 1 if cret else 0
            elif datatype == "Short":
                type_short = value
                cret = self.manager.SetSceneValue(sceneid, values_map.at(id), type_short)
                                                                    ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3434:69: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...
            elif datatype == "Short":
                type_short = value
                cret = self.manager.SetSceneValue(sceneid, values_map.at(id), type_short)
                ret = 1 if cret else 0
            elif datatype == "String":
                type_string = string(value)
                                   ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3437:36: undeclared name not builtin: string

Error converting Pyrex file to C:
------------------------------------------------------------
...
                type_short = value
                cret = self.manager.SetSceneValue(sceneid, values_map.at(id), type_short)
                ret = 1 if cret else 0
            elif datatype == "String":
                type_string = string(value)
                cret = self.manager.SetSceneValue(sceneid, values_map.at(id), type_string)
                                                                    ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3438:69: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...
                type_string = string(value)
                cret = self.manager.SetSceneValue(sceneid, values_map.at(id), type_string)
                ret = 1 if cret else 0
            elif datatype == "Button":
                type_bool = value
                cret = self.manager.SetSceneValue(sceneid, values_map.at(id), type_bool)
                                                                    ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3442:69: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...
            elif datatype == "Button":
                type_bool = value
                cret = self.manager.SetSceneValue(sceneid, values_map.at(id), type_bool)
                ret = 1 if cret else 0
            elif datatype == "List":
                type_string = string(value)
                                   ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3445:36: undeclared name not builtin: string

Error converting Pyrex file to C:
------------------------------------------------------------
...
                type_bool = value
                cret = self.manager.SetSceneValue(sceneid, values_map.at(id), type_bool)
                ret = 1 if cret else 0
            elif datatype == "List":
                type_string = string(value)
                cret = self.manager.SetSceneValueListSelection(sceneid, values_map.at(id), type_string)
                                                                                 ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3446:82: undeclared name not builtin: values_map

Error converting Pyrex file to C:
------------------------------------------------------------
...
createScene_, removeScene_, activateScene_, \
getSceneLabel_, removeSceneValue_, addSceneValue_, setSceneValue_, \
sceneGetValues_

        '''
        self.manager.SetSceneLabel(sceneid, string(label))
                                                 ^
------------------------------------------------------------

/home/serveur/Domotique/z-wave/python-openzwave/lib/libopenzwave.pyx:3487:50: undeclared name not builtin: string
building 'libopenzwave' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Iopenzwave/cpp/src -Iopenzwave/cpp/src/value_classes -Iopenzwave/cpp/src/platform -Iopenzwave/cpp/build/linux -I/usr/include/python2.6 -c lib/libopenzwave.cpp -o build/temp.linux-armv5tel-2.6/lib/libopenzwave.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
lib/libopenzwave.cpp:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
error: command 'gcc' failed with exit status 1
serveur@debian:~$


3/ Mes versions :
Code: Tout sélectionner
serveur@debian:~$ python -V
Python 2.6.6

serveur@debian:~$ cython -V
Cython version 0.12.1       


Que faut il faire pour résoudre le problÚme ?
Quelqu'un peut-il m'aiguiller ?

Merci.
Plug computer : DreamPlug Multi Boot / Marvel 1.22 Ghz / Architecture ARM / 512 Mo Ram / Carte-sd 16 Go class 10 / 5 Watts / Debian Squeeze 2.6.39.4 / Lamp... / php / mysql /asterisk via la domotique .
Domotique X10 : CM15 Pro EFL Marmitek / Mochad .
Domotique Z-wave : Vera Lite - Firmware 1.5.622 - Français / Raspberry + contrÎleur Z-Wave Aeon Labs Z-Stick S2.
xunil2003
Dieu de domotique
 
Messages: 239
Inscription: 07 Mar 2008, 19:50

Re: Installer openzwave sur Linux

Messagede Guiguiabloc » 10 Juil 2013, 19:27

pip n'est pas installé.
il faut la version 0.14 de Cython.
(entre nous, la réponse est dans ton post...)
Avatar de l’utilisateur
Guiguiabloc
Dieu de domotique
 
Messages: 449
Inscription: 21 Jan 2011, 22:56
Localisation: Brest

Re: Installer openzwave sur Linux

Messagede xunil2003 » 10 Juil 2013, 23:44

Bonsoir,

Merci de votre réponse.

Pour pip j'ai pas percuté car apt-get install ne trouvé rien.
Finalement il s'agit de python-pip.
Code: Tout sélectionner
serveur@debian:~$ sudo apt-get install python-pip
sudo: unable to resolve host debian
[sudo] password for serveur:
Lecture des listes de paquets... Fait
Construction de l'arbre des dĂ©pendances       
Lecture des informations d'Ă©tat... Fait
Les NOUVEAUX paquets suivants seront installés :
  python-pip
0 mis à jour, 1 nouvellement installés, 0 à enlever et 0 non mis à jour.
Il est nécessaire de prendre 67,8 ko dans les archives.
AprÚs cette opération, 332 ko d'espace disque supplémentaires seront utilisés.
Réception de : 1 http://ftp.us.debian.org/debian/ squeeze/main python-pip all 0.7.2-1 [67,8 kB]
67,8 ko réceptionnés en 1s (56,0 ko/s)
Sélection du paquet python-pip précédemment désélectionné.
(Lecture de la base de données... 70134 fichiers et répertoires déjà installés.)
DĂ©paquetage de python-pip (Ă  partir de .../python-pip_0.7.2-1_all.deb) ...
Traitement des actions différées (« triggers ») pour « man-db »...
Paramétrage de python-pip (0.7.2-1) ...
Traitement des actions différées (« triggers ») pour « python-support »...
serveur@debian:~/Domotique/z-wave/Cython-0.19.1$ sudo apt-get install cython
sudo: unable to resolve host debian
Lecture des listes de paquets... Fait
Construction de l'arbre des dĂ©pendances       
Lecture des informations d'Ă©tat... Fait
cython est déjà la plus récente version disponible.
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
serveur@debian:~$


Pour cython , il y a que la version 1.91.1 téléchargeable.
Je l'ai téléchargé et décompressé et installé.
[url]cython.org/release/Cython-0.19.1.tar.gz[/url]
Code: Tout sélectionner
sudo python setup.py install


Mais quand je compile de nouveau, j'ai encore une erreur ?
Code: Tout sélectionner
serveur@debian:~/Domotique/z-wave/python-openzwave$ ./compile.sh
-----------------------------------------------------------------
|   Build openzwave                                             |
-----------------------------------------------------------------
echo 'char ozw_vers[] = "OpenZWave version 1.0.'`svnversion ../..`'";' > vers.c
gcc -c -Wall -Wno-unknown-pragmas -Wno-inline -Wno-format -Werror -g -DDEBUG -DLOG_STDERR -fPIC -I ../../src -I ../../src/command_classes/ -I ../../src/value_classes/ -I ../../src/platform/ -I ../../src/platform/unix -I ../../tinyxml/ -I ../../hidapi/hidapi/ -o vers.o vers.c
ar rc ../../lib/linux/libopenzwave.a vers.o
g++ -shared -Wl,-soname,libopenzwave.so -o ../../lib/linux/libopenzwave.so tinystr.o tinyxml.o tinyxmlerror.o tinyxmlparser.o hid.o Alarm.o ApplicationStatus.o AssociationCommandConfiguration.o Association.o Basic.o BasicWindowCovering.o Battery.o ClimateControlSchedule.o Clock.o CommandClass.o CommandClasses.o Configuration.o ControllerReplication.o CRC16Encap.o EnergyProduction.o Hail.o Indicator.o Language.o Lock.o ManufacturerSpecific.o Meter.o MeterPulse.o MultiCmd.o MultiInstanceAssociation.o MultiInstance.o NodeNaming.o NoOperation.o Powerlevel.o Proprietary.o Protection.o SceneActivation.o SensorAlarm.o SensorBinary.o SensorMultilevel.o SwitchAll.o SwitchBinary.o SwitchMultilevel.o SwitchToggleBinary.o SwitchToggleMultilevel.o ThermostatFanMode.o ThermostatFanState.o ThermostatMode.o ThermostatOperatingState.o ThermostatSetpoint.o UserCode.o Version.o WakeUp.o ValueBool.o ValueButton.o ValueByte.o Value.o ValueDecimal.o ValueInt.o ValueList.o ValueRaw.o ValueSchedule.o ValueShort.o ValueStore.o ValueString.o Controller.o Event.o FileOps.o HidController.o Log.o Mutex.o SerialController.o Stream.o Thread.o TimeStamp.o Wait.o EventImpl.o FileOpsImpl.o LogImpl.o MutexImpl.o SerialControllerImpl.o ThreadImpl.o TimeStampImpl.o WaitImpl.o Driver.o Group.o Manager.o Msg.o Node.o Options.o Scene.o Utils.o vers.o
-----------------------------------------------------------------
|   Build python-openzwave                                      |
-----------------------------------------------------------------
running build
running build_py
package init file 'lib/__init__.py' not found (or not a regular file)
package init file 'lib/__init__.py' not found (or not a regular file)
running build_ext
skipping 'lib/libopenzwave.cpp' Cython extension (up-to-date)
building 'libopenzwave' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Iopenzwave/cpp/src -Iopenzwave/cpp/src/value_classes -Iopenzwave/cpp/src/platform -Iopenzwave/cpp/build/linux -I/usr/include/python2.6 -c lib/libopenzwave.cpp -o build/temp.linux-armv5tel-2.6/lib/libopenzwave.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
In file included from /usr/include/c++/4.4/utility:63,
                 from lib/libopenzwave.cpp:311:
openzwave/cpp/src/value_classes/ValueID.h: In constructor ‘std::pair<_T1, _T2>::pair() [with _T1 = long long unsigned int, _T2 = OpenZWave::ValueID]’:
lib/libopenzwave.cpp:3043:   instantiated from here
openzwave/cpp/src/value_classes/ValueID.h:244: error: ‘OpenZWave::ValueID::ValueID()’ is private
/usr/include/c++/4.4/bits/stl_pair.h:80: error: within this context
error: command 'gcc' failed with exit status 1
serveur@debian:~/Domotique/z-wave/python-openzwave$


Je ne comprend pas ce qui provoque les erreurs de compilation ?
Merci.
Plug computer : DreamPlug Multi Boot / Marvel 1.22 Ghz / Architecture ARM / 512 Mo Ram / Carte-sd 16 Go class 10 / 5 Watts / Debian Squeeze 2.6.39.4 / Lamp... / php / mysql /asterisk via la domotique .
Domotique X10 : CM15 Pro EFL Marmitek / Mochad .
Domotique Z-wave : Vera Lite - Firmware 1.5.622 - Français / Raspberry + contrÎleur Z-Wave Aeon Labs Z-Stick S2.
xunil2003
Dieu de domotique
 
Messages: 239
Inscription: 07 Mar 2008, 19:50

Re: Installer openzwave sur Linux

Messagede Guiguiabloc » 11 Juil 2013, 18:17

xunil2003 a écrit:Pour cython , il y a que la version 1.91.1 téléchargeable.
Je l'ai téléchargé et décompressé et installé.

http://cython.org/release/ donc http://cython.org/release/Cython-0.14.zip

Pour ĂȘtre bloggueur et Ă©crire des tutos, on se rend trĂšs vite compte que le principal problĂšme est que les gens ne lisent pas.
Je vous invite a suivre A LA LETTRE le tuto que vous donnez en référence.
S'il dit d'utiliser la version 0.14 exclusivement, pourquoi s'acharner a vouloir utiliser la 0.19 ? :cry:
Je cite :
"you need cython (0.14) to compile the python library (libopenzwave.pyx).

need veut dire devoir, pas pouvoir.
:mrgreen:
Avatar de l’utilisateur
Guiguiabloc
Dieu de domotique
 
Messages: 449
Inscription: 21 Jan 2011, 22:56
Localisation: Brest

Re: Installer openzwave sur Linux

Messagede bibi21000 » 11 Juil 2013, 21:23

Merci Guiguiabloc, c'est exactement ça :)
bibi21000
Membre un peu timide !
 
Messages: 3
Inscription: 27 AoĂ» 2011, 12:30

Re: Installer openzwave sur Linux

Messagede xunil2003 » 12 Juil 2013, 15:25

Bonsoir,

Franchement merçi pour votre aide.

Pour ĂȘtre bloggueur et Ă©crire des tutos, on se rend trĂšs vite compte que le principal problĂšme est que les gens ne lisent pas.
Si, mais quand c'est en français, pas toujours évident en anglais, du moin pour moi.

Je vous invite a suivre A LA LETTRE le tuto que vous donnez en référence.
S'il dit d'utiliser la version 0.14 exclusivement, pourquoi s'acharner a vouloir utiliser la 0.19

Je ne trouvĂ© pas la 0.14 en tĂ©lĂ©chargement, lĂ  franchement je reste bĂȘte, car j'ai effectuer une recherche sur google avec le mot clĂ© "cython" est j'ai pas trouvĂ© sauf la 0.19.1!

Donc c'est ok j'ai réussi a compilé sans aucune erreur.
j'ai installer Cython-0.14, puis j'ai installer le reste
Code: Tout sélectionner
serveur@debian:~/Domotique/z-wave/Cython-0.14$ sudo pip install sphinxcontrib-blockdiag sphinxcontrib-actdiag
sudo: unable to resolve host debian
Downloading/unpacking sphinxcontrib-blockdiag
  Downloading sphinxcontrib-blockdiag-1.2.0.tar.gz
  Running setup.py egg_info for package sphinxcontrib-blockdiag
    warning: no files found matching 'CHANGES.*'
Downloading/unpacking sphinxcontrib-actdiag
  Downloading sphinxcontrib-actdiag-0.5.1.tar.gz
  Running setup.py egg_info for package sphinxcontrib-actdiag
    warning: no files found matching 'CHANGES.*'
Downloading/unpacking blockdiag>=1.2.0 (from sphinxcontrib-blockdiag)
  Downloading blockdiag-1.2.4.tar.gz (136Kb): 136Kb downloaded
  Running setup.py egg_info for package blockdiag
Requirement already satisfied (use --upgrade to upgrade): Sphinx>=0.6 in /usr/lib/pymodules/python2.6 (from sphinxcontrib-blockdiag)
Requirement already satisfied (use --upgrade to upgrade): distribute in /usr/lib/python2.6/dist-packages (from sphinxcontrib-blockdiag)
Downloading/unpacking actdiag>=0.4.0 (from sphinxcontrib-actdiag)
  Downloading actdiag-0.4.3.tar.gz
  Running setup.py egg_info for package actdiag
    warning: no files found matching '*.diag' under directory 'examples'
Downloading/unpacking funcparserlib (from blockdiag>=1.2.0->sphinxcontrib-blockdiag)
  Downloading funcparserlib-0.3.6.tar.gz
  Running setup.py egg_info for package funcparserlib
    warning: no files found matching 'requires.txt'
Downloading/unpacking webcolors (from blockdiag>=1.2.0->sphinxcontrib-blockdiag)
  Downloading webcolors-1.4.tar.gz
  Running setup.py egg_info for package webcolors
Requirement already satisfied (use --upgrade to upgrade): PIL in /usr/lib/python2.6/dist-packages/PIL (from blockdiag>=1.2.0->sphinxcontrib-blockdiag)
Downloading/unpacking OrderedDict (from blockdiag>=1.2.0->sphinxcontrib-blockdiag)
  Downloading ordereddict-1.1.tar.gz
  Running setup.py egg_info for package OrderedDict
Requirement already satisfied (use --upgrade to upgrade): Pygments>=0.8 in /usr/lib/pymodules/python2.6 (from Sphinx>=0.6->sphinxcontrib-blockdiag)
Requirement already satisfied (use --upgrade to upgrade): Jinja2>=2.1 in /usr/lib/pymodules/python2.6 (from Sphinx>=0.6->sphinxcontrib-blockdiag)
Requirement already satisfied (use --upgrade to upgrade): docutils>=0.4 in /usr/lib/pymodules/python2.6 (from Sphinx>=0.6->sphinxcontrib-blockdiag)
Installing collected packages: actdiag, blockdiag, funcparserlib, OrderedDict, sphinxcontrib-actdiag, sphinxcontrib-blockdiag, webcolors
  Running setup.py install for actdiag
    warning: no files found matching '*.diag' under directory 'examples'
    Installing actdiag script to /usr/local/bin
  Running setup.py install for blockdiag
    Installing blockdiag script to /usr/local/bin
  Running setup.py install for funcparserlib
    warning: no files found matching 'requires.txt'
  Running setup.py install for OrderedDict
  Running setup.py install for sphinxcontrib-actdiag
    warning: no files found matching 'CHANGES.*'
    Skipping installation of /usr/local/lib/python2.6/dist-packages/sphinxcontrib/__init__.py (namespace package)
    Installing /usr/local/lib/python2.6/dist-packages/sphinxcontrib_actdiag-0.5.1-nspkg.pth
  Running setup.py install for sphinxcontrib-blockdiag
    warning: no files found matching 'CHANGES.*'
    Skipping installation of /usr/local/lib/python2.6/dist-packages/sphinxcontrib/__init__.py (namespace package)
    Installing /usr/local/lib/python2.6/dist-packages/sphinxcontrib_blockdiag-1.2.0-nspkg.pth
  Running setup.py install for webcolors
Successfully installed actdiag blockdiag funcparserlib OrderedDict sphinxcontrib-actdiag sphinxcontrib-blockdiag webcolors
Cleaning up...
serveur@debian:~/Domotique/z-wave/Cython-0.14$
serveur@debian:~/Domotique/z-wave/Cython-0.14$
serveur@debian:~/Domotique/z-wave/Cython-0.14$
serveur@debian:~/Domotique/z-wave/Cython-0.14$
serveur@debian:~/Domotique/z-wave/Cython-0.14$ sudo pip install sphinxcontrib-nwdiag sphinxcontrib-seqdiag
sudo: unable to resolve host debian
Downloading/unpacking sphinxcontrib-nwdiag
  Downloading sphinxcontrib-nwdiag-0.6.1.tar.gz
  Running setup.py egg_info for package sphinxcontrib-nwdiag
    warning: no files found matching 'CHANGES.*'
Downloading/unpacking sphinxcontrib-seqdiag
  Downloading sphinxcontrib-seqdiag-0.5.1.tar.gz
  Running setup.py egg_info for package sphinxcontrib-seqdiag
    warning: no files found matching 'CHANGES.*'
Downloading/unpacking nwdiag>=0.9.0 (from sphinxcontrib-nwdiag)
  Downloading nwdiag-0.9.4.tar.gz (96Kb): 96Kb downloaded
  Running setup.py egg_info for package nwdiag
Requirement already satisfied (use --upgrade to upgrade): Sphinx>=0.6 in /usr/lib/pymodules/python2.6 (from sphinxcontrib-nwdiag)
Requirement already satisfied (use --upgrade to upgrade): distribute in /usr/lib/python2.6/dist-packages (from sphinxcontrib-nwdiag)
Downloading/unpacking seqdiag>=0.8.0 (from sphinxcontrib-seqdiag)
  Downloading seqdiag-0.8.2.tar.gz
  Running setup.py egg_info for package seqdiag
Requirement already satisfied (use --upgrade to upgrade): blockdiag>=1.2.4 in /usr/local/lib/python2.6/dist-packages (from nwdiag>=0.9.0->sphinxcontrib-nwdiag)
Requirement already satisfied (use --upgrade to upgrade): Pygments>=0.8 in /usr/lib/pymodules/python2.6 (from Sphinx>=0.6->sphinxcontrib-nwdiag)
Requirement already satisfied (use --upgrade to upgrade): Jinja2>=2.1 in /usr/lib/pymodules/python2.6 (from Sphinx>=0.6->sphinxcontrib-nwdiag)
Requirement already satisfied (use --upgrade to upgrade): docutils>=0.4 in /usr/lib/pymodules/python2.6 (from Sphinx>=0.6->sphinxcontrib-nwdiag)
Requirement already satisfied (use --upgrade to upgrade): funcparserlib in /usr/local/lib/python2.6/dist-packages (from blockdiag>=1.2.4->nwdiag>=0.9.0->sphinxcontrib-nwdiag)
Requirement already satisfied (use --upgrade to upgrade): webcolors in /usr/local/lib/python2.6/dist-packages (from blockdiag>=1.2.4->nwdiag>=0.9.0->sphinxcontrib-nwdiag)
Requirement already satisfied (use --upgrade to upgrade): PIL in /usr/lib/python2.6/dist-packages/PIL (from blockdiag>=1.2.4->nwdiag>=0.9.0->sphinxcontrib-nwdiag)
Requirement already satisfied (use --upgrade to upgrade): OrderedDict in /usr/local/lib/python2.6/dist-packages (from blockdiag>=1.2.4->nwdiag>=0.9.0->sphinxcontrib-nwdiag)
Installing collected packages: nwdiag, seqdiag, sphinxcontrib-nwdiag, sphinxcontrib-seqdiag
  Running setup.py install for nwdiag
    Installing rackdiag script to /usr/local/bin
    Installing nwdiag script to /usr/local/bin
    Installing packetdiag script to /usr/local/bin
  Running setup.py install for seqdiag
    Installing seqdiag script to /usr/local/bin
  Running setup.py install for sphinxcontrib-nwdiag
    warning: no files found matching 'CHANGES.*'
    Skipping installation of /usr/local/lib/python2.6/dist-packages/sphinxcontrib/__init__.py (namespace package)
    Installing /usr/local/lib/python2.6/dist-packages/sphinxcontrib_nwdiag-0.6.1-nspkg.pth
  Running setup.py install for sphinxcontrib-seqdiag
    warning: no files found matching 'CHANGES.*'
    Skipping installation of /usr/local/lib/python2.6/dist-packages/sphinxcontrib/__init__.py (namespace package)
    Installing /usr/local/lib/python2.6/dist-packages/sphinxcontrib_seqdiag-0.5.1-nspkg.pth
Successfully installed nwdiag seqdiag sphinxcontrib-nwdiag sphinxcontrib-seqdiag
Cleaning up...
serveur@debian:~/Domotique/z-wave/Cython-0.14$


Je n'ai pas trÚs bien compris ce message , qui est une commande à effectué a la fin du tuto.
serveur@debian:~/Domotique/z-wave/python-openzwave$ sudo ./install.sh
Code: Tout sélectionner
sudo: unable to resolve host debian
[sudo] password for serveur:
-----------------------------------------------------------------
|   Uninstall python-openzwave                                  |
-----------------------------------------------------------------
-----------------------------------------------------------------
|   Uninstall python-openzwave                                  |
-----------------------------------------------------------------
Can't find install.files. Abort !!
serveur@debian:~/Domotique/z-wave/python-openzwave$

Quand je lit la page readme.txt, il est dit :

Code: Tout sélectionner
python-openzwave
****************

You don't need to install (but building it) python-openzwave to test
examples.


ozwsh
=====

A shell manager for your ZWave network. It use urwid and louie python
extensions. If needed, type the following command to install them :

   sudo pip install urwid louie

Start ozwsh with :

   ./ozwsh.sh --device=/dev/yourzwavestick

It allows you to :

   * Reset controller (hard and soft) and add/remove device/controller

   * Change node informations (name, location, ... )

   * view and change values informations

   * view and change group informations

   * Full management of scenes, switches, dimmers and sensors

It's a shell like manager. You can visit your zwave network using the
command cd. All available commands are displayed on every screens. You
can use the tab keys to switch between the view panel and the edit
panel and the up and down ones to view all informations.

For the developpers : this a good example on how to use the api.
Update are sent to uwird widget using louie notifications. ZWave data
updates are done in the set, add, delete, remove, ... methods.

There is some others examples, to test them :

   cd examples
   ./build_examples.sh

This will install all the needed files used by the examples in a
temporary directory.


api_demo
========

A test demo for the api : it list all nodes/values on your network,
trying to identify your switches, dimmers and sensors.

Start it with :

   ./api_demo.py --device=/dev/yourzwavestick


test_lib
========

A test demo for the library : connect to the network and sniff for
notifications.

Start it with :

   ./test_lib.py --device=/dev/yourzwavestick --sniff=30


api_snif
========

A test demo for the api : connect to the api and sniff for louie
signal from it.

Start it with :

   ./api_sniff.py --device=/dev/yourzwavestick --sniff=30


memory_use
==========

Try to evaluate the memory use of the api.

Start it with :

   ./memory_use.py --device=/dev/yourzwavestick


Other examples
==============

manager : my first try to use uwird. I don't think I will developp it
anymore. Feel free to fork it.

The old directory contains examples of py-openzwave (the ancestor of
python-openzwave), feel free to upgrade them.

If you develop some examples using python-openzwave library, send us
the sources, they will be addes to examples.


Mais quand je fait :
Code: Tout sélectionner
serveur@debian:~/Domotique/z-wave/python-openzwave$ sudo pip install urwid louie
sudo: unable to resolve host debian
[sudo] password for serveur:
Requirement already satisfied (use --upgrade to upgrade): urwid in /usr/local/lib/python2.6/dist-packages
Requirement already satisfied (use --upgrade to upgrade): louie in /usr/lib/python2.6/dist-packages
Requirement already satisfied (use --upgrade to upgrade): nose>=0.8.3 in /usr/local/lib/python2.6/dist-packages (from louie)
Cleaning up...
serveur@debian:~/Domotique/z-wave/python-openzwave$


Franchement je ne vois pas ce que ça test ?
Code: Tout sélectionner
serveur@debian:~/Domotique/z-wave/python-openzwave$ ./ozwsh.sh --device=/dev/ttyUsb0
------------------------------------------------------------
|   Install openzwave in tmp                               |
------------------------------------------------------------
running install
running build
running build_py
package init file 'lib/__init__.py' not found (or not a regular file)
package init file 'lib/__init__.py' not found (or not a regular file)
running build_ext
skipping 'lib/libopenzwave.cpp' Cython extension (up-to-date)
running install_lib
running install_data
running install_egg_info
Removing build/tmp/usr/local/lib/python2.6/dist-packages/python_openzwave_lib-0.2.5.egg-info
Writing build/tmp/usr/local/lib/python2.6/dist-packages/python_openzwave_lib-0.2.5.egg-info
running install
running build
running build_py
running install_lib
running install_data
running install_egg_info
running egg_info
writing requirements to python_openzwave_api.egg-info/requires.txt
writing python_openzwave_api.egg-info/PKG-INFO
writing top-level names to python_openzwave_api.egg-info/top_level.txt
writing dependency_links to python_openzwave_api.egg-info/dependency_links.txt
reading manifest file 'python_openzwave_api.egg-info/SOURCES.txt'
writing manifest file 'python_openzwave_api.egg-info/SOURCES.txt'
removing 'build/tmp/usr/local/lib/python2.6/dist-packages/python_openzwave_api-0.2.5.egg-info' (and everything under it)
Copying python_openzwave_api.egg-info to build/tmp/usr/local/lib/python2.6/dist-packages/python_openzwave_api-0.2.5.egg-info
running install_scripts
------------------------------------------------------------
|   Run ozwsh                                           |
------------------------------------------------------------
serveur@debian:~/Domotique/z-wave/python-openzwave$


Je ne vois aucun exemple fonctionner ?
Code: Tout sélectionner
serveur@debian:~/Domotique/z-wave/python-openzwave$ cd examples
serveur@debian:~/Domotique/z-wave/python-openzwave/examples$
./build_examples.sh
serveur@debian:~/Domotique/z-wave/python-openzwave/examples$ ./build_examples.sh
------------------------------------------------------------
|   Install openzwave in tmp                               |
------------------------------------------------------------
running install
running build
running build_py
package init file 'lib/__init__.py' not found (or not a regular file)
package init file 'lib/__init__.py' not found (or not a regular file)
running build_ext
skipping 'lib/libopenzwave.cpp' Cython extension (up-to-date)
running install_lib
running install_data
running install_egg_info
Removing build/tmp/usr/local/lib/python2.6/dist-packages/python_openzwave_lib-0.2.5.egg-info
Writing build/tmp/usr/local/lib/python2.6/dist-packages/python_openzwave_lib-0.2.5.egg-info
running install
running build
running build_py
running install_lib
running install_data
running install_egg_info
running egg_info
writing requirements to python_openzwave_api.egg-info/requires.txt
writing python_openzwave_api.egg-info/PKG-INFO
writing top-level names to python_openzwave_api.egg-info/top_level.txt
writing dependency_links to python_openzwave_api.egg-info/dependency_links.txt
reading manifest file 'python_openzwave_api.egg-info/SOURCES.txt'
writing manifest file 'python_openzwave_api.egg-info/SOURCES.txt'
removing 'build/tmp/usr/local/lib/python2.6/dist-packages/python_openzwave_api-0.2.5.egg-info' (and everything under it)
Copying python_openzwave_api.egg-info to build/tmp/usr/local/lib/python2.6/dist-packages/python_openzwave_api-0.2.5.egg-info
running install_scripts
serveur@debian:~/Domotique/z-wave/python-openzwave/examples$



Ici il me dit que open-zwave n'est pas installé ??????????
Code: Tout sélectionner
serveur@debian:~/Domotique/z-wave/python-openzwave/examples$ ./test_lib.py --device=/dev/ttyUSB0 --sniff=30
Openzwave is not installed. Get it from tmp directory.
Add watcher
Add device
2013-07-12 14:30:39.053 mgr,     Added driver for controller /dev/ttyUSB0
Sniff network during 30.0 seconds
2013-07-12 14:30:39.055   Opening controller /dev/ttyUSB0
2013-07-12 14:30:39.058 Trying to open serial port /dev/ttyUSB0 (attempt 1)
2013-07-12 14:30:39.059 ERROR: Cannot open serial port /dev/ttyUSB0. Error code 13
2013-07-12 14:30:39.059 ERROR: Failed to open serial port /dev/ttyUSB0
2013-07-12 14:30:39.060 WARNING: Failed to init the controller (attempt 0)
2013-07-12 14:30:44.061   Opening controller /dev/ttyUSB0
2013-07-12 14:30:44.062 Trying to open serial port /dev/ttyUSB0 (attempt 1)
2013-07-12 14:30:44.062 ERROR: Cannot open serial port /dev/ttyUSB0. Error code 13
2013-07-12 14:30:44.063 ERROR: Failed to open serial port /dev/ttyUSB0
2013-07-12 14:30:44.063 WARNING: Failed to init the controller (attempt 1)
^CTraceback (most recent call last):
  File "./test_lib.py", line 89, in <module>
    time.sleep(sniff)
KeyboardInterrupt
serveur@debian:~/Domotique/z-wave/python-openzwave/examples$


Donc pour effectuer un test il faut installer la bibliothĂšque open-zwave.

Voila je pense que c'est bon ?
Merci.
Plug computer : DreamPlug Multi Boot / Marvel 1.22 Ghz / Architecture ARM / 512 Mo Ram / Carte-sd 16 Go class 10 / 5 Watts / Debian Squeeze 2.6.39.4 / Lamp... / php / mysql /asterisk via la domotique .
Domotique X10 : CM15 Pro EFL Marmitek / Mochad .
Domotique Z-wave : Vera Lite - Firmware 1.5.622 - Français / Raspberry + contrÎleur Z-Wave Aeon Labs Z-Stick S2.
xunil2003
Dieu de domotique
 
Messages: 239
Inscription: 07 Mar 2008, 19:50

Re: Installer openzwave sur Linux

Messagede bibi21000 » 15 Juil 2013, 18:36

sudo ./install.sh

Il y avait un bug dans le script, dans le cas d'une premiĂšre installation. Met a jour avec la derniĂšre version et cela devrait passer.

Il n'est pas nécessaire d'installer la lib pour faire fonctionner les exemples et les tests . Le message important est celui-ci :

2013-07-12 14:30:39.058 Trying to open serial port /dev/ttyUSB0 (attempt 1)
2013-07-12 14:30:39.059 ERROR: Cannot open serial port /dev/ttyUSB0. Error code 13
2013-07-12 14:30:39.059 ERROR: Failed to open serial port /dev/ttyUSB0
2013-07-12 14:30:39.060 WARNING: Failed to init the controller (attempt 0)
2013-07-12 14:30:44.061 Opening controller /dev/ttyUSB0
2013-07-12 14:30:44.062 Trying to open serial port /dev/ttyUSB0 (attempt 1)
2013-07-12 14:30:44.062 ERROR: Cannot open serial port /dev/ttyUSB0. Error code 13
2013-07-12 14:30:44.063 ERROR: Failed to open serial port /dev/ttyUSB0
2013-07-12 14:30:44.063 WARNING: Failed to init the controller (attempt 1)


La lib n'arrive pas Ă  ouvrir le port de ton controleur USB. VĂ©rifie les droits.
bibi21000
Membre un peu timide !
 
Messages: 3
Inscription: 27 AoĂ» 2011, 12:30


Retourner vers Logiciel - Les autres logiciels pour la domotique

Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 2 invités

Copyright © 2011 - Touteladomotique.com - Tous droits rĂ©servĂ©s
Les blogs partenaires : Abavala, Domo-Blog, Domotique34, Maison et Domotique


cron