IAM: cron mails

Plesk, Confixx, Froxlor, SysCP, SeCoTo, IspCP, etc.
Post Reply
eisbär
Posts: 14
Joined: 2002-10-06 18:10
 

IAM: cron mails

Post by eisbär »

Moin.

Ich hab da mal eine Frage..

Habe einen

* 1&1 Rootserver L
* SuSe 9.1
* Confixx 3.x

IAM wurde laut Eurer FAQ installiert..

Jetzt bekommeich allerdings immer wenn der Cronjob den Traffik ausliest (also alle 30 Minuten) folgende Mail:
sys:1: DeprecationWarning: Non-ASCII character 'xdf' in file optiam/iam on line 5, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
sys:1: DeprecationWarning: Non-ASCII character 'xdf' in file optiam/iam on line 5, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
Is ja nervig..

Wie bekomm ich das wech?!?!

Also mir ist klar, das das Script da ist /opt/iam/iam

Wie? Wo? kann ich das ändern?!?

Danke für Eure Hilfe
eisbär
Posts: 14
Joined: 2002-10-06 18:10
 

Re: IAM: cron mails

Post by eisbär »

Hmm.. scheint, als ob man einfach die Kommentare rauswirft und schon klappt alles reibungslos..

Kann mir einer erklären, warum das so ist?!?!
sascha
Posts: 1325
Joined: 2002-04-22 23:08
 

Re: IAM: cron mails

Post by sascha »

Warum klickst du nicht einfach mal auf den Link aus der Fehlermeldung?
eisbär
Posts: 14
Joined: 2002-10-06 18:10
 

Re: IAM: cron mails

Post by eisbär »

Lösung

Die ersten zwei Zeilen müssen wie folgt aussehen:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
doped04
Posts: 4
Joined: 2005-03-10 16:22
 

Re: IAM: cron mails

Post by doped04 »

Habe das gerade installiert und bekomme folgenden Fehler:
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
Traceback (most recent call last):
File "./iam", line 40, in ?
import sys, os
ImportError: No module named os
Was meint das genau und wie kann ich das beheben?


MfG
doped04
[/quote]
captaincrunch
Userprojekt
Userprojekt
Posts: 7066
Joined: 2002-10-09 14:30
Location: Dorsten
Contact:
 

Re: IAM: cron mails

Post by captaincrunch »

IAM kann das Modul "os" nicht finden, da du anscheinend dieverse Dinge nicht gesetzt hast:
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Steht aber eigentlich alles im Klartext da.
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
doped04
Posts: 4
Joined: 2005-03-10 16:22
 

Re: IAM: cron mails

Post by doped04 »

ja weiß ich aber da ich mich mit python nicht wirklich auskenne wollt ich fragen, ob irgendwo erklärt ist wie man das configfile (oder was das sein soll) entsprechend anpasst
kawfy
Posts: 307
Joined: 2002-08-08 23:45
 

Re: IAM: cron mails

Post by kawfy »

eisbär wrote:

Code: Select all

sys:1: DeprecationWarning: Non-ASCII character 'xdf' in file optiam/iam on line 5, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
Wie? Wo? kann ich das ändern?!?
Das ist ja nur eine Warnung. "xdf" ist "Ã?". Das ist kein ASCII-Zeichen und das mag iam nicht.

Abhilfe: lösche das "Ã?" in Zeile 5 in deiner Konfigurationsdatei /opt/iam/iam. Scheint ja wohl iene Kommentarzeile zu sein.

Du brauchst dich nicht mit Python auszukennen. Englisch- und Computerkenntnisse reichen aus. :twisted:
Post Reply