Hi doug

Le 26/06/2013 14:14, doug a écrit :
On 25/06/13 20:30, Serge Noiraud wrote:
Le 25/06/2013 20:47, doug a écrit :
On 25/06/13 17:40, Serge Noiraud wrote:
Le 25/06/2013 14:28, doug a écrit :
Can I test this on gramps 4.0.2 svn 22605?
I don't find a file named graphview.py.
Yes, the GraphView plugin under linux is under :
$HOME/.gramps/gramps40/plugins/GraphView
and the patch apply to the file graphview.py in this
directory.

You need to have the plugin installed from preferences.

<snip>

Sorry, I keep forgetting to look in .gramps.

The patch crashes Graphview when there are more than a
couple of dozen people in the tree.
Shall I report a bug on the tracker or would you like
details here?
You can send it here.
It didn't crash for me with more than 6000 people.


User Information:
===================

GraphView for person with 18 descendants
(Zoom slider is sitting on 1.0)


Error Details:
===================

4178: WARNING: spell.py: line 74: GtkSpell not loaded. Spell 
checking will not be available.
To build it for Gramps see 
http://www.gramps-project.org/wiki/index.php?title=GEPS_029:_GTK3-GObject_introspection_Conversion#Spell_Check_Install166743: 
ERROR: grampsapp.py: line 114: Unhandled exception
Traceback (most recent call last):
   File 
"/usr/local/lib/python3.2/dist-packages/gramps/gui/viewmanager.py", 
line 1284, in view_changed
     self.__change_page(page_num)
   File 
"/usr/local/lib/python3.2/dist-packages/gramps/gui/viewmanager.py", 
line 1297, in __change_page
     self.active_page.set_active()
   File 
"/usr/local/lib/python3.2/dist-packages/gramps/gui/views/navigationview.py", 
line 163, in set_active
     self.goto_active(None)
   File 
"/usr/local/lib/python3.2/dist-packages/gramps/gui/views/navigationview.py", 
line 198, in goto_active
     self.goto_handle(active_handle)
   File 
"/home/dougb/.gramps/gramps40/plugins/GraphView/graphview.py", 
line 207, in goto_handle
     self.graph_widget.populate(self.get_active())
   File 
"/home/dougb/.gramps/gramps40/plugins/GraphView/graphview.py", 
line 357, in populate
     parser.parse(svg_data)
   File 
"/home/dougb/.gramps/gramps40/plugins/GraphView/graphview.py", 
line 576, in parse
     parser.Parse(ifile)
   File 
"/home/dougb/.gramps/gramps40/plugins/GraphView/graphview.py", 
line 852, in start_element
     start_function(attrs)
   File 
"/home/dougb/.gramps/gramps40/plugins/GraphView/graphview.py", 
line 765, in start_path
     line_dash = GooCanvas.CanvasLineDash([5.0, 5.0]))
TypeError: function takes at most 0 arguments (1 given)
This is related to BUG #0006816.

I have a work around for this :

            stroke_color = attrs.get('stroke')
            if attrs.get('stroke-dasharray'):
                is_dashed = True                               <==== line 757
            else:
                is_dashed = False
       
 at this line, replace True by False and the problem will disapear


System Information:
===================

Python version: 3.2.3 (default, Jun 25 2012, 23:10:56) [GCC 
4.7.1]
BSDDB version: 5.3.0 (5, 3, 21)
Gramps version: 4.0.2
LANG: en_GB.UTF-8
OS: Linux
Distribution: 3.2.0-4-amd64

GTK version    : 3.4.2
gobject version: 3.4.2
cairo version  : (1, 10, 0)

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Gramps-devel mailing list
Gramps-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gramps-devel