Seite 1 von 1

Tips zur Fehlersuche....

Verfasst: Do Mär 24, 2022 9:58 am
von hhoefling
Alle Entwickler die mit einem Windows PC als Entwicklungsumgebung arbeitet und ein Linux System als Zielsystem haben kennen das Probelm meist schon.

Trotzdem stolpert man immer wieder darüber.
Aktuell bin ich bei der openWB Version: 1.9.258 (2022-03-17 09:37:55 +0100 [56a4c7ef] darüber gestopert.
Folgendes Kommand auf dem Pi ausgeführt sollte eigendlich kein Ergebniss erzeugen

Code: Alles auswählen

find /var/www/html/openWB -name "*.sh" -o -name "*.py"  -exec file  {} \; | grep CRLF
Aktuell bekomme ich

Code: Alles auswählen

/var/www/html/openWB/modules/et_awattarcap/factors.py: ASCII text, with very long lines, with CRLF line terminators
/var/www/html/openWB/modules/et_awattarcap/awattarcapgetprices.py: Python script, UTF-8 Unicode text executable, with CRLF line terminators
/var/www/html/openWB/modules/soc_kia/soc.py: Python script, ASCII text executable, with CRLF line terminators
/var/www/html/openWB/modules/soc_kia/soc_external.py: Python script, ASCII text executable, with CRLF line terminators
/var/www/html/openWB/modules/soc_kia/kiahttp.py: Python script, ASCII text executable, with CRLF line terminators
/var/www/html/openWB/modules/soc_kia/state.py: Python script, ASCII text executable, with CRLF line terminators
/var/www/html/openWB/modules/soc_kia/abrp.py: Python script, ASCII text executable, with CRLF line terminators
/var/www/html/openWB/modules/soc_kia/kiaif.py: Python script, ASCII text executable, with CRLF line terminators
/var/www/html/openWB/modules/soc_kia/kiaauth.py: Python script, ASCII text executable, with very long lines, with CRLF line terminators
/var/www/html/openWB/modules/soc_kia/trigger.py: Python script, ASCII text executable, with CRLF line terminators
/var/www/html/openWB/modules/soc_carnet/we_connect_client.py: Python script, ASCII text executable, with very long lines, with CRLF line terminators
/var/www/html/openWB/packages/testutils/mock.py: Python script, ASCII text executable, with CRLF line terminators
z.b. die Datei /var/www/html/openWB/modules/soc_carnet/we_connect_client.py
Sie sieht mit cat /var/www/html/openWB/modules/soc_carnet/we_connect_client.py noch normal aus.
Aber der Versuch sie auszuführen ergibt:

Code: Alles auswählen

/var/www/html/openWB/modules/soc_carnet# ./we_connect_client.py
-bash: ./we_connect_client.py: /usr/bin/python^M: Defekter Interpreter: Datei oder Verzeichnis nicht gefunden
Einmal im Editor mit Unix-Zeilenschaltung abspeichern bereinigt das Problem.

Re: Tips zur Fehlersuche....

Verfasst: Do Mär 24, 2022 10:28 am
von LutzB