Bug 656769 - [abrt] fedora-business-cards-0.2.4.2-3.fc12: generate.py:46:gen_front:AttributeError: 'NoneType' object has no attribute 'appendChild'
Summary: [abrt] fedora-business-cards-0.2.4.2-3.fc12: generate.py:46:gen_front:Attribu...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: fedora-business-cards
Version: 13
Hardware: i686
OS: Linux
low
medium
Target Milestone: ---
Assignee: Ian Weller
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:8b47094c
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-24 03:34 UTC by Ivelin Djantov
Modified: 2010-12-09 21:59 UTC (History)
2 users (show)

Fixed In Version: fedora-business-cards-0.2.4.3-1.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-12-09 21:58:41 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (979 bytes, text/plain)
2010-11-24 03:34 UTC, Ivelin Djantov
no flags Details

Description Ivelin Djantov 2010-11-24 03:34:02 UTC
abrt version: 1.1.13
architecture: i686
cmdline: /usr/bin/python /usr/bin/fedora-business-cards --template=europe
component: fedora-business-cards
executable: /usr/bin/fedora-business-cards
kernel: 2.6.34.7-61.fc13.i686
package: fedora-business-cards-0.2.4.2-3.fc12
reason: generate.py:46:gen_front:AttributeError: 'NoneType' object has no attribute 'appendChild'
release: Fedora release 13 (Goddard)
time: 1290569496
uid: 500

backtrace
-----
generate.py:46:gen_front:AttributeError: 'NoneType' object has no attribute 'appendChild'

Traceback (most recent call last):
  File "/usr/bin/fedora-business-cards", line 29, in <module>
    cmdline.main()
  File "/usr/lib/python2.6/site-packages/fedora_business_cards/frontend/cmdline.py", line 152, in main
    xml = generate.gen_front(name, title, lines, frontloc)
  File "/usr/lib/python2.6/site-packages/fedora_business_cards/generate.py", line 46, in gen_front
    namenode.appendChild(dom.createTextNode(name))
AttributeError: 'NoneType' object has no attribute 'appendChild'

Local variables in innermost frame:
name: 'Ivelin Krasimirov Dzhantov'
title: 'Fedora Project Contributor'
dom: <xml.dom.minidom.Document instance at 0x9d4a10c>
lines: ['ifo', '(919) 424-0063 x 5149902', 'Acidcore on irc.freenode.net', 'fedoraproject.org', '', 'GPG key ID: 255D78C0']
namenode: None
template_loc: '/usr/share/fedora-business-cards/templates/front-europe.svg'

Comment 1 Ivelin Djantov 2010-11-24 03:34:05 UTC
Created attachment 462518 [details]
File: backtrace

Comment 2 Ian Weller 2010-11-24 19:38:09 UTC
At first glance this seems like a problem with the front-europe.svg template. CCing the person who created that. Can't look at this in depth until next week though.

Comment 3 Dr. Tilmann Bubeck 2010-11-30 09:57:34 UTC
I'm willing tpo support. However, it is hard to reproduce, because the official rpm from fedora (up to 14) does not include my patch for european formats. It is already in git upstreams but hasn't found the way to fedora yet.

Newertheless I took the current git and tried to reproduce your problem:

-bash-4.1$ cd /tmp/fedora-business-cards/
-bash-4.1$ ls
config.ini             fedora-business-cards       MANIFEST.in  templates
COPYING                fedora-business-cards.spec  pavement.py
fedora_business_cards  INSTALL                     README
-bash-4.1$ ./fedora-business-cards -c config.ini --template=europe
Login to FAS:
Username: bubeck
Password:
Current business card layout:
   +-------------------------------------------------------------+
 n | Dr. Tilmann Bubeck                                          |
 t | Fedora Project Contributor                                  |
   |                                                             |
 0 | bubeck                                    |
 1 | (919) 424-0063 x 5120486                                    |
 2 | bubeck on irc.freenode.net                                  |
 3 | fedoraproject.org                                           |
 4 |                                                             |
 5 | GPG key ID: 0x3FAFA70C                                      |
   |                                                             |
   |                                                             |
   | fedora                 freedom | friends | features | first |
   +-------------------------------------------------------------+
Enter a line number to edit, or [y] to accept: y
Generating front... Generating back... Done.
-bash-4.1$

... as you can see, there was no such error (on Fedora 14). I haven't tried on FC12.

So I suggest to wait for an update of fedora-business-cards including my patch and then reavalute.

Comment 4 Ian Weller 2010-11-30 18:49:09 UTC
(In reply to comment #3)
> So I suggest to wait for an update of fedora-business-cards including my patch
> and then reavalute.

Which is definitely something I need to get done. I think I'll do that now, we'll see if it helps.

Comment 5 Fedora Update System 2010-12-01 03:40:40 UTC
fedora-business-cards-0.2.4.3-1.fc13 has been submitted as an update for Fedora 13.
https://admin.fedoraproject.org/updates/fedora-business-cards-0.2.4.3-1.fc13

Comment 6 Fedora Update System 2010-12-01 03:40:47 UTC
fedora-business-cards-0.2.4.3-1.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/fedora-business-cards-0.2.4.3-1.fc14

Comment 7 Dr. Tilmann Bubeck 2010-12-01 07:16:23 UTC
Ian, thanks for accepting the patch and releasing the new version.

Ivelin, I tried Ian's new version and did not receive your bug. I did:

root# yum update http://kojipkgs.fedoraproject.org/packages/fedora-business-cards/0.2.4.3/1.fc14/noarch/fedora-business-cards-0.2.4.3-1.fc14.noarch.rpm --nogpgcheck
user% fedora-business-cards --list-templates
Available templates:
  northamerica (North America)
  overnightprints (OvernightPrints.com (1/16" bleed))
  europe (Europe (85mm x 55mm))
[bubeck@loeffel3 Dokumente]$ fedora-business-cards --template=europe
Login to FAS:
Username: bubeck
Password: 
Current business card layout:
   +-------------------------------------------------------------+
 n | Dr. Tilmann Bubeck                                          |
 t | Fedora Project Contributor                                  |
   |                                                             |
 0 | bubeck                                    |
 1 | (919) 424-0063 x 5120486                                    |
 2 | bubeck on irc.freenode.net                                  |
 3 | fedoraproject.org                                           |
 4 |                                                             |
 5 | GPG key ID: 0x3FAFA70C                                      |
   |                                                             |
   |                                                             |
   | fedora                 freedom | friends | features | first |
   +-------------------------------------------------------------+
Enter a line number to edit, or [y] to accept: y
Generating front... Generating back... Done.
user%

nothing wrong. Could you please update your RPM and try to reproduce the bug?

Thanks!
 Till

Comment 8 Ian Weller 2010-12-01 07:37:08 UTC
(Would you mind submitting positive feedback in Bodhi if it works for you?) :)

Comment 9 Ivelin Djantov 2010-12-01 09:14:06 UTC
It works perfect now, thank you so much! :)
I didn't understand where do I submit positive feedback?

Comment 10 Ivelin Djantov 2010-12-01 09:15:56 UTC
I found bodhi.

Comment 11 Ivelin Djantov 2010-12-01 09:19:40 UTC
Although I can't find anythind about fedora-business-cards there.

Comment 12 Ian Weller 2010-12-01 16:12:53 UTC
(In reply to comment #11)
> Although I can't find anythind about fedora-business-cards there.

Click the link for either comment 5 or comment 6, depending on whether you use F13 or F14. If you have a FAS account, click log in on the left sidebar. Then use the comment box at the bottom of the page, and click the appropriate "works for me" or "broken" or whatever buttons. :)

Comment 13 Fedora Update System 2010-12-01 21:54:58 UTC
fedora-business-cards-0.2.4.3-1.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update fedora-business-cards'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/fedora-business-cards-0.2.4.3-1.fc14

Comment 14 Fedora Update System 2010-12-09 21:58:36 UTC
fedora-business-cards-0.2.4.3-1.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 15 Fedora Update System 2010-12-09 21:59:06 UTC
fedora-business-cards-0.2.4.3-1.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.