I just finished reading through the dev manual and I checked to make
sure that the following is true:

1. The director can write to the directory, and is creating a
DirStartUp.pyc file.
2. Any functions I do not want have been removed, or the noop=1 has been
placed within the event.

Is there any way to get more detail other than the error messages I am
seeing?  Seeing I cannot run the file from the command line to see if it
is syntax problem, it would be nice to find out why bacula cannot use
the file.

Thanks,

David Wilson
Network Security Engineer
PAETEC Communications, Inc.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kern
Sibbald
Sent: Saturday, June 10, 2006 11:16 AM
To: bacula-users@lists.sourceforge.net
Cc: Wilson, David
Subject: Re: [Bacula-users] Python Question

On Friday 09 June 2006 21:21, Wilson, David wrote:
> Greetings,
>
>
>
> I am working with using the python functionality of bacula and I am
> running into a problem with the DirStartUp.py script.
>
>
>
> Whenever I startup bacula, or restart the python engine I receive the
> following error:
>
>
>
> 09-Jun 15:14 bkup1-roc-dir: ERROR in pythonlib.c:131 Could not import
> Python script /etc/bacula/scripts/DirStartUp. Python disabled.
>
>
>
> When I attempt to run the script manually I receive:
>
> Traceback (most recent call last):
>
>   File "DirStartUp.py", line 6, in ?
>
>     import sys, bacula, time
>
> ImportError: No module named bacula
>
>
>
> I did compile bacula with -with-python and I received no errors while
> installing in.
>
>
>
> Any ideas??

Please see the Python chapter of the development manual -- in particular
the 
Python Configuration section. I have added several paragraphs that
explain 
this problem.

http://www.bacula.org/dev-manual/Python_Scripting.html

>
>
>
> David Wilson
> Network Security Engineer
> PAETEC Communications, Inc.

-- 
Best regards,

Kern

  (">
  /\
  V_V


_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to