Hello,
Apres avoir activer le plugin teleinfo, j’ai quelque problème lors de l’installation, il y a des erreurs lié la version de python :
0044|+ sudo pip3 install --upgrade pip
0045|error: externally-managed-environment
0046|× This environment is externally managed
0047|╰─> To install Python packages system-wide, try apt install
0048|python3-xyz, where xyz is the package you are trying to
0049|install.
0050|If you wish to install a non-Debian-packaged Python package,
0051|create a virtual environment using python3 -m venv path/to/venv.
0052|Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
0053|sure you have python3-full installed.
0054|For more information visit http://rptl.io/venv
0055|note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
0056|hint: See PEP 668 for the detailed specification.
0057|+ echo 7
0058|+ sudo pip3 install --force-reinstall --upgrade pylibftdi
0059|error: externally-managed-environment
0060|× This environment is externally managed
0061|╰─> To install Python packages system-wide, try apt install
0062|python3-xyz, where xyz is the package you are trying to
0063|install.
0064|If you wish to install a non-Debian-packaged Python package,
0065|create a virtual environment using python3 -m venv path/to/venv.
0066|Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
0067|sure you have python3-full installed.
0068|For more information visit http://rptl.io/venv
0069|note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
0070|hint: See PEP 668 for the detailed specification.
0071|+ echo 8
0072|+ sudo pip3 install --force-reinstall --upgrade six
0073|error: externally-managed-environment
0074|× This environment is externally managed
0075|╰─> To install Python packages system-wide, try apt install
0076|python3-xyz, where xyz is the package you are trying to
0077|install.
0078|If you wish to install a non-Debian-packaged Python package,
0079|create a virtual environment using python3 -m venv path/to/venv.
0080|Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
0081|sure you have python3-full installed.
0082|For more information visit http://rptl.io/venv
0083|note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
0084|hint: See PEP 668 for the detailed specification.
0085|+ echo 9
0086|+ sudo pip3 install --force-reinstall --upgrade pyserial
0087|error: externally-managed-environment
0088|× This environment is externally managed
0089|╰─> To install Python packages system-wide, try apt install
0090|python3-xyz, where xyz is the package you are trying to
0091|install.
0092|If you wish to install a non-Debian-packaged Python package,
0093|create a virtual environment using python3 -m venv path/to/venv.
0094|Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
0095|sure you have python3-full installed.
0096|For more information visit http://rptl.io/venv
0097|note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
0098|hint: See PEP 668 for the detailed specification.
0099|+ echo 10
0100|+ sudo pip3 install --force-reinstall --upgrade setuptools
0101|error: externally-managed-environment
0102|× This environment is externally managed
0103|╰─> To install Python packages system-wide, try apt install
0104|python3-xyz, where xyz is the package you are trying to
0105|install.
0106|If you wish to install a non-Debian-packaged Python package,
0107|create a virtual environment using python3 -m venv path/to/venv.
0108|Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
0109|sure you have python3-full installed.
0110|For more information visit http://rptl.io/venv
0111|note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
0112|hint: See PEP 668 for the detailed specification.
0113|+ echo 11
0114|+ sudo pip3 install --force-reinstall --upgrade requests
0115|error: externally-managed-environment
0116|× This environment is externally managed
0117|╰─> To install Python packages system-wide, try apt install
0118|python3-xyz, where xyz is the package you are trying to
0119|install.
0120|If you wish to install a non-Debian-packaged Python package,
0121|create a virtual environment using python3 -m venv path/to/venv.
0122|Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
0123|sure you have python3-full installed.
0124|For more information visit http://rptl.io/venv
0125|note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
0126|hint: See PEP 668 for the detailed specification.
0127|+ echo 12
0128|+ sudo pip3 install --force-reinstall --upgrade pyudev
0129|error: externally-managed-environment
0130|× This environment is externally managed
0131|╰─> To install Python packages system-wide, try apt install
0132|python3-xyz, where xyz is the package you are trying to
0133|install.
0134|If you wish to install a non-Debian-packaged Python package,
0135|create a virtual environment using python3 -m venv path/to/venv.
0136|Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
0137|sure you have python3-full installed.
0138|For more information visit http://rptl.io/venv
0139|note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
0140|hint: See PEP 668 for the detailed specification.
0141|+ echo 13
0142|+ sudo pip3 install --force-reinstall --upgrade paho-mqtt
0143|error: externally-managed-environment
0144|× This environment is externally managed
0145|╰─> To install Python packages system-wide, try apt install
0146|python3-xyz, where xyz is the package you are trying to
0147|install.
0148|If you wish to install a non-Debian-packaged Python package,
0149|create a virtual environment using python3 -m venv path/to/venv.
0150|Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
0151|sure you have python3-full installed.
0152|For more information visit http://rptl.io/venv
0153|note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
0154|hint: See PEP 668 for the detailed specification.
Il est possible de forcer les installations des dépendances demandées avec la commande suivante (surement pas recommandé ^^ ) :
Ex : pip3 install --force-reinstall --upgrade XXXX --break-system-packages
pip3 install --force-reinstall --upgrade pylibftdi --break-system-packages
Autre problèmes : (L330 - teleinfo/core/class/teleinfo.class.php )
$port = jeedom::getUsbMapping(config::byKey('port', 'teleinfo'));
if ($twoCptCartelectronic == 1) {
$port = '/dev/ttyUSB1';
} else {
if (is_string($port)) { <-- A rajouter <---
if (!file_exists($port)) {
log::add('teleinfo', 'error', '[TELEINFO]-----[' . $type . '] Le port1 '. $port . ' n\'existe pas');
return false;
}
}
}
(L350 - teleinfo/core/class/teleinfo.class.php )
$port = jeedom::getUsbMapping(config::byKey('port_modem2', 'teleinfo'));
if ($twoCptCartelectronic == 1) {
$port = '/dev/ttyUSB1';
} else {
if (is_string($port)) { <-- A rajouter <---
if (!file_exists($port)) {
log::add('teleinfo', 'error', '[TELEINFO]-----[' . $type . '] Le port2 '. $port . ' n\'existe pas');
return false;
}
}
}
Après ça le module fonctionne