"bug report"

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

"bug report"

Stefan Björk
"User Information:
===================

Trying to open a repository from the repository view by double-
clicking. All but one repositories can be opened for editing.

Database can not be exported to XML; it crashes with the same
error message. Data can thus not be included (but I can send
the entire database, PGP encrypted, if required).

The repostiory that causes this error has the following values:

Name: Svensk Arkivinformation (SVAR)
ID: R0001
Type: Archive

The two only obvious things that differs from the other repositories
(that does not cause this error) is that there are parenthesis in the
name, and that this repository (as far as I know) has no source
references to it.


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

16403: ERROR: gramps.py: line 147: Unhandled exception
Traceback (most recent call last):
  File "/home/stefan/garnome/share/gramps/PageView.py", line 759, in button_press
    self.edit(obj)
  File "/home/stefan/garnome/share/gramps/DataViews/_RepositoryView.py", line 228, in edit
    repos = self.dbstate.db.get_repository_from_handle(handle)
  File "/home/stefan/garnome/share/gramps/GrampsDb/_GrampsDbBase.py", line 743, in get_repository_from_handle
    return self._get_from_handle(handle, Repository, self.repository_map)
  File "/home/stefan/garnome/share/gramps/GrampsDb/_GrampsBSDDB.py", line 1247, in _get_from_handle
    newobj.unserialize(data)
  File "/home/stefan/garnome/share/gramps/RelLib/_Repository.py", line 74, in unserialize
    AddressBase.unserialize(self,address_list)
  File "/home/stefan/garnome/share/gramps/RelLib/_AddressBase.py", line 63, in unserialize
    self.address_list = [Address().unserialize(item) for item in data]
  File "/home/stefan/garnome/share/gramps/RelLib/_Address.py", line 66, in unserialize
    (privacy, source_list, note, date, location) = data
ValueError: too many values to unpack


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

Python version: 2.4.3 (#1, Sep 18 2006, 14:13:20) [GCC 3.4.4 20050721 (Red Hat 3.4.4-2)]
Gramps version: 2.1.98-0.SVN7332:7333
LANG: sv_SE.UTF-8
OS: Linux
Distribution: 2.6.12-1.1372_FC3
"

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Gramps-bugs mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-bugs

signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: "bug report"

Don Allingham
Stefan,

This looks like problem with our upgrade process. We upgraded the
addresses on people, but missed repositories. I'll see if I can fix
this.

Don

On Tue, 2006-10-03 at 09:00 +0200, Stefan Björk wrote:

> "User Information:
> ===================
>
> Trying to open a repository from the repository view by double-
> clicking. All but one repositories can be opened for editing.
>
> Database can not be exported to XML; it crashes with the same
> error message. Data can thus not be included (but I can send
> the entire database, PGP encrypted, if required).
>
> The repostiory that causes this error has the following values:
>
> Name: Svensk Arkivinformation (SVAR)
> ID: R0001
> Type: Archive
>
> The two only obvious things that differs from the other repositories
> (that does not cause this error) is that there are parenthesis in the
> name, and that this repository (as far as I know) has no source
> references to it.
>
>
> Error Details:
> ===================
>
> 16403: ERROR: gramps.py: line 147: Unhandled exception
> Traceback (most recent call last):
>   File "/home/stefan/garnome/share/gramps/PageView.py", line 759, in button_press
>     self.edit(obj)
>   File "/home/stefan/garnome/share/gramps/DataViews/_RepositoryView.py", line 228, in edit
>     repos = self.dbstate.db.get_repository_from_handle(handle)
>   File "/home/stefan/garnome/share/gramps/GrampsDb/_GrampsDbBase.py", line 743, in get_repository_from_handle
>     return self._get_from_handle(handle, Repository, self.repository_map)
>   File "/home/stefan/garnome/share/gramps/GrampsDb/_GrampsBSDDB.py", line 1247, in _get_from_handle
>     newobj.unserialize(data)
>   File "/home/stefan/garnome/share/gramps/RelLib/_Repository.py", line 74, in unserialize
>     AddressBase.unserialize(self,address_list)
>   File "/home/stefan/garnome/share/gramps/RelLib/_AddressBase.py", line 63, in unserialize
>     self.address_list = [Address().unserialize(item) for item in data]
>   File "/home/stefan/garnome/share/gramps/RelLib/_Address.py", line 66, in unserialize
>     (privacy, source_list, note, date, location) = data
> ValueError: too many values to unpack
>
>
> System Information:
> ===================
>
> Python version: 2.4.3 (#1, Sep 18 2006, 14:13:20) [GCC 3.4.4 20050721 (Red Hat 3.4.4-2)]
> Gramps version: 2.1.98-0.SVN7332:7333
> LANG: sv_SE.UTF-8
> OS: Linux
> Distribution: 2.6.12-1.1372_FC3
> "
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________ Gramps-bugs mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gramps-bugs

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Gramps-bugs mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-bugs

signature.asc (198 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: "bug report"

Stefan Björk
In reply to this post by Stefan Björk
I fixed this with a dirty hack:

>   File "/home/stefan/garnome/share/gramps/RelLib/_Address.py", line 66, in unserialize
>     (privacy, source_list, note, date, location) = data
> ValueError: too many values to unpack

The code above was changed to:

  (privacy, source_list, note, date, location) = data[0:5]

This naturally broke the location data of the repository, but since
there was only one repository with an address before the database
upgrade, I just edited that one by hand, and everything now works.

The original problem thus has something to do with the database upgrade
routines, I guess.

(I have some experience in programming, but I can't spell Python. This
was my best shot. :-))


Stefan

tis 2006-10-03 klockan 09:00 +0200 skrev Stefan Björk:

> "User Information:
> ===================
>
> Trying to open a repository from the repository view by double-
> clicking. All but one repositories can be opened for editing.
>
> Database can not be exported to XML; it crashes with the same
> error message. Data can thus not be included (but I can send
> the entire database, PGP encrypted, if required).
>
> The repostiory that causes this error has the following values:
>
> Name: Svensk Arkivinformation (SVAR)
> ID: R0001
> Type: Archive
>
> The two only obvious things that differs from the other repositories
> (that does not cause this error) is that there are parenthesis in the
> name, and that this repository (as far as I know) has no source
> references to it.
>
>
> Error Details:
> ===================
>
> 16403: ERROR: gramps.py: line 147: Unhandled exception
> Traceback (most recent call last):
>   File "/home/stefan/garnome/share/gramps/PageView.py", line 759, in button_press
>     self.edit(obj)
>   File "/home/stefan/garnome/share/gramps/DataViews/_RepositoryView.py", line 228, in edit
>     repos = self.dbstate.db.get_repository_from_handle(handle)
>   File "/home/stefan/garnome/share/gramps/GrampsDb/_GrampsDbBase.py", line 743, in get_repository_from_handle
>     return self._get_from_handle(handle, Repository, self.repository_map)
>   File "/home/stefan/garnome/share/gramps/GrampsDb/_GrampsBSDDB.py", line 1247, in _get_from_handle
>     newobj.unserialize(data)
>   File "/home/stefan/garnome/share/gramps/RelLib/_Repository.py", line 74, in unserialize
>     AddressBase.unserialize(self,address_list)
>   File "/home/stefan/garnome/share/gramps/RelLib/_AddressBase.py", line 63, in unserialize
>     self.address_list = [Address().unserialize(item) for item in data]
>   File "/home/stefan/garnome/share/gramps/RelLib/_Address.py", line 66, in unserialize
>     (privacy, source_list, note, date, location) = data
> ValueError: too many values to unpack
>
>
> System Information:
> ===================
>
> Python version: 2.4.3 (#1, Sep 18 2006, 14:13:20) [GCC 3.4.4 20050721 (Red Hat 3.4.4-2)]
> Gramps version: 2.1.98-0.SVN7332:7333
> LANG: sv_SE.UTF-8
> OS: Linux
> Distribution: 2.6.12-1.1372_FC3
> "

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Gramps-bugs mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-bugs

signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: "bug report"

Alex Roitman
In reply to this post by Don Allingham
Stefan,

On Tue, 2006-10-03 at 05:55 -0600, Don Allingham wrote:
> This looks like problem with our upgrade process. We upgraded the
> addresses on people, but missed repositories. I'll see if I can fix
> this.

The fix has been checked in. The databases created by the released
version of gramps will upgrade to the db version 11. The databases
(grdb) created by SVN code between 2.1.95 and now will need to
be discarded.

If you need the data, export to XML before updating from SVN.

Alex

--
Alexander Roitman   http://www.gramps-project.org

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Gramps-bugs mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-bugs

signature.asc (196 bytes) Download Attachment