Skip to content

Error while compiling "Could not find python" #40

@ggoebel

Description

@ggoebel

The Problem

Foo.rakumod:

use Bar;
use Baz;

Bar.rakumod

use Inline::Python;

Baz.rakumod

use Inline::Python;

and doing:

raku -I. -MFoo -e ''

results in

===SORRY!=== Error while compiling -e
===SORRY!=== Error while compiling /home/ggoebel/git/test/Foo.rakumod (Foo)
===SORRY!=== Error while compiling /home/ggoebel/git/test/Baz.rakumod (Baz)
Could not find python in:
    file#/home/ggoebel/git/test
    inst#/home/ggoebel/.raku
    inst#/home/ggoebel/raku/share/perl6/site
    inst#/home/ggoebel/raku/share/perl6/vendor
    inst#/home/ggoebel/raku/share/perl6/core
    ap#
    nqp#
    perl5#
at /home/ggoebel/git/test/Baz.rakumod (Baz):1

at /home/ggoebel/git/test/Foo.rakumod (Foo):2

at -e:1

Note: based on the number of files in the .precomp directory, precomp for Bar.rakumod appears to be successful. It is only the second "use Inline::Python" that results in an error. If after getting the error, I change the order of the use statements, then the code will compile (and precompile) without error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions