Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 182911 - dev-util/pida-0.4.4 needs kiwi's SVN version - Does not work with 1.9.14 (latest in portage)
Summary: dev-util/pida-0.4.4 needs kiwi's SVN version - Does not work with 1.9.14 (lat...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Rob Cakebread (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-22 17:24 UTC by Alberto Bertogli
Modified: 2007-07-05 17:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
kiwi-20070622.ebuild (kiwi-20070622.ebuild,897 bytes, text/plain)
2007-06-22 18:06 UTC, Rob Cakebread (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alberto Bertogli 2007-06-22 17:24:44 UTC
I installed pida 0.4.4 on my gentoo amd64 box, and kiwi 1.9.14, its dependency.

It fails when trying to create a new project.

After some time tracking the bug down and getting help from #pida, we found that
it needs the current SVN version (as of 22/June/2007). It has the same problem
both with kiwi 1.9.14 (latest in portage) and 1.9.15 (installed manually,
reusing the .14 ebuild, worked just fine).


Reproducible: Always
Comment 1 Rob Cakebread (RETIRED) gentoo-dev 2007-06-22 18:06:07 UTC
Created attachment 122827 [details]
kiwi-20070622.ebuild

Thanks Alberto. I've created an svn snapshot tarball and uploaded it to our mirrors. While that propagates, could you tell me if this fixes the problem and how I can test it? (What error message were you getting?)

Thanks
Comment 2 Alberto Bertogli 2007-06-22 18:41:51 UTC
(In reply to comment #1)
> Created an attachment (id=122827) [edit]
> kiwi-20070622.ebuild
> 
> Thanks Alberto. I've created an svn snapshot tarball and uploaded it to our
> mirrors. While that propagates, could you tell me if this fixes the problem and
> how I can test it? (What error message were you getting?)

The latest SVN fixes it (I used an ebuild created by somebody on #pida).

To reproduce it, I did:
  Project -> New project -> Type in a filename -> Create project

That would raise an exception that appears on a window. The exception was:

 File /usr/lib64/python2.5/site-packages/pida/services/projectmanager.py, line 319, in response
    self.cmd_edit()
  File /usr/lib64/python2.5/site-packages/pida/services/projectmanager.py, line 287, in cmd_edit
    self.__launch_editor(projects, current_project)
  File /usr/lib64/python2.5/site-packages/pida/services/projectmanager.py, line 254, in __launch_editor
    self._editview = self.create_view('ProjectEditor')
  File /usr/lib64/python2.5/site-packages/pida/core/views.py, line 20, in create_view
    prefix=viewname, **kw)
  File /usr/lib64/python2.5/site-packages/pida/pidagtk/contentview.py, line 89, in __init__
    self.init(**kw)
  File /usr/lib64/python2.5/site-packages/pida/services/projectmanager.py, line 140, in init
    self.pp = mg.create_single_observer(views.PropertyPage)
  File /usr/lib64/python2.5/site-packages/pida/model/model.py, line 454, in create_single_observer
    obs.set_model(self._current)
  File /usr/lib64/python2.5/site-packages/pida/model/views.py, line 238, in set_model
    model.__model_notify__()
  File /usr/lib64/python2.5/site-packages/pida/model/model.py, line 289, in __model_notify__
    self.__model_notify__(self.__model_dependents__[attr])
  File /usr/lib64/python2.5/site-packages/pida/model/model.py, line 285, in __model_notify__
    val = getattr(self, attr)
  File /usr/lib64/python2.5/site-packages/pida/core/project.py, line 294, in fget
    return self.__model_interpolate__(self.testing__command_base)
  File /usr/lib64/python2.5/site-packages/pida/model/model.py, line 329, in __model_interpolate__
    return t.substitute(self.__model_get_interpolation_attrs__())
  File /usr/lib64/python2.5/string.py, line 170, in substitute
    return self.pattern.sub(convert, self.template)
TypeError: expected string or buffer


The problem is "t" is a string.Template which gets created by giving it a
string. The problem is sometimes the code gives it kiwi.ValueUnset which
causes the exception (that probably comes from a higher level, I didn't follow
the code).

If you need any additional information, please let me know.

Thanks,
  Alberto
Comment 3 Rob Cakebread (RETIRED) gentoo-dev 2007-07-05 17:52:18 UTC
I've added pida 0.5 to portage and the latest version of kiwi and dropped 0.4.4  since it still had a few bug reports open upstream that won't be fixed since 0.5 is a core re-write.

I tested the project menu in 0.5 and it works fine with the new kiwi (although its not the same dialog as 0.4.4)