#1 building pygccxml

closed
Roman
None
5
2009-03-18
2008-11-19
Robert Boehne
No

I'm no noob, but I have not been able to build pygccxml-1.0.0 - I'm running python 2.4 on Solaris 10.

The errors below look like python 2.6 syntax, but according to http://www.language-binding.net/pygccxml/pygccxml.html the python version it has been tested with is 2.4 & 2.5.
I'd like to try out Py++ to generate boost::python bindings for C++ libraries that I currently hand-craft, but other than try older versions I'm at a loss for what to try next.

skipping byte-compilation of /home/titan/robertb/lib/python/pygccxml/msvc/common_utils.py to common_utils.pyc
byte-compiling /home/titan/robertb/lib/python/pygccxml/msvc/config.py to config.pyc
File "/home/titan/robertb/lib/python/pygccxml/msvc/config.py", line 4
from .. import utils
^
SyntaxError: invalid syntax
skipping byte-compilation of /home/titan/robertb/lib/python/pygccxml/msvc/__init__.py to __init__.pyc
byte-compiling /home/titan/robertb/lib/python/pygccxml/msvc/bsc/c_wrapper.py to c_wrapper.pyc
File "/home/titan/robertb/lib/python/pygccxml/msvc/bsc/c_wrapper.py", line 14
from .. import config as msvc_cfg
^
SyntaxError: invalid syntax
byte-compiling /home/titan/robertb/lib/python/pygccxml/msvc/bsc/__init__.py to __init__.pyc
File "/home/titan/robertb/lib/python/pygccxml/msvc/bsc/__init__.py", line 5
from .. import common_utils as msvc_utils
^
SyntaxError: invalid syntax
byte-compiling /home/titan/robertb/lib/python/pygccxml/msvc/pdb/enums.py to enums.pyc
File "/home/titan/robertb/lib/python/pygccxml/msvc/pdb/enums.py", line 1
from ... import utils #import utils from pygccxml package
^
SyntaxError: invalid syntax
byte-compiling /home/titan/robertb/lib/python/pygccxml/msvc/pdb/impl_details.py to impl_details.pyc
File "/home/titan/robertb/lib/python/pygccxml/msvc/pdb/impl_details.py", line 1
from . import enums
^
SyntaxError: invalid syntax
byte-compiling /home/titan/robertb/lib/python/pygccxml/msvc/pdb/loader.py to loader.pyc
File "/home/titan/robertb/lib/python/pygccxml/msvc/pdb/loader.py", line 12
from . import enums
^
SyntaxError: invalid syntax
byte-compiling /home/titan/robertb/lib/python/pygccxml/msvc/pdb/__init__.py to __init__.pyc
File "/home/titan/robertb/lib/python/pygccxml/msvc/pdb/__init__.py", line 9
from . import impl_details
^
SyntaxError: invalid syntax
skipping byte-compilation of /home/titan/robertb/lib/python/pygccxml/utils/fs_utils.py to fs_utils.pyc
skipping byte-compilation of /home/titan/robertb/lib/python/pygccxml/utils/__init__.py to __init__.pyc
udesktop18:/home/titan/robertb/pygccxml-1.0.0 $

Discussion

  • Robert Boehne
    Robert Boehne
    2008-11-19

    From the "history" web page for pygccxml:

    4. The recomended GCC-XML version to use with this release is CVS revision 123. This revision introduces small, but very important feature. GCC-XML started to dump artificial declarations (constructor, destructor, operator=). pygccxml.declarations.type_traits functions were updated to use the new information.

    Perhaps a CVS tag would be a better way to identify a version in CVS, I can't make heads or tails of "revision 123." There do not appear to be any tags that might correspond to it in the repository. I'm going to try HEAD, unless the roadblock on my other project breaks through...

     
  • Roman
    Roman
    2009-01-21

    I am sorry for such late response. I removed all relative imports and now code should work with Python 2.4.

    Thanks for reporting this.

     
  • Roman
    Roman
    2009-01-21

    • assigned_to: nobody --> roman_yakovenko
    • status: open --> pending
     
    • status: pending --> closed
     
  • This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).