CastXML / pygccxml

pygccxml is a specialized XML reader that reads the output from CastXML or GCCXML. It provides a simple framework to navigate C++ declarations, using Python classes.
Boost Software License 1.0
129 stars 44 forks source link

fails to run under python 3.8 #113

Closed fischercer closed 3 years ago

fischercer commented 4 years ago

When I try to use pygccxml under python 3.8 on Manjaro I get the following error:

...
    declarations = parser.read_files(files, compilation_mode)
  File "/usr/lib/python3.8/site-packages/pygccxml/parser/project_reader.py", line 264, in read_files
    return self.__parse_file_by_file(files)
  File "/usr/lib/python3.8/site-packages/pygccxml/parser/project_reader.py", line 319, in __parse_file_by_file
    start_time = time.clock()
AttributeError: module 'time' has no attribute 'clock'

The clock method was removed in Python 3.8 as it was deprecated since python 3.3. Therefore, this issues arises.

drekeuk commented 4 years ago

We are also hitting this issue using Python 3.8. It looks like this issue is resolved in the develop branch when do you expect to merge into master and make a new release?

tomhenderson commented 4 years ago

I can confirm that develop branch currently works for the ns-3 project and Python 3.8 (tested on Ubuntu 20.04).

iMichka commented 4 years ago

I am working on updating the build pipelines https://github.com/gccxml/pygccxml/pull/112. Once this is done I will do a final review and try to tag a new release.

billhoffman commented 4 years ago

Is there a status on this?

sumagnadas commented 4 years ago

When is a new version coming out?

iMichka commented 3 years ago

Soon. I am currently reviewing the last issues. This one is fixed on develop so I'll close it.