Anybody else having problem runnings text reports in trunk 19929?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Anybody else having problem runnings text reports in trunk 19929?

Adam Stein-3
Trying to test out some new variable substitution features that my text
report can make use of (FilteredReports).  Couldn't run my text report,
then I tried a standard text report and that failed for the same reasons
(see below).  Is this known or do I need to investigate?  I'm currently
at trunk revision 19929.

33799: ERROR: gramps.py: line 178: Unhandled exception
Traceback (most recent call last):
  File "/project/adam/gramps_trunk/src/gui/viewmanager.py", line 1913,
in <lambda>
    return lambda x: run_plugin(pdata, dbstate, uistate)
  File "/project/adam/gramps_trunk/src/gui/viewmanager.py", line 1900,
in run_plugin
    pdata.category, pdata.require_active,
  File
"/project/adam/gramps_trunk/src/gui/plug/report/_reportdialog.py", line
635, in report
    dialog = dialog_class(dbstate, uistate, options_class, name,
trans_name)
  File
"/project/adam/gramps_trunk/src/gui/plug/report/_textreportdialog.py",
line 102, in __init__
    name, translated_name)
  File
"/project/adam/gramps_trunk/src/gui/plug/report/_docreportdialog.py",
line 69, in __init__
    name, trans_name)
  File
"/project/adam/gramps_trunk/src/gui/plug/report/_reportdialog.py", line
105, in __init__
    self.init_interface()
  File
"/project/adam/gramps_trunk/src/gui/plug/report/_docreportdialog.py",
line 76, in init_interface
    ReportDialog.init_interface(self)
  File
"/project/adam/gramps_trunk/src/gui/plug/report/_reportdialog.py", line
190, in init_interface
    self.setup_format_frame()
  File
"/project/adam/gramps_trunk/src/gui/plug/report/_docreportdialog.py",
line 155, in setup_format_frame
    self.make_doc_menu(self.options.handler.get_format_name())
  File
"/project/adam/gramps_trunk/src/gui/plug/report/_textreportdialog.py",
line 109, in make_doc_menu
    self.format_menu = _TextFormatComboBox( active )
  File
"/project/adam/gramps_trunk/src/gui/plug/report/_textreportdialog.py",
line 58, in __init__
    for plugin in pmgr.get_docgen_plugins():
  File "/project/adam/gramps_trunk/src/gen/plug/_manager.py", line 530,
in get_docgen_plugins
    dgp = gen.plug.DocGenPlugin(name=pdata.name,
NameError: global name 'gen' is not defined

--
Adam ([hidden email])



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: Anybody else having problem runnings text reports in trunk 19929?

Nick Hall-6
Adam,

This is almost certainly my fault, due to GEPS008.

I'll have a look at it.

Nick.


On 28/06/12 01:12, Adam Stein wrote:

> Trying to test out some new variable substitution features that my text
> report can make use of (FilteredReports).  Couldn't run my text report,
> then I tried a standard text report and that failed for the same reasons
> (see below).  Is this known or do I need to investigate?  I'm currently
> at trunk revision 19929.
>
> 33799: ERROR: gramps.py: line 178: Unhandled exception
> Traceback (most recent call last):
>    File "/project/adam/gramps_trunk/src/gui/viewmanager.py", line 1913,
> in <lambda>
>      return lambda x: run_plugin(pdata, dbstate, uistate)
>    File "/project/adam/gramps_trunk/src/gui/viewmanager.py", line 1900,
> in run_plugin
>      pdata.category, pdata.require_active,
>    File
> "/project/adam/gramps_trunk/src/gui/plug/report/_reportdialog.py", line
> 635, in report
>      dialog = dialog_class(dbstate, uistate, options_class, name,
> trans_name)
>    File
> "/project/adam/gramps_trunk/src/gui/plug/report/_textreportdialog.py",
> line 102, in __init__
>      name, translated_name)
>    File
> "/project/adam/gramps_trunk/src/gui/plug/report/_docreportdialog.py",
> line 69, in __init__
>      name, trans_name)
>    File
> "/project/adam/gramps_trunk/src/gui/plug/report/_reportdialog.py", line
> 105, in __init__
>      self.init_interface()
>    File
> "/project/adam/gramps_trunk/src/gui/plug/report/_docreportdialog.py",
> line 76, in init_interface
>      ReportDialog.init_interface(self)
>    File
> "/project/adam/gramps_trunk/src/gui/plug/report/_reportdialog.py", line
> 190, in init_interface
>      self.setup_format_frame()
>    File
> "/project/adam/gramps_trunk/src/gui/plug/report/_docreportdialog.py",
> line 155, in setup_format_frame
>      self.make_doc_menu(self.options.handler.get_format_name())
>    File
> "/project/adam/gramps_trunk/src/gui/plug/report/_textreportdialog.py",
> line 109, in make_doc_menu
>      self.format_menu = _TextFormatComboBox( active )
>    File
> "/project/adam/gramps_trunk/src/gui/plug/report/_textreportdialog.py",
> line 58, in __init__
>      for plugin in pmgr.get_docgen_plugins():
>    File "/project/adam/gramps_trunk/src/gen/plug/_manager.py", line 530,
> in get_docgen_plugins
>      dgp = gen.plug.DocGenPlugin(name=pdata.name,
> NameError: global name 'gen' is not defined
>



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: Anybody else having problem runnings text reports in trunk 19929?

Nick Hall-6
In reply to this post by Adam Stein-3
Adam,

Sorry about that - it is fixed now.

The problem was that I removed an apparently redundant import:

from gen.plug import PluginRegister
import gen.utils

Although nothing in gen.utils was being used, the import was exposing
other classes in the gen.plug package.  Removing the import of gen.utils
caused the problem.

Nick.


On 28/06/12 01:12, Adam Stein wrote:

> Trying to test out some new variable substitution features that my text
> report can make use of (FilteredReports).  Couldn't run my text report,
> then I tried a standard text report and that failed for the same reasons
> (see below).  Is this known or do I need to investigate?  I'm currently
> at trunk revision 19929.
>
> 33799: ERROR: gramps.py: line 178: Unhandled exception
> Traceback (most recent call last):
>    File "/project/adam/gramps_trunk/src/gui/viewmanager.py", line 1913,
> in <lambda>
>      return lambda x: run_plugin(pdata, dbstate, uistate)
>    File "/project/adam/gramps_trunk/src/gui/viewmanager.py", line 1900,
> in run_plugin
>      pdata.category, pdata.require_active,
>    File
> "/project/adam/gramps_trunk/src/gui/plug/report/_reportdialog.py", line
> 635, in report
>      dialog = dialog_class(dbstate, uistate, options_class, name,
> trans_name)
>    File
> "/project/adam/gramps_trunk/src/gui/plug/report/_textreportdialog.py",
> line 102, in __init__
>      name, translated_name)
>    File
> "/project/adam/gramps_trunk/src/gui/plug/report/_docreportdialog.py",
> line 69, in __init__
>      name, trans_name)
>    File
> "/project/adam/gramps_trunk/src/gui/plug/report/_reportdialog.py", line
> 105, in __init__
>      self.init_interface()
>    File
> "/project/adam/gramps_trunk/src/gui/plug/report/_docreportdialog.py",
> line 76, in init_interface
>      ReportDialog.init_interface(self)
>    File
> "/project/adam/gramps_trunk/src/gui/plug/report/_reportdialog.py", line
> 190, in init_interface
>      self.setup_format_frame()
>    File
> "/project/adam/gramps_trunk/src/gui/plug/report/_docreportdialog.py",
> line 155, in setup_format_frame
>      self.make_doc_menu(self.options.handler.get_format_name())
>    File
> "/project/adam/gramps_trunk/src/gui/plug/report/_textreportdialog.py",
> line 109, in make_doc_menu
>      self.format_menu = _TextFormatComboBox( active )
>    File
> "/project/adam/gramps_trunk/src/gui/plug/report/_textreportdialog.py",
> line 58, in __init__
>      for plugin in pmgr.get_docgen_plugins():
>    File "/project/adam/gramps_trunk/src/gen/plug/_manager.py", line 530,
> in get_docgen_plugins
>      dgp = gen.plug.DocGenPlugin(name=pdata.name,
> NameError: global name 'gen' is not defined
>



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: Anybody else having problem runnings text reports in trunk 19929?

Adam Stein-3
Thanks, that did it.

On Thu, 2012-06-28 at 14:28 +0100, Nick Hall wrote:

> Adam,
>
> Sorry about that - it is fixed now.
>
> The problem was that I removed an apparently redundant import:
>
> from gen.plug import PluginRegister
> import gen.utils
>
> Although nothing in gen.utils was being used, the import was exposing
> other classes in the gen.plug package.  Removing the import of gen.utils
> caused the problem.
>
> Nick.
>
>
> On 28/06/12 01:12, Adam Stein wrote:
> > Trying to test out some new variable substitution features that my text
> > report can make use of (FilteredReports).  Couldn't run my text report,
> > then I tried a standard text report and that failed for the same reasons
> > (see below).  Is this known or do I need to investigate?  I'm currently
> > at trunk revision 19929.
> >
> > 33799: ERROR: gramps.py: line 178: Unhandled exception
> > Traceback (most recent call last):
> >    File "/project/adam/gramps_trunk/src/gui/viewmanager.py", line 1913,
> > in <lambda>
> >      return lambda x: run_plugin(pdata, dbstate, uistate)
> >    File "/project/adam/gramps_trunk/src/gui/viewmanager.py", line 1900,
> > in run_plugin
> >      pdata.category, pdata.require_active,
> >    File
> > "/project/adam/gramps_trunk/src/gui/plug/report/_reportdialog.py", line
> > 635, in report
> >      dialog = dialog_class(dbstate, uistate, options_class, name,
> > trans_name)
> >    File
> > "/project/adam/gramps_trunk/src/gui/plug/report/_textreportdialog.py",
> > line 102, in __init__
> >      name, translated_name)
> >    File
> > "/project/adam/gramps_trunk/src/gui/plug/report/_docreportdialog.py",
> > line 69, in __init__
> >      name, trans_name)
> >    File
> > "/project/adam/gramps_trunk/src/gui/plug/report/_reportdialog.py", line
> > 105, in __init__
> >      self.init_interface()
> >    File
> > "/project/adam/gramps_trunk/src/gui/plug/report/_docreportdialog.py",
> > line 76, in init_interface
> >      ReportDialog.init_interface(self)
> >    File
> > "/project/adam/gramps_trunk/src/gui/plug/report/_reportdialog.py", line
> > 190, in init_interface
> >      self.setup_format_frame()
> >    File
> > "/project/adam/gramps_trunk/src/gui/plug/report/_docreportdialog.py",
> > line 155, in setup_format_frame
> >      self.make_doc_menu(self.options.handler.get_format_name())
> >    File
> > "/project/adam/gramps_trunk/src/gui/plug/report/_textreportdialog.py",
> > line 109, in make_doc_menu
> >      self.format_menu = _TextFormatComboBox( active )
> >    File
> > "/project/adam/gramps_trunk/src/gui/plug/report/_textreportdialog.py",
> > line 58, in __init__
> >      for plugin in pmgr.get_docgen_plugins():
> >    File "/project/adam/gramps_trunk/src/gen/plug/_manager.py", line 530,
> > in get_docgen_plugins
> >      dgp = gen.plug.DocGenPlugin(name=pdata.name,
> > NameError: global name 'gen' is not defined
> >
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Gramps-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gramps-devel

--
Adam ([hidden email])



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: Anybody else having problem runnings text reports in trunk 19929?

Benny Malengier
In reply to this post by Nick Hall-6


2012/6/28 Nick Hall <[hidden email]>
Adam,

Sorry about that - it is fixed now.

The problem was that I removed an apparently redundant import:

from gen.plug import PluginRegister
import gen.utils

Although nothing in gen.utils was being used, the import was exposing
other classes in the gen.plug package.  Removing the import of gen.utils
caused the problem.

A nice example of why the __init__ should not do much :-)

Benny


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel