Auto Parsing code crashes

Bug #1348785 reported by Raj Reddy
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
PyBindGen
New
Undecided
Unassigned

Bug Description

Hi..

I am working for an open source platform BRLCAD and our aim is to create python binding for a large library in cpp.

However while using PyBindGen we come across a bug.

Traceback is as follows

Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "/home/raj/.local/lib/python2.7/site-packages/pybindgen/gccxmlparser.py", line 598, in parse
    pygen_classifier, gccxml_options)
  File "/home/raj/.local/lib/python2.7/site-packages/pybindgen/gccxmlparser.py", line 693, in parse_init
    self.gccxml_config = parser.config_t(**gccxml_options)
AttributeError: 'module' object has no attribute 'config_t'

And the code is placed here https://github.com/raj12lnm/TryPyBindGen

So, apparently it seems there is a method missing to the class ModuleParser. On checking the file gccxmlparser.py I could confirm this. Please help us fix the bug.

Thanks

Raj.
(GSoC Student)
IRC : raj12lnm on freenode

Revision history for this message
Raj Reddy (kraj-reddy) wrote :

I have looked at the code and found that the reason being a deperacated library symbol.

https://github.com/gccxml/pygccxml/blob/e0e3857b27f0b0628eaf73d0519db76cd7b555ef/docs/history/history.rst

Can I help create a patch for this ?

Revision history for this message
qubit (zugder) wrote :

Hi Raj,

I'm trying to make use of pybindgen and stubled into the same issue. Obviious options are to (1) downgrade pygccxml to v.1.5.2 or (2) to patch pybindgen.

Have you managed to update pybindgen to fix the issue? If you have, could you please share this: tarball, code repo, patch file ... whatever is more convenient for you.

Thanks in advance!

Revision history for this message
Raj Reddy (kraj-reddy) wrote : Re: [Bug 1348785] Re: Auto Parsing code crashes

Hi..

Just downgrade pygccxml to 1.0 it will work.
On 18 Aug 2014 19:11, "qubit" <email address hidden> wrote:

> Hi Raj,
>
> I'm trying to make use of pybindgen and stubled into the same issue.
> Obviious options are to (1) downgrade pygccxml to v.1.5.2 or (2) to
> patch pybindgen.
>
> Have you managed to update pybindgen to fix the issue? If you have,
> could you please share this: tarball, code repo, patch file ... whatever
> is more convenient for you.
>
> Thanks in advance!
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1348785
>
> Title:
> Auto Parsing code crashes
>
> Status in Python Bindings Generator:
> New
>
> Bug description:
> Hi..
>
> I am working for an open source platform BRLCAD and our aim is to
> create python binding for a large library in cpp.
>
> However while using PyBindGen we come across a bug.
>
> Traceback is as follows
>
> Traceback (most recent call last):
> File "<input>", line 1, in <module>
> File
> "/home/raj/.local/lib/python2.7/site-packages/pybindgen/gccxmlparser.py",
> line 598, in parse
> pygen_classifier, gccxml_options)
> File
> "/home/raj/.local/lib/python2.7/site-packages/pybindgen/gccxmlparser.py",
> line 693, in parse_init
> self.gccxml_config = parser.config_t(**gccxml_options)
> AttributeError: 'module' object has no attribute 'config_t'
>
>
> And the code is placed here https://github.com/raj12lnm/TryPyBindGen
>
> So, apparently it seems there is a method missing to the class
> ModuleParser. On checking the file gccxmlparser.py I could confirm
> this. Please help us fix the bug.
>
> Thanks
>
> Raj.
> (GSoC Student)
> IRC : raj12lnm on freenode
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/pybindgen/+bug/1348785/+subscriptions
>

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.