Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt to call undefined import method with arguments #167

Closed
eserte opened this issue Nov 18, 2023 · 1 comment · Fixed by #168
Closed

Attempt to call undefined import method with arguments #167

eserte opened this issue Nov 18, 2023 · 1 comment · Fixed by #168

Comments

@eserte
Copy link

eserte commented Nov 18, 2023

t/term.t fails with perl 5.39.1 and newer:

Attempt to call undefined import method with arguments ("iri") via package "Attean::RDF" (Perhaps you forgot to load the package?) at /home/e/eserte/.cpan/build/2023111808/Attean-0.033-0/blib/lib/Attean/SPARQLClient.pm line 58.
t/term-map.t ...................... ok
Attempt to call undefined import method with arguments ("iri") via package "Attean::RDF" (Perhaps you forgot to load the package?) at /home/e/eserte/.cpan/build/2023111808/Attean-0.033-0/blib/lib/Attean/SPARQLClient.pm line 58.

#   Failed test 'no (unexpected) warnings (via done_testing)'
#   at t/term.t line 117.
# Looks like you failed 1 test of 25.
t/term.t .......................... 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/25 subtests 

See also this overview of reports: http://matrix.cpantesters.org/?dist=Attean%200.033

@andk
Copy link

andk commented Nov 19, 2023

See also Perl/perl5#21269

zmughal added a commit to zmughal-contrib/attean that referenced this issue Mar 2, 2024
zmughal added a commit to zmughal-contrib/attean that referenced this issue Mar 10, 2024
Move the `Exporter::Tiny` setup before loading anything else so that the
`import()` is visible. Use `require` for `Attean` so that
`Attean->import()` is not called.

Fixes <kasei#167>.

See also <Perl/perl5#21269>.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants