tkluck / pyperler Goto Github PK
View Code? Open in Web Editor NEWUse perl scripts and libraries from Python
License: GNU General Public License v3.0
Use perl scripts and libraries from Python
License: GNU General Public License v3.0
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.
import pyperler; i = pyperler.Interpreter()
Table = i.use('Text::Table')
Traceback (most recent call last):
File "pyperler.pyx", line 720, in pyperler.PerlPackage.init
interpreter('use ' + name)
File "pyperler.pyx", line 606, in pyperler.Interpreter.call
return self._eval(expression, perl.G_SCALAR)
File "pyperler.pyx", line 592, in pyperler.Interpreter._eval
raise RuntimeError(perl.SvPVutf8_nolen(perl.ERRSV).decode())
RuntimeError: Can't locate Text/Table.pm in @inc (you may need to install the Text::Table module) (@inc contains: /usr/lib/perl5/5.30/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/5.30/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/5.30/core_perl /usr/share/perl5/core_perl) at (eval 8) line 1.
BEGIN failed--compilation aborted at (eval 8) line 1.
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'
A change (in the perl macros?) means that the generated C code does not compile anymore:
In file included from /usr/lib/x86_64-linux-gnu/perl/5.28/CORE/perl.h:5251,
from pyperler.h:21,
from pyperler.c:616:
pyperler.c: In function ‘__pyx_f_8pyperler_call_object’:
/usr/lib/x86_64-linux-gnu/perl/5.28/CORE/pp.h:81:19: error: expected ‘)’ before ‘sp’
81 | #define dSP SV **sp = PL_stack_sp
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.