[pypy-dev] cppyy_backend logging issue

Ivan Stepanov ivanstepanovftw at gmail.com
Wed Oct 24 15:46:10 EDT 2018

cppyy doesn't work propertly.

Traceback (most recent call last):
"/usr/lib/python3.7/site-packages/cppyy_backend/_cppyy_generator.py", line
692, in main
    mapping = g.create_mapping(args.sources)
"/usr/lib/python3.7/site-packages/cppyy_backend/_cppyy_generator.py", line
214, in create_mapping
    file_info = self.create_file_mapping(h_file)
"/usr/lib/python3.7/site-packages/cppyy_backend/_cppyy_generator.py", line
244, in create_file_mapping
    logger.log(m * diag.severity + c, "While parsing: {}".format(msg))
  File "/usr/lib/python3.7/logging/__init__.py", line 1395, in log
    raise TypeError("level must be an integer")
TypeError: level must be an integer

System info:
Manjaro (Arch linux)
Python 3.7.0
CPyCppyy 1.3.6
cppyy 1.2.4
cppyy-backend 1.4.2

Possible solution:
in file cppyy_backend/_cppyy_generator.py:
-    logger.log(m * diag.severity + c, "While parsing: {}".format(msg))
+    logger.log(int(m * diag.severity + c), "While parsing: {}".format(msg))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20181024/558ce34a/attachment.html>

More information about the pypy-dev mailing list