Coder Social home page Coder Social logo

pyperler's People

Contributors

tkluck avatar tkluck-booking avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

byreal

pyperler's Issues

AttributeError: 'RuntimeError' object has no attribute 'message'

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'

Does not build because the perl XS macros don't work anymore

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.