can't rename Family Tree

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

can't rename Family Tree

Doug-11
I have a list of  22 Family Trees (saved packages, archives, etc.) and
want to create another one in order to import a saved package.

When I click New in Family Tree Manager no new Family Tree appears. I
have to shut down Gramps and re-open it. Then the new Family Tree
appears in the list with the name "Family Tree 1"( or 2, etc.). When I
attempt to rename this to something more informative, I get a message
"Rename failed
An attempt to rename a package with the following message:
rcs: /home/dougb/.gramps/grampsdb/490746ab/name.txt/rev.gramps,v: Not a
directory"

What's wrong?

Doug

Gramps 3.0.2-1; Mandriva 2008.1;  linux 2.6.24.5-desktop-2mnb

.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
Reply | Threaded
Open this post in threaded view
|

Re: can't rename Family Tree

Benny Malengier
I have seen this bug on large number of family trees. Please post an issue on the bug tracker.

I do not think you need to quit gramps, just load the tree, then hit the family tree icon again, and now the file is present and you can rename the file.

It would appear you cannot rename here  because you have some revisions on the file too? Is that the case? I have no experience with revisions myself (the error is in rcs).

I do believe you can edit the file 
/home/dougb/.gramps/grampsdb/490746ab/name.txt
and put the new name you want there.
In your case it would appear GRAMPS thinks name.txt is a directory however...  Is that the case?

In any case, this discussion is best held on the bug tracker, so post an item there, see
 http://gramps-project.org/wiki/index.php?title=Using_the_bug_tracker

Benny

2008/10/28 Doug <[hidden email]>
I have a list of  22 Family Trees (saved packages, archives, etc.) and
want to create another one in order to import a saved package.

When I click New in Family Tree Manager no new Family Tree appears. I
have to shut down Gramps and re-open it. Then the new Family Tree
appears in the list with the name "Family Tree 1"( or 2, etc.). When I
attempt to rename this to something more informative, I get a message
"Rename failed
An attempt to rename a package with the following message:
rcs: /home/dougb/.gramps/grampsdb/490746ab/name.txt/rev.gramps,v: Not a
directory"

What's wrong?

Doug

Gramps 3.0.2-1; Mandriva 2008.1;  linux 2.6.24.5-desktop-2mnb

.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
Reply | Threaded
Open this post in threaded view
|

Re: can't rename Family Tree

Doug-11
I've posted it on the bug-tracker.
As you say, closing and re-opening the family tree list shows up the new
tree.

I've also been able to rename it by editing the
~/.gramps/grampsdb/490746ab/name.txt file.
I've tried uninstalling and re-installing RCS to see if that would
remove the renaming error. No joy.

Doug

Benny Malengier wrote:

> I have seen this bug on large number of family trees. Please post an
> issue on the bug tracker.
>
> I do not think you need to quit gramps, just load the tree, then hit
> the family tree icon again, and now the file is present and you can
> rename the file.
>
> It would appear you cannot rename here  because you have some
> revisions on the file too? Is that the case? I have no experience with
> revisions myself (the error is in rcs).
>
> I do believe you can edit the file
> /home/dougb/.gramps/grampsdb/490746ab/name.txt
> and put the new name you want there.
> In your case it would appear GRAMPS thinks name.txt is a directory
> however...  Is that the case?
>
> In any case, this discussion is best held on the bug tracker, so post
> an item there, see
>  http://gramps-project.org/wiki/index.php?title=Using_the_bug_tracker
>
> Benny
>
> 2008/10/28 Doug <[hidden email]
> <mailto:[hidden email]>>
>
>     I have a list of  22 Family Trees (saved packages, archives, etc.) and
>     want to create another one in order to import a saved package.
>
>     When I click New in Family Tree Manager no new Family Tree appears. I
>     have to shut down Gramps and re-open it. Then the new Family Tree
>     appears in the list with the name "Family Tree 1"( or 2, etc.). When I
>     attempt to rename this to something more informative, I get a message
>     "Rename failed
>     An attempt to rename a package with the following message:
>     rcs: /home/dougb/.gramps/grampsdb/490746ab/name.txt/rev.gramps,v:
>     Not a
>     directory"
>
>     What's wrong?
>
>     Doug
>
>     Gramps 3.0.2-1; Mandriva 2008.1;  linux 2.6.24.5-desktop-2mnb
>
>     .
>
>     -------------------------------------------------------------------------
>     This SF.Net email is sponsored by the Moblin Your Move Developer's
>     challenge
>     Build the coolest Linux based applications with Moblin SDK & win
>     great prizes
>     Grand prize is a trip for two to an Open Source event anywhere in
>     the world
>     http://moblin-contest.org/redirect.php?banner_id=100&url=/
>     <http://moblin-contest.org/redirect.php?banner_id=100&url=/>
>     _______________________________________________
>     Gramps-users mailing list
>     [hidden email]
>     <mailto:[hidden email]>
>     https://lists.sourceforge.net/lists/listinfo/gramps-users
>
>


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
Reply | Threaded
Open this post in threaded view
|

Re: can't rename Family Tree

Doug-11
The bug has been acknowledged and resolved by Peter L (developer). If I
understand it, the renaming and rcs errors were related.

Note 0007380:

"Fixed by changing the test do distinguish between revision and database
rename.
Branch rev 11214
Trunk rev 11215"

However, I'm not quite clear what this means - is the fix only available
in future releases, 3.0.3-x, or would there be a patch applicable to
3.0.2-1?

Doug


Doug wrote:

> I've posted it on the bug-tracker.
> As you say, closing and re-opening the family tree list shows up the new
> tree.
>
> I've also been able to rename it by editing the
> ~/.gramps/grampsdb/490746ab/name.txt file.
> I've tried uninstalling and re-installing RCS to see if that would
> remove the renaming error. No joy.
>
> Doug
>
> Benny Malengier wrote:
>  
>> I have seen this bug on large number of family trees. Please post an
>> issue on the bug tracker.
>>
>> I do not think you need to quit gramps, just load the tree, then hit
>> the family tree icon again, and now the file is present and you can
>> rename the file.
>>
>> It would appear you cannot rename here  because you have some
>> revisions on the file too? Is that the case? I have no experience with
>> revisions myself (the error is in rcs).
>>
>> I do believe you can edit the file
>> /home/dougb/.gramps/grampsdb/490746ab/name.txt
>> and put the new name you want there.
>> In your case it would appear GRAMPS thinks name.txt is a directory
>> however...  Is that the case?
>>
>> In any case, this discussion is best held on the bug tracker, so post
>> an item there, see
>>  http://gramps-project.org/wiki/index.php?title=Using_the_bug_tracker
>>
>> Benny
>>
>> 2008/10/28 Doug <[hidden email]
>> <mailto:[hidden email]>>
>>
>>     I have a list of  22 Family Trees (saved packages, archives, etc.) and
>>     want to create another one in order to import a saved package.
>>
>>     When I click New in Family Tree Manager no new Family Tree appears. I
>>     have to shut down Gramps and re-open it. Then the new Family Tree
>>     appears in the list with the name "Family Tree 1"( or 2, etc.). When I
>>     attempt to rename this to something more informative, I get a message
>>     "Rename failed
>>     An attempt to rename a package with the following message:
>>     rcs: /home/dougb/.gramps/grampsdb/490746ab/name.txt/rev.gramps,v:
>>     Not a
>>     directory"
>>
>>     What's wrong?
>>
>>     Doug
>>
>>     Gramps 3.0.2-1; Mandriva 2008.1;  linux 2.6.24.5-desktop-2mnb
>>
>>     .
>>
>>     -------------------------------------------------------------------------
>>     This SF.Net email is sponsored by the Moblin Your Move Developer's
>>     challenge
>>     Build the coolest Linux based applications with Moblin SDK & win
>>     great prizes
>>     Grand prize is a trip for two to an Open Source event anywhere in
>>     the world
>>     http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>     <http://moblin-contest.org/redirect.php?banner_id=100&url=/>
>>     _______________________________________________
>>     Gramps-users mailing list
>>     [hidden email]
>>     <mailto:[hidden email]>
>>     https://lists.sourceforge.net/lists/listinfo/gramps-users
>>
>>
>>    
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Gramps-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gramps-users
>
>  


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
Reply | Threaded
Open this post in threaded view
|

Re: can't rename Family Tree

Benny Malengier


2008/10/30 Doug <[hidden email]>
The bug has been acknowledged and resolved by Peter L (developer). If I understand it, the renaming and rcs errors were related.

Note 0007380:

"Fixed by changing the test do distinguish between revision and database rename.
Branch rev 11214
Trunk rev 11215"

However, I'm not quite clear what this means - is the fix only available in future releases, 3.0.3-x, or would there be a patch applicable to 3.0.2-1?

The fix will be in 3.0.4 when released. This can still take a while, although this is the second more important fix.
If you want the fix now, you can use branch30 from subversion (info on our wiki, but you need to be a technical person to do it), or do the fix manually yourself (again, some daring needed). The patch is very simple:

--- src/DbManager.py    (revision 11214)
+++ src/DbManager.py    (working copy)
@@ -631,7 +631,8 @@
             node = self.model.get_iter(path)
             old_text = self.model.get_value(node, NAME_COL)
             if not old_text.strip() == new_text.strip():
 -                if len(path) > 1 :
+                if ":" in path :
                     self.__rename_revision(path, new_text)
                 else:
                     self.__rename_database(path, new_text)

The - is deleted line, and the + added line. You find the file DbManager.py on your computer (eg with the locate command).
For the normal user, it is best to do just wait for version 3.0.4 to be released.

Benny


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
Reply | Threaded
Open this post in threaded view
|

Re: can't rename Family Tree

Doug-11
I have DbManager.py in /usr/local/share/gramps (Date modified 13 Oct
2008) and also ~/downloads/gramps-3.0.2/src (Date modified 27 Sep 2008).
I presume the ~/downloads is the one to edit and then re-installation
will change the /usr/local version. Is that right?

Doug




Benny Malengier wrote:

> <snip>
>
> The fix will be in 3.0.4 when released. This can still take a while,
> although this is the second more important fix.
> If you want the fix now, you can use branch30 from subversion (info on
> our wiki, but you need to be a technical person to do it), or do the
> fix manually yourself (again, some daring needed). The patch is very
> simple:
>
> --- src/DbManager.py    (revision 11214)
> +++ src/DbManager.py    (working copy)
> @@ -631,7 +631,8 @@
>              node = self.model.get_iter(path)
>              old_text = self.model.get_value(node, NAME_COL)
>              if not old_text.strip() == new_text.strip():
>  -                if len(path) > 1 :
> +                if ":" in path :
>                      self.__rename_revision(path, new_text)
>                  else:
>                      self.__rename_database(path, new_text)
>
> The - is deleted line, and the + added line. You find the file
> DbManager.py on your computer (eg with the locate command).
> For the normal user, it is best to do just wait for version 3.0.4 to
> be released.
>
> Benny
>


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
Reply | Threaded
Open this post in threaded view
|

Re: can't rename Family Tree

Peter Landgren
Doug,

When grams run, it uses the files in /usr/local/share/gramps.
If you modify DbManager.py in ~/downloads/gramps-3.0.2/src, you
must do a "make install" as root, in ~/downloads/gramps-3.0.2.

/Peter


> I have DbManager.py in /usr/local/share/gramps (Date modified 13 Oct
> 2008) and also ~/downloads/gramps-3.0.2/src (Date modified 27 Sep 2008).
> I presume the ~/downloads is the one to edit and then re-installation
> will change the /usr/local version. Is that right?
>
> Doug
>
> Benny Malengier wrote:
> > <snip>
> >
> > The fix will be in 3.0.4 when released. This can still take a while,
> > although this is the second more important fix.
> > If you want the fix now, you can use branch30 from subversion (info on
> > our wiki, but you need to be a technical person to do it), or do the
> > fix manually yourself (again, some daring needed). The patch is very
> > simple:
> >
> > --- src/DbManager.py    (revision 11214)
> > +++ src/DbManager.py    (working copy)
> > @@ -631,7 +631,8 @@
> >              node = self.model.get_iter(path)
> >              old_text = self.model.get_value(node, NAME_COL)
> >              if not old_text.strip() == new_text.strip():
> >  -                if len(path) > 1 :
> > +                if ":" in path :
> >                      self.__rename_revision(path, new_text)
> >                  else:
> >                      self.__rename_database(path, new_text)
> >
> > The - is deleted line, and the + added line. You find the file
> > DbManager.py on your computer (eg with the locate command).
> > For the normal user, it is best to do just wait for version 3.0.4 to
> > be released.
> >
> > Benny
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge Build the coolest Linux based applications with Moblin SDK & win
> great prizes Grand prize is a trip for two to an Open Source event anywhere
> in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Gramps-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gramps-users

--
Peter Landgren
Talken Hagen
671 94  BRUNSKOG
0570-530 21
070-635 4719
[hidden email]
Skype: pgl4820.2


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
Reply | Threaded
Open this post in threaded view
|

Re: can't rename Family Tree

OldAl
Doug,

Of course, Peter is right. However it may be worth adding that a full
installation routine, in summary, is as follows:

1. upgrade the source files (which you have done)
2. cd  ~/gramps-whereverYouHaveDownloadedUpdates/
3.  ./autogen.sh
4. make
5. make install

Or, if you wish to run from the command line, replace step 5 by 5A:
5A. python src/gramps.y

I am assuming you are running from Linux OS.  In windows, the "/" have to be
replaced by "\" and there are other changes, too.

Old Al

PS: I am a newbee in all I do, so I believe in recording full details.

A.

On Fri, 31 Oct 2008 07:48:18 Peter Landgren wrote:

> Doug,
>
> When grams run, it uses the files in /usr/local/share/gramps.
> If you modify DbManager.py in ~/downloads/gramps-3.0.2/src, you
> must do a "make install" as root, in ~/downloads/gramps-3.0.2.
>
> /Peter
>
> > I have DbManager.py in /usr/local/share/gramps (Date modified 13 Oct
> > 2008) and also ~/downloads/gramps-3.0.2/src (Date modified 27 Sep 2008).
> > I presume the ~/downloads is the one to edit and then re-installation
> > will change the /usr/local version. Is that right?
> >
> > Doug
> >
> > Benny Malengier wrote:
> > > <snip>
> > >
> > > The fix will be in 3.0.4 when released. This can still take a while,
> > > although this is the second more important fix.
> > > If you want the fix now, you can use branch30 from subversion (info on
> > > our wiki, but you need to be a technical person to do it), or do the
> > > fix manually yourself (again, some daring needed). The patch is very
> > > simple:
> > >
> > > --- src/DbManager.py    (revision 11214)
> > > +++ src/DbManager.py    (working copy)
> > > @@ -631,7 +631,8 @@
> > >              node = self.model.get_iter(path)
> > >              old_text = self.model.get_value(node, NAME_COL)
> > >              if not old_text.strip() == new_text.strip():
> > >  -                if len(path) > 1 :
> > > +                if ":" in path :
> > >                      self.__rename_revision(path, new_text)
> > >                  else:
> > >                      self.__rename_database(path, new_text)
> > >
> > > The - is deleted line, and the + added line. You find the file
> > > DbManager.py on your computer (eg with the locate command).
> > > For the normal user, it is best to do just wait for version 3.0.4 to
> > > be released.
> > >
> > > Benny
> >
> > -------------------------------------------------------------------------
> > This SF.Net email is sponsored by the Moblin Your Move Developer's
> > challenge Build the coolest Linux based applications with Moblin SDK &
> > win great prizes Grand prize is a trip for two to an Open Source event
> > anywhere in the world
> > http://moblin-contest.org/redirect.php?banner_id=100&url=/
> > _______________________________________________
> > Gramps-users mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/gramps-users



--
Dr Algis Kabaila (PhD Eng)
http://akabaila.pcug.org.au/StructuralAnalysis/
------------------------------------------------


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
Reply | Threaded
Open this post in threaded view
|

Re: can't rename Family Tree

Doug-11
Thanks, Peter and Old Al.
I've done a fair bit of (linux) installing, so hopefully(!) I'll be able
to cope.
I just wanted to do a pre-emptive check before finding I'd modified the
wrong file and having to try and unscramble things!

Doug

Algis Kabaila wrote:

> Doug,
>
> Of course, Peter is right. However it may be worth adding that a full
> installation routine, in summary, is as follows:
>
> 1. upgrade the source files (which you have done)
> 2. cd  ~/gramps-whereverYouHaveDownloadedUpdates/
> 3.  ./autogen.sh
> 4. make
> 5. make install
>
> Or, if you wish to run from the command line, replace step 5 by 5A:
> 5A. python src/gramps.y
>
> I am assuming you are running from Linux OS.  In windows, the "/" have to be
> replaced by "\" and there are other changes, too.
>
> Old Al
>
> PS: I am a newbee in all I do, so I believe in recording full details.
>
> A.
>
>  
<snip>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users