?- pack_install('http://julio.diegidio.name/Projects/Nan.Numerics.Prime/Prolog/nan_numerics_prime-1.1.zip').
ERROR: I/O error in read on stream <stream>(0434C8A8) (Invalid argument)
ERROR: In:
ERROR: [12] setup_call_catcher_cleanup(prolog_pack: ...,prolog_pack: ...,exit,prolog_pack: ...)
ERROR: [10] prolog_pack:pack_install_from_url(http,'http://julio.diegidio.name/Projects/Nan.Numerics.Prime/Prolog/nan_numerics_prime-1.1.zip','c:/program files (x86)/swipl/pack',nan_numerics_prime,[...|...]) at c:/program files (x86)/swipl/library/prolog_pack.pl:796
?- pack_install(nan_numerics_prime).% Contacting server at http://www.swi-prolog.org/pack/query ... ok
Install nan_numerics_prime@1.1 from http://julio.diegidio.name/Projects/Nan.Numerics.Prime/Prolog/nan_numerics_prime-1.1.zip Y/n?
ERROR: I/O error in read on stream <stream>(0434CE00) (Invalid argument)
ERROR: In:
ERROR: [12] setup_call_catcher_cleanup(prolog_pack: ...,prolog_pack: ...,exit,prolog_pack: ...)
ERROR: [10] prolog_pack:pack_install_from_url(http,'http://julio.diegidio.name/Projects/Nan.Numerics.Prime/Prolog/nan_numerics_prime-1.1.zip','c:/program files (x86)/swipl/pack',nan_numerics_prime,[...|...]) at c:/program files (x86)/swipl/library/prolog_pack.pl:796
On 08/26/2016 03:13 AM, Julio Di Egidio wrote:
> Hello all,
>
> I was having a problem installing a pack to the SWI repository.
>
> After updating the code to version 1.1 and playing some more with
> installing it, not only I still cannot get the new version to SWI
> repository,
> now I cannot even install the old version, 1.0, that is there!
>
> Here are the errors:
>
> |
> ?-pack_install('http://julio.diegidio.name/Projects/Nan.Numerics.Prime/Prolog/nan_numerics_prime-1.1.zip').
> ERROR:I/O error inread on stream <stream>(0434C8A8)(Invalidargument)
> ERROR:In:
> ERROR:
> [12]setup_call_catcher_cleanup(prolog_pack:...,prolog_pack:...,exit,prolog_pack:...)
> ERROR:
> [10]prolog_pack:pack_install_from_url(http,'http://julio.diegidio.name/Projects/Nan.Numerics.Prime/Prolog/nan_numerics_prime-1.1.zip','c:/program
> files (x86)/swipl/pack',nan_numerics_prime,[...|...])at c:/program files
> (x86)/swipl/library/prolog_pack.pl:796
>
> ?-pack_install(nan_numerics_prime).%Contactingserver at
> http://www.swi-prolog.org/pack/query
> <http://www.swi-prolog.org/pack/query>... ok
> Installnan_numerics_prime@1.1
> <mailto:nan_numer...@1.1>fromhttp://julio.diegidio.name/Projects/Nan.Numerics.Prime/Prolog/nan_numerics_prime-1.1.zip
> <http://julio.diegidio.name/Projects/Nan.Numerics.Prime/Prolog/nan_numerics_prime-1.1.zip>Y/n?
>
> ERROR:I/O error inread on stream <stream>(0434CE00)(Invalidargument)
> ERROR:In:
> ERROR:
> [12]setup_call_catcher_cleanup(prolog_pack:...,prolog_pack:...,exit,prolog_pack:...)
> ERROR:
> [10]prolog_pack:pack_install_from_url(http,'http://julio.diegidio.name/Projects/Nan.Numerics.Prime/Prolog/nan_numerics_prime-1.1.zip','c:/program
> files (x86)/swipl/pack',nan_numerics_prime,[...|...])at c:/program files
> (x86)/swipl/library/prolog_pack.pl:796
> |
>
> Note that in the second call, despite the pack shown on the SWI site
> is at version 1.0, it is trying to install version 1.1 already.
>
> As explained in the other thread, the .zip file is downloaded successfully
> (and I have verified that there is no problem with it with
> library(archive)),
> then the pack folder is created, but finally the install errors and the pack
> folder remains empty.
The error location doesn't match my source. Which version are you
using?
Installation from a URL just downloads the data from the URL
and then calls the installation predicate that is also used for local
archives. It shouldn't be too hard to step through the process and
find out what is going wrong. It works here, so I can't debug it.
pack_install_from_url(Scheme, URL, PackTopDir, Pack, Options) :-
...
setup_call_cleanup(
http_open(URL, In,
[ cert_verify_hook(ssl_verify)
]),
setup_call_cleanup(
open(DownloadFile, write, Out, [type(binary)]),
% originally was: copy_stream_data(In, Out),
(format('## File: ~w~n## Stream (out): ~w~n', [DownloadFile, Out]), trace, copy_stream_data(In, Out)),
close(Out)),
close(In)),
....
pack_install_from_local(DownloadFile, PackTopDir, Pack, Options).
?- pack_install(nan_numerics_prime).
% Contacting server at http://www.swi-prolog.org/pack/query ... ok
Install nan_numerics_prime@1.1 from http://julio.diegidio.name/Projects/Nan.Numerics.Prime/Prolog/nan_numerics_prime-1.1.zip Y/n?
## File: c:/program files (x86)/swipl/pack/Downloads/nan_numerics_prime-1.1.zip
## Stream (out): <stream>(044D2418)
Call: (16) copy_stream_data(<stream>(044D22E8,044D2380), <stream>(044D2418)) ? creep
Exit: (16) copy_stream_data(<stream>(044D22E8,044D2380), <stream>(044D2418)) ? creep
Call: (16) close(<stream>(044D2418)) ? creep
Exit: (16) close(<stream>(044D2418)) ? creep
Call: (14) close(<stream>(044D22E8,044D2380)) ? creep
Exception: (14) close(<stream>(044D22E8,044D2380)) ? creep
ERROR: I/O error in read on stream <stream>(044D22E8) (Invalid argument)
ERROR: In:
ERROR: [12] setup_call_catcher_cleanup('<garbage_collected>',prolog_pack: ...,exit,prolog_pack: ...)
ERROR: [10] prolog_pack:pack_install_from_url(http,'http://julio.diegidio.name/Projects/Nan.Numerics.Prime/Prolog/nan_numerics_prime-1.1.zip','c:/program files (x86)/swipl/pack',nan_numerics_prime,[...|...]) at c:/program files (x86)/swipl/library/prolog_pack.pl:796
On Friday, August 26, 2016 at 3:13:13 AM UTC+2, Julio Di Egidio wrote:
Hello all,I was having a problem installing a pack to the SWI repository.
From the somewhat more detailed trace it looks like the download
failed. You claim the file is there. If it is there and complete, it
might be that the final handshake to close the SSL connection and
socket failed somewhere. You've got all the source, you even claimed
to know OpenSSL at some point, so do your thing.
another version, this time with with the download URL pointing to releases on GutHub...
During the last year, whenever rudeness occurred on this mailing list,
the single common denominator was you.
Rather, I formally point out and complain against *your reiterated ad hominem*, while you certainly get into my kill file, troll.
Every comment on your behaviour is by definition ad hominem.
Interestingly enough, you "argue" ad hominem regularly: [1][2][3] (on
the swi list) [4][5][6][7] (on the sci.logic list). Offensive behaviour
might be accepted in sci.logic, but at least I will not accept this
here. Whenever you are out of line, I will remind you of it.
[1] https://groups.google.com/d/msg/swi-prolog/t5zD-e2oyGo/hEr4h7zHBwAJ
[2] https://groups.google.com/d/msg/swi-prolog/t5zD-e2oyGo/72T7TbrRBwAJ
[3] https://groups.google.com/d/msg/swi-prolog/V_GVNXHrcNs/-X_83neqBgAJ
[4] https://groups.google.com/d/msg/sci.logic/JpaOgoI3TFU/tHudIJAZ-jMJ
[5] https://groups.google.com/d/msg/sci.logic/JpaOgoI3TFU/iHUv1N_xeeUJ
[6] https://groups.google.com/d/msg/sci.logic/NZujoA-BoYE/vj1PswsCRG0J
[7] https://groups.google.com/d/msg/sci.logic/ujBpaRKt6VM/UlNBtlLjBAAJ
On 08/30/2016 07:02 PM, Julio Di Egidio wrote:
> On Tuesday, August 30, 2016 at 8:32:01 AM UTC+2, martin.riener wrote:
>
> During the last year, whenever rudeness occurred on this mailing list,
> the single common denominator was you.
>
> Martin Reiner, if that is your name, discussions happen and: 1) I was
> not rude, 2) you better learn what collaboration even means.
>
> Rather, I formally point out and complain against *your reiterated ad
> hominem*, while you certainly get into my kill file, troll.
>
> Therefore, before accusing others
> of an unacceptable attitude, you should work on your own.
>
> A small hint: contributing to a project still doesn't give you the
> right
> to offend people. Offending those whom you depend upon is even more
> counterproductive.
>