Re: (no subject)

Carlo Capelli <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <CABty9wwdOp7aMZ3vpHKxOBc=2Z63dCWz5jDGGAqpc5cUJHLrDw@mail.gmail.com>
Hi Wouter

I didn't noticed yesterday, but actually pack 'dirtree' was read from
github, but the structure was incorrect, cause the missing prolog folder.
Hence the (misleading) message


1 ?- pack_install(dirtree).

ERROR: directory `/home/carlo/lib/swipl/pack/dirtree' does not exist

2 ?- pack_install(dirtree).

Remove old installation in '/home/carlo/lib/swipl/pack/dirtree' Y/n?

ERROR: directory `/home/carlo/lib/swipl/pack/dirtree' does not exist

Now I've adjusted locally the structure, and after pushing it, I got it
correctly installed.


Many thanks !


bye Carlo


2013/8/31 Wouter Beek <[email protected]>

> Hi Carlo,
>
> In general Github should work for installing your Prolog packs. (This is
> not the case for ClioPatria packs which do require some form of access to a
> Git repository that is not (normally) allowed on Github repos.)
>
> There indeed was a problem with the cowspeak repo specifically: the repo
> name has to be the exact same as the Prolog pack name. I have changed the
> repo name on Github accordingly (case-sensitive, `C` -> `c`):
> ~~~
> [OLD] https://github.com/wouterbeek/Cowspeak.git
> [NEW] https://github.com/wouterbeek/cowspeak.git
> ~~~
>
> PS: Thanks for noting the pack guidelines! I've added the `prolog` subdir
> to bring cowspeak in line with them. I don't think the compressed archive
> is required, since `pack_install/1` operates on either archived files or
> Git repository URIs (but not both).
>
> ---
> Cheers!,
> Wouter.
>
> E-mail: [email protected]
> WWW: www.wouterbeek.com
> Tel.: 0647674624
>
>
> On Wed, Aug 28, 2013 at 11:20 PM, Carlo Capelli <[email protected]>wrote:
>
>> Hi all
>>
>> I was trying to use github to host a pack, without success.
>> I've seen that Wouter also hosted on github, indeed I get the same
>> errors...
>>
>>  6 ?- pack_install(cowspeak).
>>
>> % Contacting server at http://www.swi-prolog.org/pack/query ... ok
>>
>> Install [email protected] from https://github.com/wouterbeek/Cowspeak.gitY/n?
>>
>> ERROR: Unknown error term: archive_error(25,Unrecognized archive format)
>>
>>
>> then I tried to pass the git url
>>
>> 8 ?- pack_install('https://github.com/wouterbeek/Cowspeak.git').
>>
>> % Cloning into /home/carlo/lib/swipl/pack/Cowspeak...
>>
>> Verify package status (anonymously)
>>
>> at "http://www.swi-prolog.org/pack/query" Y/n?
>>
>> % Contacting server at http://www.swi-prolog.org/pack/query ... ok
>>
>> % "Cowspeak.git" was downloaded 2 times
>>
>> Package: Cowspeak
>>
>> Title: Cowspeak
>>
>> Installed version: 0.0.2
>>
>> Author: Wouter Beek <[email protected]>
>>
>> Maintainer: Wouter Beek <[email protected]>
>>
>> Packager: Wouter Beek <[email protected]>
>>
>> Home page: http://www.wouterbeek.com/cowspeak/
>>
>> Activate pack "Cowspeak" Y/n?
>>
>> ERROR: directory `/home/carlo/lib/swipl/pack/Cowspeak' does not exist
>>
>> Note that the repository doesn't follow the
>> guidelines<http://www.swi-prolog.org/howto/Pack.html>,
>> lacking a .tgz and a subdir
>>
>> I had the first error after trying to follow the guidelines (it appears
>> that in Downloads folder I get an xml file, kind of github descriptor, but
>> named as the compressed archive).
>>
>> Then I tried the second route, with similar problem.
>>
>> Should be my usual noobness with github...
>> Any hint ?
>>
>> TIA Carlo
>> -------------- next part --------------
>> HTML attachment scrubbed and removed
>> _______________________________________________
>> SWI-Prolog mailing list
>> [email protected]
>> https://lists.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog
>>
>>
>
-------------- next part --------------
HTML attachment scrubbed and removed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.