Bug 1004092 - [abrt] zanata-python-client-1.3.13-2.fc19: project.py:45:__init__:TypeError: 'NoneType' object is not iterable
Summary: [abrt] zanata-python-client-1.3.13-2.fc19: project.py:45:__init__:TypeError: ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: zanata-python-client
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: anish
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:340290a245ae92edd6c78eab103...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-03 22:41 UTC by Ruediger Landmann
Modified: 2014-12-20 00:16 UTC (History)
5 users (show)

Fixed In Version: zanata-python-client-1.3.18-1.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-12-06 10:20:56 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.86 KB, text/plain)
2013-09-03 22:41 UTC, Ruediger Landmann
no flags Details
File: environ (3.99 KB, text/plain)
2013-09-03 22:41 UTC, Ruediger Landmann
no flags Details

Description Ruediger Landmann 2013-09-03 22:41:41 UTC
Description of problem:
Trying to run zanata pull, the client just crashed with a traceback.

Version-Release number of selected component:
zanata-python-client-1.3.13-2.fc19

Additional info:
reporter:       libreport-2.1.6
cmdline:        /usr/bin/python /usr/bin/zanata push --push-type source --disable-ssl-cert
executable:     /usr/bin/zanata
kernel:         3.10.9-200.fc19.x86_64
runlevel:       N 5
type:           Python
uid:            500

Truncated backtrace:
project.py:45:__init__:TypeError: 'NoneType' object is not iterable

Traceback (most recent call last):
  File "/usr/bin/zanata", line 25, in <module>
    zanata.run()
  File "/usr/lib/python2.7/site-packages/zanataclient/zanata.py", line 945, in run
    program_name=os.path.split(sys.argv[0])[1],
  File "/usr/lib/python2.7/site-packages/zanataclient/command.py", line 339, in handle_program
    command(command_options, args)
  File "/usr/lib/python2.7/site-packages/zanataclient/zanata.py", line 800, in push
    command.run(command_options, args)
  File "/usr/lib/python2.7/site-packages/zanataclient/pushcmd.py", line 383, in run
    zanatacmd.verify_project(project_id, version_id)
  File "/usr/lib/python2.7/site-packages/zanataclient/zanatacmd.py", line 103, in verify_project
    self.zanata_resource.projects.get(project_id)
  File "/usr/lib/python2.7/site-packages/zanataclient/zanatalib/projectservice.py", line 84, in get
    project = Project(server_return)
  File "/usr/lib/python2.7/site-packages/zanataclient/zanatalib/project.py", line 45, in __init__
    setattr(self, str(a), [Link(item) for item in b])
TypeError: 'NoneType' object is not iterable

Local variables in innermost frame:
a: u'links'
self: <zanataclient.zanatalib.project.Project object at 0x26d2710>
b: None
d: {u'status': u'ACTIVE', u'description': u'Publican styles for Red Hat-branded documents', u'links': None, u'name': u'publican-redhat', u'iterations': [{u'status': u'OBSOLETE', u'projectType': None, u'id': u'2', u'links': [{u'href': u'iterations/i/2', u'type': u'application/vnd.zanata.project.iteration+json', u'rel': u'self'}]}, {u'status': u'ACTIVE', u'projectType': u'Podir', u'id': u'3', u'links': [{u'href': u'iterations/i/3', u'type': u'application/vnd.zanata.project.iteration+json', u'rel': u'self'}]}], u'defaultType': None, u'id': u'publican-redhat', u'sourceViewURL': None, u'sourceCheckoutURL': None}

Comment 1 Ruediger Landmann 2013-09-03 22:41:45 UTC
Created attachment 793380 [details]
File: backtrace

Comment 2 Ruediger Landmann 2013-09-03 22:41:50 UTC
Created attachment 793381 [details]
File: environ

Comment 3 Sean Flanigan 2013-09-04 03:21:41 UTC
The zanata-python-client seems to make assumptions which no longer hold true when communicating with Zanata server 3.x.  (We no longer have anyone to maintain the upstream Python code, so we may have to decommission it soon.)

I recommend switching to the Java client "zanata-cli".  The options have slightly different names from zanata-python-client, but the built-in help (--help) is generally better, and it uses the same config files (zanata.ini and zanata.xml).

See http://zanata.org/help/help/cli/cli-install/ to get started.

(NB: The above page currently says that the Ivy client keeps itself up to date, but unfortunately that is not the case with the current version of the script.  The information should be fixed soon.)

Comment 4 Fedora Admin XMLRPC Client 2014-07-11 07:00:56 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 5 Fedora Update System 2014-09-11 06:05:13 UTC
zanata-python-client-1.3.15-1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/zanata-python-client-1.3.15-1.fc21

Comment 6 Fedora Update System 2014-09-11 06:05:26 UTC
zanata-python-client-1.3.15-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/zanata-python-client-1.3.15-1.fc20

Comment 7 Fedora Update System 2014-09-11 14:36:10 UTC
Package zanata-python-client-1.3.15-1.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing zanata-python-client-1.3.15-1.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-10665/zanata-python-client-1.3.15-1.fc21
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2014-09-19 10:22:52 UTC
zanata-python-client-1.3.16-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/zanata-python-client-1.3.16-1.fc20

Comment 9 Fedora Update System 2014-09-19 10:23:08 UTC
zanata-python-client-1.3.16-1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/zanata-python-client-1.3.16-1.fc21

Comment 10 Fedora Update System 2014-11-07 09:38:26 UTC
zanata-python-client-1.3.16-2.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/zanata-python-client-1.3.16-2.fc20

Comment 11 Fedora Update System 2014-11-07 09:38:45 UTC
zanata-python-client-1.3.16-2.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/zanata-python-client-1.3.16-2.fc21

Comment 12 Fedora Update System 2014-11-07 09:40:05 UTC
zanata-python-client-1.3.16-2.el7 has been submitted as an update for Fedora EPEL 7.
https://admin.fedoraproject.org/updates/zanata-python-client-1.3.16-2.el7

Comment 13 Fedora Update System 2014-12-03 07:57:19 UTC
zanata-python-client-1.3.18-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/zanata-python-client-1.3.18-1.fc20

Comment 14 Fedora Update System 2014-12-03 07:57:42 UTC
zanata-python-client-1.3.18-1.el7 has been submitted as an update for Fedora EPEL 7.
https://admin.fedoraproject.org/updates/zanata-python-client-1.3.18-1.el7

Comment 15 Fedora Update System 2014-12-03 07:58:04 UTC
zanata-python-client-1.3.18-1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/zanata-python-client-1.3.18-1.fc21

Comment 16 Fedora Update System 2014-12-06 10:20:56 UTC
zanata-python-client-1.3.16-2.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 17 Fedora Update System 2014-12-12 04:36:04 UTC
zanata-python-client-1.3.18-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 18 Fedora Update System 2014-12-13 09:45:25 UTC
zanata-python-client-1.3.18-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 19 Fedora Update System 2014-12-20 00:16:36 UTC
zanata-python-client-1.3.18-1.el7 has been pushed to the Fedora EPEL 7 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.