Migrated from rt.cpan.org #131982
| Field |
Value |
| Status |
open |
| Priority |
0 |
| Created |
2020-02-26T16:32:04Z |
| Last Updated |
2021-07-09T07:53:21Z |
| Last Contact |
2021-07-09T07:53:20Z |
| Requestors |
vladimir |
Attachment links:
From vladimir on 2020-02-26T16:32:04Z:
From vladimir on 2020-02-26T16:37:09Z:
This command:
perl ../owl2soml.pl -voc schema schema.rdf > schema3.yaml
causes error "Read more bytes than requested. Do you use an encoding-related PerlIO layer? at C:/Strawberry/perl/vendor/lib/XML/LibXML.pm line 882", see LibXML-schema.rdf.err for the full log. This happens with `XML::LibXML` version 2.0132.
The script is https://github.com/VladimirAlexiev/soml/blob/master/owl2soml/owl2soml.pl
All referenced files (Alien-Build-MM_build.log, LibXML-schema.rdf.err, schema.rdf) are in https://github.com/VladimirAlexiev/soml/tree/master/owl2soml/eg
I tried to upgrade to the latest version 2.0202 (I use cygwin and Strawberry Perl) but got `Installing Alien::Build::MM failed`, see Alien-Build-MM_build.log for the full log.
From shlomif on 2020-02-27T12:10:19Z:
Hi Vladimir,
I don't see thr Alien*.log file anywhere in the git repo's history. Please provide it.
On Wed Feb 26 11:37:09 2020, vladimir wrote:
> This command:
>
> perl ../owl2soml.pl -voc schema schema.rdf > schema3.yaml
>
> causes error "Read more bytes than requested. Do you use an encoding-
> related PerlIO layer? at C:/Strawberry/perl/vendor/lib/XML/LibXML.pm
> line 882", see LibXML-schema.rdf.err for the full log. This happens
> with `XML::LibXML` version 2.0132.
>
> The script is
> https://github.com/VladimirAlexiev/soml/blob/master/owl2soml/owl2soml.pl
>
> All referenced files (Alien-Build-MM_build.log, LibXML-schema.rdf.err,
> schema.rdf) are in
> https://github.com/VladimirAlexiev/soml/tree/master/owl2soml/eg
>
> I tried to upgrade to the latest version 2.0202 (I use cygwin and
> Strawberry Perl) but got `Installing Alien::Build::MM failed`, see
> Alien-Build-MM_build.log for the full log.
From vladimir.alexiev on 2020-02-27T13:42:53Z:
Sorry!
https://github.com/VladimirAlexiev/soml/blob/master/owl2soml/eg/Alien-Build-MM_build.log
(guess
"log" is auto-ignored by github).
Do you need me to report the version of the libxml library as well? I'm on
cygwin.
Cheers!
From shlomif on 2020-02-27T13:58:00Z:
On Thu Feb 27 08:42:53 2020, vladimir.alexiev wrote:
> Sorry!
> https://github.com/VladimirAlexiev/soml/blob/master/owl2soml/eg/Alien-
> Build-MM_build.log
> (guess
> "log" is auto-ignored by github).
> Do you need me to report the version of the libxml library as well?
> I'm on
> cygwin.
>
> Cheers!
Thanks, reported here: https://github.com/Perl5-Alien/Alien-Build/issues/173 .
From vladimir on 2020-03-02T11:40:12Z:
I've upgraded to the latest `XML::LibXML` version 2.0202, but I still get error "Read more bytes than requested. Do you use an encoding-related PerlIO layer?" I tried with both of these commands, the result is the same.
perl ../owl2soml.pl -voc schema schema.rdf 2> LibXML-schema.rdf.err
perl -C ../owl2soml.pl -voc schema schema.rdf 2> LibXML-schema.rdf.err
The stack trace is attached. Note: I've removed stuff like this below, which is not related to the problem:
Subroutine spacepad redefined at C:/Strawberry/perl/site/lib/Debug/ShowStuff.pm line 1635.
(in cleanup) (in cleanup) at C:/Strawberry/perl/site/lib/URI/Namespace.pm line 104 during global destruction.
From vladimir on 2020-03-02T11:45:01Z:
> I tried with both of these commands, the result is the same.
>
> perl ../owl2soml.pl -voc schema schema.rdf 2> LibXML-schema.rdf.err
> perl -C ../owl2soml.pl -voc schema schema.rdf 2> LibXML-schema.rdf.err
Furthermore, I tried with and without env var PERL_UNICODE=31.
I checked "without" like this, which returns nothing:
perl -V|grep -i uni
From shlomif on 2020-03-06T10:25:12Z:
On Mon Mar 02 06:45:01 2020, vladimir wrote:
> > I tried with both of these commands, the result is the same.
> >
> > perl ../owl2soml.pl -voc schema schema.rdf 2> LibXML-schema.rdf.err
> > perl -C ../owl2soml.pl -voc schema schema.rdf 2> LibXML-schema.rdf.err
>
> Furthermore, I tried with and without env var PERL_UNICODE=31.
> I checked "without" like this, which returns nothing:
>
> perl -V|grep -i uni
Does the problem still happen? can you share a link to a reproducing code? See https://github.com/shlomif/how-to-share-code-online
From vladimir.alexiev on 2021-07-09T07:53:20Z:
Terribly sorry about the huge delay in following this up!
1. Upgraded to XML-LibXML-2.0207:
cpanm XML::LibXML
--> Working on XML::LibXML
Fetching
http://www.cpan.org/authors/id/S/SH/SHLOMIF/XML-LibXML-2.0207.tar.gz ... OK
==> Found dependencies: Alien::Libxml2
--> Working on Alien::Libxml2
Fetching
http://www.cpan.org/authors/id/P/PL/PLICEASE/Alien-Libxml2-0.17.tar.gz ...
OK
==> Found dependencies: Alien::Build::MM, Alien::Build,
Alien::Build::Plugin::Probe::Vcpkg
--> Working on Alien::Build::MM
Fetching
http://www.cpan.org/authors/id/P/PL/PLICEASE/Alien-Build-2.41.tar.gz ... OK
Configuring Alien-Build-2.41 ... OK
==> Found dependencies: Test2::V0
--> Working on Test2::V0
Fetching
http://www.cpan.org/authors/id/E/EX/EXODIST/Test2-Suite-0.000140.tar.gz ...
OK
Configuring Test2-Suite-0.000140 ... OK
==> Found dependencies: Term::Table, Test2::API
--> Working on Term::Table
Fetching http://www.cpan.org/authors/id/E/EX/EXODIST/Term-Table-0.015.tar.gz
... OK
Configuring Term-Table-0.015 ... OK
Building and testing Term-Table-0.015 ... OK
Successfully installed Term-Table-0.015 (upgraded from 0.012)
--> Working on Test2::API
Fetching
http://www.cpan.org/authors/id/E/EX/EXODIST/Test-Simple-1.302185.tar.gz ...
OK
Configuring Test-Simple-1.302185 ... OK
Building and testing Test-Simple-1.302185 ... OK
Successfully installed Test-Simple-1.302185 (upgraded from 1.302136)
Building and testing Test2-Suite-0.000140 ... OK
Successfully installed Test2-Suite-0.000140 (upgraded from 0.000114)
Building and testing Alien-Build-2.41 ... OK
Successfully installed Alien-Build-2.41 (upgraded from 2.08)
Configuring Alien-Libxml2-0.17 ... OK
Building and testing Alien-Libxml2-0.17 ... OK
Successfully installed Alien-Libxml2-0.17 (upgraded from 0.12)
Configuring XML-LibXML-2.0207 ... OK
Building and testing XML-LibXML-2.0207 ... OK
Successfully installed XML-LibXML-2.0207 (upgraded from 2.0202)
6 distributions installed
2. Reproduced like this:
cd soml/owl2soml/eg
perl ../owl2soml.pl -voc schema schema.rdf 2> LibXML-schema.rdf1.err
perl -C ../owl2soml.pl -voc schema schema.rdf 2> LibXML-schema.rdf2.err
set PERL_UNICODE=31
perl -V|grep -i uni
PERL_UNICODE="31"
perl ../owl2soml.pl -voc schema schema.rdf 2> LibXML-schema.rdf3.err
perl -C ../owl2soml.pl -voc schema schema.rdf 2> LibXML-schema.rdf4.err
The result is the same in all 4 cases.
Updated LibXML-schema.rdf.err in the repo (saved just one file)
3. Could please you reproduce by getting
https://github.com/VladimirAlexiev/soml and then repeating the steps above?
cd soml/owl2soml/eg
perl ../owl2soml.pl -voc schema schema.rdf 2> LibXML-schema.rdf1.err
If not then I can try to make a minimal reproducing code, but I'm not sure
how long that would take me...
Migrated from rt.cpan.org
#131982Attachment links:
From vladimir on 2020-02-26T16:32:04Z:
From vladimir on 2020-02-26T16:37:09Z:
From shlomif on 2020-02-27T12:10:19Z:
From vladimir.alexiev on 2020-02-27T13:42:53Z:
From shlomif on 2020-02-27T13:58:00Z:
From vladimir on 2020-03-02T11:40:12Z:
From vladimir on 2020-03-02T11:45:01Z:
From shlomif on 2020-03-06T10:25:12Z:
From vladimir.alexiev on 2021-07-09T07:53:20Z: