Bug 413895

Summary: libzypp-bindings examples are outdated (10.3): remove or update
Product: [openSUSE] openSUSE 11.1 Reporter: Pavol Rusnak <prusnak>
Component: libzyppAssignee: E-mail List <zypp-maintainers>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Enhancement    
Priority: P3 - Medium CC: forgotten_0RO3Kla3Ru, kkaempf, nderkach
Version: Factory   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Pavol Rusnak 2008-08-01 11:42:17 UTC
After fixing bug#391831 i was finally able to import zypp module into python. When I try to run examples from examples/python directory I encounter this error:

$ ./list_resolvables.py 
Traceback (most recent call last):
  File "./list_resolvables.py", line 7, in <module>
    Z.addResolvables( Z.target().resolvables(), True );
  File "/usr/lib64/python2.5/site-packages/zypp.py", line 2267, in <lambda>
    __getattr__ = lambda self, name: _swig_getattr(self, ZYpp_Ptr, name)
  File "/usr/lib64/python2.5/site-packages/zypp.py", line 34, in _swig_getattr
    raise AttributeError,name
AttributeError: addResolvables

It seems that this symbol is somehow not exported.
Comment 1 Michael Andres 2008-08-01 12:58:09 UTC
The examples are outdated. This is how it was done before 11.0. I guess currently only the C++ code provides valid documentation.

Comment 2 Klaus Kämpf 2008-08-04 11:13:59 UTC
I'll have a look
Comment 3 Forgotten User 0RO3Kla3Ru 2008-08-07 09:04:47 UTC
are you sure the libzypp c++ example works ?!?!

tnx!
Comment 4 Klaus Kämpf 2008-08-07 13:56:33 UTC
libzypp-bindings compile again for svn:head
Comment 5 Pavol Rusnak 2009-08-03 15:52:54 UTC
Probably fixed, please reopen if not.