I worked in Gramps 4.2, and suddenly it stopped and a window opened and says:578237: ERROR: grampsapp.py

Bug #1490636 reported by François Xavier SINNIGER
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gramps (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Here are the details of this bug.
I use Ubuntu 14.04 and gramps 4.2.0.

578237: ERROR: grampsapp.py: line 107: Unhandled exception
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/gramps/gui/viewmanager.py", line 1272, in quick_backup
    for media in self.dbstate.db.iter_media_objects():
  File "/usr/lib/python3/dist-packages/gramps/gen/db/read.py", line 1216, in g
    with curs_(self) as cursor:
  File "/usr/lib/python3/dist-packages/gramps/gen/db/read.py", line 523, in get_media_cursor
    return self.get_cursor(self.media_map, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/gramps/gen/db/read.py", line 495, in get_cursor
    return DbReadCursor(table, self.txn)
  File "/usr/lib/python3/dist-packages/gramps/gen/db/read.py", line 182, in __init__
    self.cursor = source.db.cursor(txn)
AttributeError: 'dict' object has no attribute 'db'

Revision history for this message
Ross Gammon (rosco2) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. However, Gramps 4.2.0 has not been released in Ubuntu yet, so you are not using the version of Gramps provided by Ubuntu for Trusty 14.04 (Gramps 4.0.3). This bug should really be reported to the place where you obtained the software (probably from the Gramps project itself: https://gramps-project.org/bugs/my_view_page.php).

Anyway, in order to reproduce the bug, it would be useful to know what steps lead up to the exception. Was this the first time you had opened this database in 4.2.0? What did you click (if anything) just before it happened?

Changed in gramps (Ubuntu):
status: New → Incomplete
Revision history for this message
François Xavier SINNIGER (fxsinniger) wrote : Re: [Bug 1490636] Re: I worked in Gramps 4.2, and suddenly it stopped and a window opened and says:578237: ERROR: grampsapp.py

Thank you for your fast answer.
I worked for not a long time with gramps 4.99 and after gramps 4.03
versions. Then I wanted to upgrade the 4.03 version because when I changed
from computer I worked with windows 7 an 8 (I precise that I disposed in
withe 7-8 windows the gramps 4.2.01). I wanted to have the same version
with ubuntu and the two windows versions.But I have lost the postal codes
of the title places since 4 weeks about when I passed with the gramps 4.2.
Today I began to copy again the postal codes in the titleplaces and I was
surprised to the bug.

François Xavier Sinniger

2015-08-31 19:26 GMT+02:00 Ross Gammon <email address hidden>:

> Thank you for taking the time to report this bug and helping to make
> Ubuntu better. However, Gramps 4.2.0 has not been released in Ubuntu
> yet, so you are not using the version of Gramps provided by Ubuntu for
> Trusty 14.04 (Gramps 4.0.3). This bug should really be reported to the
> place where you obtained the software (probably from the Gramps project
> itself: https://gramps-project.org/bugs/my_view_page.php).
>
> Anyway, in order to reproduce the bug, it would be useful to know what
> steps lead up to the exception. Was this the first time you had opened
> this database in 4.2.0? What did you click (if anything) just before it
> happened?
>
>
> ** Changed in: gramps (Ubuntu)
> Status: New => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1490636
>
> Title:
> I worked in Gramps 4.2, and suddenly it stopped and a window opened
> and says:578237: ERROR: grampsapp.py
>
> Status in gramps package in Ubuntu:
> Incomplete
>
> Bug description:
> Here are the details of this bug.
> I use Ubuntu 14.04 and gramps 4.2.0.
>
> 578237: ERROR: grampsapp.py: line 107: Unhandled exception
> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/gramps/gui/viewmanager.py", line
> 1272, in quick_backup
> for media in self.dbstate.db.iter_media_objects():
> File "/usr/lib/python3/dist-packages/gramps/gen/db/read.py", line
> 1216, in g
> with curs_(self) as cursor:
> File "/usr/lib/python3/dist-packages/gramps/gen/db/read.py", line 523,
> in get_media_cursor
> return self.get_cursor(self.media_map, *args, **kwargs)
> File "/usr/lib/python3/dist-packages/gramps/gen/db/read.py", line 495,
> in get_cursor
> return DbReadCursor(table, self.txn)
> File "/usr/lib/python3/dist-packages/gramps/gen/db/read.py", line 182,
> in __init__
> self.cursor = source.db.cursor(txn)
> AttributeError: 'dict' object has no attribute 'db'
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/gramps/+bug/1490636/+subscriptions
>

--
François Xavier SINNIGER

Revision history for this message
Ross Gammon (rosco2) wrote :

I just tried Gramps 4.2.0 in my Debian sid VM, and I can add post codes (numerical & with text characters) to the Example database without troubles.

Can you post the result of $ gramps -v here (just to record the versions of all the dependencies you have in Trusty, and to see what locale you are running)?

Revision history for this message
François Xavier SINNIGER (fxsinniger) wrote :

Perhaps I have no understand what you asked me about $ gramps and what
concerns the dependencies of Trusty (ubuntu 14.04).
But I have uploaded an XML package of another tree.
You'll find maybe the details of this version.
Today I have worked in the AIO64-4.2.01 version of gramps in the windows 7,
because I use a dualboot beetwen ubuntu 14.04 and windows 7. The risk of a
bug seems less big.
When I returned in the gramps 4.2 in ubuntu 14.04, the way of the media was
impossible to upload AIO64-42.01 gramps XML package.

François Xavier Sinniger

PS: here is the copied data of 4.2 version;
Gramps
(Genealogical Research and Analysis Management Programming System)
est un logiciel de généalogie.

GRAMPS: 4.2.0
Python: 3.4.3 (default, Jul 28 2015, 18:20:59) [...
BSDDB: 6.0.1 (5, 3, 28)
LANG: fr_FR.UTF-8
OS: Linux
Distribution: 3.13.0-38-generic

2015-09-01 17:37 GMT+02:00 Ross Gammon <email address hidden>:

> I just tried Gramps 4.2.0 in my Debian sid VM, and I can add post codes
> (numerical & with text characters) to the Example database without
> troubles.
>
> Can you post the result of $ gramps -v here (just to record the versions
> of all the dependencies you have in Trusty, and to see what locale you
> are running)?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1490636
>
> Title:
> I worked in Gramps 4.2, and suddenly it stopped and a window opened
> and says:578237: ERROR: grampsapp.py
>
> Status in gramps package in Ubuntu:
> Incomplete
>
> Bug description:
> Here are the details of this bug.
> I use Ubuntu 14.04 and gramps 4.2.0.
>
> 578237: ERROR: grampsapp.py: line 107: Unhandled exception
> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/gramps/gui/viewmanager.py", line
> 1272, in quick_backup
> for media in self.dbstate.db.iter_media_objects():
> File "/usr/lib/python3/dist-packages/gramps/gen/db/read.py", line
> 1216, in g
> with curs_(self) as cursor:
> File "/usr/lib/python3/dist-packages/gramps/gen/db/read.py", line 523,
> in get_media_cursor
> return self.get_cursor(self.media_map, *args, **kwargs)
> File "/usr/lib/python3/dist-packages/gramps/gen/db/read.py", line 495,
> in get_cursor
> return DbReadCursor(table, self.txn)
> File "/usr/lib/python3/dist-packages/gramps/gen/db/read.py", line 182,
> in __init__
> self.cursor = source.db.cursor(txn)
> AttributeError: 'dict' object has no attribute 'db'
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/gramps/+bug/1490636/+subscriptions
>

--
François Xavier SINNIGER

Revision history for this message
Ross Gammon (rosco2) wrote :

Thanks very much for the gramps file. That will make it much easier to test.

Could you please post the whole output from $ gramps -v?

The reason is that version 4.2.0 of Gramps only supports GTK 3.10 or greater, and pygobject 3.12 or greater. I am not 100% sure, but from the traceback there may be issues with the graphical interface (gtk), or it could be to do with the database.

Revision history for this message
François Xavier SINNIGER (fxsinniger) wrote :

Yes it is absolutely true and a window tels me in french that I may have
the django version 1.3 or greater or the django addon.
But I don't have these versions in dependencies of trusty and in the debian
dependencies.
Le 1 sept. 2015 21:01, "Ross Gammon" <email address hidden> a écrit :

> Thanks very much for the gramps file. That will make it much easier to
> test.
>
> Could you please post the whole output from $ gramps -v?
>
> The reason is that version 4.2.0 of Gramps only supports GTK 3.10 or
> greater, and pygobject 3.12 or greater. I am not 100% sure, but from the
> traceback there may be issues with the graphical interface (gtk), or it
> could be to do with the database.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1490636
>
> Title:
> I worked in Gramps 4.2, and suddenly it stopped and a window opened
> and says:578237: ERROR: grampsapp.py
>
> Status in gramps package in Ubuntu:
> Incomplete
>
> Bug description:
> Here are the details of this bug.
> I use Ubuntu 14.04 and gramps 4.2.0.
>
> 578237: ERROR: grampsapp.py: line 107: Unhandled exception
> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/gramps/gui/viewmanager.py", line
> 1272, in quick_backup
> for media in self.dbstate.db.iter_media_objects():
> File "/usr/lib/python3/dist-packages/gramps/gen/db/read.py", line
> 1216, in g
> with curs_(self) as cursor:
> File "/usr/lib/python3/dist-packages/gramps/gen/db/read.py", line 523,
> in get_media_cursor
> return self.get_cursor(self.media_map, *args, **kwargs)
> File "/usr/lib/python3/dist-packages/gramps/gen/db/read.py", line 495,
> in get_cursor
> return DbReadCursor(table, self.txn)
> File "/usr/lib/python3/dist-packages/gramps/gen/db/read.py", line 182,
> in __init__
> self.cursor = source.db.cursor(txn)
> AttributeError: 'dict' object has no attribute 'db'
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/gramps/+bug/1490636/+subscriptions
>

Revision history for this message
Ross Gammon (rosco2) wrote :

This confirms that you have installed the version of Gramps from the Gramps Project and not the version in Ubuntu Wily, because in Debian and Ubuntu we do not require that Django is installed yet. That is for the Gramps Webapp which is not quite ready for mass use yet.

I need to know what versions of gtk and pygobject you are using. Could you please post the complete output of the command "gramps -v"?

Revision history for this message
François Xavier SINNIGER (fxsinniger) wrote :
Download full text (3.2 KiB)

Good Morning,

Here is the output of the command "gramps -v" you asked me yesterday:

franravel@franravel-Aspire-M1200-3200-5200:~$ gramps -v
.gramps.gen.utils.grampslocale.WARNING: ICU not loaded because No module
named 'PyICU'. Localization will be impaired. Use your package manager to
install PyICU
Gramps Settings:
----------------
 python : 3.4.3
 gramps : 4.2.0
 gtk++ : 3.10.8
 pygobject : 3.12.0
 pango : 1.36.3
 bsddb : 6.0.1
 bsddb.db : 5.3.28
 cairo : 1.13.1
 pycairo : 1.10.0
 osmgpsmap : 1.0
 GExiv2 : 0.10
 ICU : not found
 PyICU : not found
 o.s. : linux
 kernel : 3.13.0-38-generic

Environment settings:
---------------------
 LANG : fr_FR.UTF-8
 LANGUAGE : fr
 GRAMPSI18N: not set
 GRAMPSHOME: not set
 GRAMPSDIR : not set
 PYTHONPATH:
    /usr/lib/python3/dist-packages/gramps
    /usr/bin
    /usr/lib/python3.4
    /usr/lib/python3.4/plat-x86_64-linux-gnu
    /usr/lib/python3.4/lib-dynload
    /usr/local/lib/python3.4/dist-packages
    /usr/lib/python3/dist-packages

Non-python dependencies:
------------------------
 Graphviz : 2.36
 Ghostscr. : 9.10

System PATH env variable:
-------------------------
     /usr/local/sbin
     /usr/local/bin
     /usr/sbin
     /usr/bin
     /sbin
     /bin
     /usr/games
     /usr/local/games

franravel@franravel-Aspire-M1200-3200-5200:~$

2015-09-01 22:01 GMT+02:00 Ross Gammon <email address hidden>:

> This confirms that you have installed the version of Gramps from the
> Gramps Project and not the version in Ubuntu Wily, because in Debian and
> Ubuntu we do not require that Django is installed yet. That is for the
> Gramps Webapp which is not quite ready for mass use yet.
>
> I need to know what versions of gtk and pygobject you are using. Could
> you please post the complete output of the command "gramps -v"?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1490636
>
> Title:
> I worked in Gramps 4.2, and suddenly it stopped and a window opened
> and says:578237: ERROR: grampsapp.py
>
> Status in gramps package in Ubuntu:
> Incomplete
>
> Bug description:
> Here are the details of this bug.
> I use Ubuntu 14.04 and gramps 4.2.0.
>
> 578237: ERROR: grampsapp.py: line 107: Unhandled exception
> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/gramps/gui/viewmanager.py", line
> 1272, in quick_backup
> for media in self.dbstate.db.iter_media_objects():
> File "/usr/lib/python3/dist-packages/gramps/gen/db/read.py", line
> 1216, in g
> with curs_(self) as cursor:
> File "/usr/lib/python3/dist-packages/gramps/gen/db/read.py", line 523,
> in get_media_cursor
> return self.get_cursor(self.media_map, *args, **kwargs)
> File "/usr/lib/python3/dist-packages/gramps/gen/db/read.py", line 495,
> in get_cursor
> return DbReadCursor(table, self.txn)
> File "/usr/lib/python3/dist-packages/gramps/gen/db/read.py", line 182,
> in __init__
> self.cursor = source.db.cursor(txn)
> AttributeError: 'dict' object has no attribute 'db'
>
> To manage notifications about this bug go to:
>
> https://bu...

Read more...

Revision history for this message
François Xavier SINNIGER (fxsinniger) wrote :
Download full text (4.2 KiB)

I have just downloaded from the trusty dependencies, ptthon3-pyicu-dbg-,
python-pyicu, python-pyicu-dbg.
Then I have launched again the terminal command "gramps -v".
I obtain now this result:

franravel@franravel-Aspire-M1200-3200-5200:~$ gramps v
Essai d'ouverture de : v ...
ATTENTION : le greffon Participants n'a pas de traduction pour vos langues
configurées, utilisation de l'anglais américain.
2015-09-02 09:46:42.076: WARNING: _manager.py: line 279: Plugin error (from
'ImportDjango'): No module named 'gramps.webapp'
franravel@franravel-Aspire-M1200-3200-5200:~$

(translation: try to open "v"
WARNING: There is no translation for the participating graft in your
configured languages, please use americain-english).

2015-09-02 9:37 GMT+02:00 François Xavier SINNIGER <email address hidden>:

> Good Morning,
>
> Here is the output of the command "gramps -v" you asked me yesterday:
>
> franravel@franravel-Aspire-M1200-3200-5200:~$ gramps -v
> .gramps.gen.utils.grampslocale.WARNING: ICU not loaded because No module
> named 'PyICU'. Localization will be impaired. Use your package manager to
> install PyICU
> Gramps Settings:
> ----------------
> python : 3.4.3
> gramps : 4.2.0
> gtk++ : 3.10.8
> pygobject : 3.12.0
> pango : 1.36.3
> bsddb : 6.0.1
> bsddb.db : 5.3.28
> cairo : 1.13.1
> pycairo : 1.10.0
> osmgpsmap : 1.0
> GExiv2 : 0.10
> ICU : not found
> PyICU : not found
> o.s. : linux
> kernel : 3.13.0-38-generic
>
> Environment settings:
> ---------------------
> LANG : fr_FR.UTF-8
> LANGUAGE : fr
> GRAMPSI18N: not set
> GRAMPSHOME: not set
> GRAMPSDIR : not set
> PYTHONPATH:
> /usr/lib/python3/dist-packages/gramps
> /usr/bin
> /usr/lib/python3.4
> /usr/lib/python3.4/plat-x86_64-linux-gnu
> /usr/lib/python3.4/lib-dynload
> /usr/local/lib/python3.4/dist-packages
> /usr/lib/python3/dist-packages
>
> Non-python dependencies:
> ------------------------
> Graphviz : 2.36
> Ghostscr. : 9.10
>
> System PATH env variable:
> -------------------------
> /usr/local/sbin
> /usr/local/bin
> /usr/sbin
> /usr/bin
> /sbin
> /bin
> /usr/games
> /usr/local/games
>
> franravel@franravel-Aspire-M1200-3200-5200:~$
>
>
>
> 2015-09-01 22:01 GMT+02:00 Ross Gammon <email address hidden>:
>
>> This confirms that you have installed the version of Gramps from the
>> Gramps Project and not the version in Ubuntu Wily, because in Debian and
>> Ubuntu we do not require that Django is installed yet. That is for the
>> Gramps Webapp which is not quite ready for mass use yet.
>>
>> I need to know what versions of gtk and pygobject you are using. Could
>> you please post the complete output of the command "gramps -v"?
>>
>> --
>> You received this bug notification because you are subscribed to the bug
>> report.
>> https://bugs.launchpad.net/bugs/1490636
>>
>> Title:
>> I worked in Gramps 4.2, and suddenly it stopped and a window opened
>> and says:578237: ERROR: grampsapp.py
>>
>> Status in gramps package in Ubuntu:
>> Incomplete
>>
>> Bug description:
>> Here are the details of this bug.
>> I use Ubuntu 14.04 and gramps 4.2...

Read more...

Revision history for this message
Ross Gammon (rosco2) wrote :

Hi François,

Thank you very much for taking the time to report this, but I am closing this bug as it does not seem to be a bug.

Please note that in your last comment, you appeared to be typing "gramps v" instead of "gramps -v".

Gramps 4.2.0 is about to be released with the new Ubuntu Wily (15.10), so feel free to purge all your copies of Gramps and upgrade to the latest Ubuntu and reinstall Gramps.

Otherwise, if you prefer to stick with 10.04 and install the latest versions of Gramps directly from the Gramps Project, then please report any bugs there:
https://gramps-project.org/bugs/view_all_bug_page.php

Regards,

Ross

Changed in gramps (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.