Closed ByReaL closed 4 years ago
Thanks for reporting! I'm assuming you're using Python 3? It looks like the field msg
on a RuntimeError
has been replaced by a tuple args
. I'll update the code and add a test.
While I'm at it, I'll set PYTHON=python3
by default in the Makefile
as that's a bit overdue. Expect both these changes hopefully soon.
I know I can install Table and move on but I see this problem AttributeError: 'RuntimeError' object has no attribute 'message' I tried to modify the code and instead of e.message to use e.msg and few other fixes but I was not able to fix on my own.
https://www.python.org/dev/peps/pep-0352/
[pyperler]# python Python 3.8.1 (default, Dec 21 2019, 20:57:38) [GCC 9.2.0] on linux Type "help", "copyright", "credits" or "license" for more information.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "", line 1, in
File "pyperler.pyx", line 660, in pyperler.Interpreter.getattribute.perl_package_constructor
return PerlPackage(self, *args, **kwds)
File "pyperler.pyx", line 722, in pyperler.PerlPackage.init
raise ImportError("Could not import Perl package %s: %s" % (self._name, e.msg))
AttributeError: 'RuntimeError' object has no attribute 'message'