On 18 dic, 15:57, "Kevin Horn" <[EMAIL PROTECTED]> wrote:
> I don't see any problems immediately, but here are a few ideas:
>
> Did you see any other errors in the stdout/stderr logs?
>
> Is your root_class defined correctly in the TGWindowsService class? What
> about the other user-editable fields?
>
> Do you have any idea what file/what code is throwing the AttributeError?
> You might try the old standby of temporary print statements to localize
> this.
>
> Kevin Horn
>
Thanks for answering
Sorry for not giving a more explicit help of what is happening, I just
don't know. So I paste some of code.
This is what I've done.
In service.py:
current_dir = os.path.split(__file__)[0]
default_project_name = os.path.split(current_dir)[1]
real_name_project = 'aguante_el_metal'
# -- START USER EDIT SECTION
# -- Users must edit this section before installing the service.
_svc_name_ = '%s' % real_name_project
_svc_display_name_ = '%s' % real_name_project
code_dir = current_dir
root_class = '%s.controllers.Root' % real_name_project
config_module = '%s.config' % real_name_project
log_dir = current_dir
# -- END USER EDIT SECTION
I did a pdb.set_trace() and I have this:
(Pdb) _svc_name_
'aguante_el_metal'
(Pdb) _svc_display_name_
'aguante_el_metal'
(Pdb) code_dir
'D:\\Proyectos\\aguante_prod'
(Pdb) root_class
'aguante_el_metal.controllers.Root'
(Pdb) config_module
'aguante_el_metal.config'
(Pdb) log_dir
'D:\\Proyectos\\aguante_prod'
My Root class is in D:\Proyectos\aguante_prod\aguante_el_metal
\controllers.py
I do this
D:\Proyectos\aguante_prod>service.py start
Starting service aguante_el_metal
D:\Proyectos\aguante_prod>
and went to Windows Event Application Logs and it shows me an Error (I
try to translate it to english):
------------
Type: Error
Origin: Python Service
Category: None
User: Unavailable
Python could find the service class in the module
<type 'exceptions.AttributeError'>: 'module' object has no attribute
'TGWindowsService'
------------
I searched for any .log in this directory but I didn't find anything.
I tried to start from service.msc (aguante_el_metal) but I had same
result.
Thanks, Matias
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---