Thread: [sprog-users] Parse HTML Table Error - Debian
Status: Alpha
Brought to you by:
grantm
From: William O'H. <wil...@ut...> - 2005-07-06 15:43:24
|
I've been meaning to poke around on sprog since I read the article on O'Reilly, and the first thing I tried threw an error. I wanted to parse an HTML table, and I got an error that, at the root of the problem, was based on not having XML::LibXML installed. I am on Debian, and I did some poking, and installed these additional components: xml2 libxml-libxml-perl libxml2-dev Now that cog no longer throws the error. I think though, that the dependencies for the libsprog-perl should include libxml-libxml-perl, and maybe xml2. What does anyone else think? I'm no Debian guru but I have learnt a bit about how to get myself out of (and into, can't forget to mention into) trouble, and this was my first experiment with sprog. --=20 yours, William |
From: Grant M. <gr...@mc...> - 2005-07-06 19:20:44
|
Hi William Welcome to the list. On Wed, 2005-07-06 at 11:43 -0400, William O'Higgins wrote: > I've been meaning to poke around on sprog since I read the article on > O'Reilly, and the first thing I tried threw an error. To put it slightly differently, you had no problem installing Sprog or getting it to run and display the main application Window. But when you tried to add a specific gear to the workspace you got an error message. > I wanted to parse an HTML table, and I got an error that, at the root of > the problem, was based on not having XML::LibXML installed. Good diagnosis. > I am on Debian, and I did some poking, and installed these additional > components: xml2 libxml-libxml-perl libxml2-dev Actually, the libxml-libxml-perl was the only one that Sprog needed. > Now that cog no longer throws the error. I think though, that the > dependencies for the libsprog-perl should include libxml-libxml-perl, > and maybe xml2. What does anyone else think? I (perhaps optimistically) envisage that there will eventually be Sprog components for half the modules on CPAN. But, having to install half of CPAN just to get Sprog running would present quite a barrier to entry. So instead, my plan is to allow gear classes to declare dependencies. Then in the circumstance you described, Sprog would recognise which CPAN module was missing and would determine the corresponding package for your OS distribution through some mapping process. Instead of the current Perl compilation error, Sprog would pop up an alert dialog advising you that you needed to install the libxml-libxml-perl package. > I'm no Debian guru but I have learnt a bit about how to get myself out > of (and into, can't forget to mention into) trouble, and this was my first > experiment with sprog. And you passed the test with flying colours :-) Future versions of Sprog will be more supportive of adventurers such as yourself. We're still in the early stages of development. Thanks for your feedback. Grant |
From: William O'H. <wil...@ut...> - 2005-07-07 13:54:57
|
On Thu, Jul 07, 2005 at 07:20:27AM +1200, Grant McLean wrote: > >On Wed, 2005-07-06 at 11:43 -0400, William O'Higgins wrote:=20 >> I've been meaning to poke around on sprog since I read the article on >> O'Reilly, and the first thing I tried threw an error. > >To put it slightly differently, you had no problem installing Sprog or >getting it to run and display the main application Window. But when you >tried to add a specific gear to the workspace you got an error message.=20 Just like you said :-) >I (perhaps optimistically) envisage that there will eventually be Sprog >components for half the modules on CPAN. But, having to install half of >CPAN just to get Sprog running would present quite a barrier to entry. Good point, but perhaps the cogs supplied by default should be supported. >So instead, my plan is to allow gear classes to declare dependencies. >Then in the circumstance you described, Sprog would recognise which CPAN >module was missing and would determine the corresponding package for >your OS distribution through some mapping process. Instead of the >current Perl compilation error, Sprog would pop up an alert dialog >advising you that you needed to install the libxml-libxml-perl package. I'll take a look at the error codes and see if I can contribute a user-friendly "You appear to be missing $module_x" routine. Once there's a way to tell the user which module they need, than we can see about system-specific mappings to resolve those dependencies. One thing I am finding is that they cogs are not snapping together easily for me. Sometimes I just can't get them to pop together, and as earlier mentioned on the list, if I take a machine apart it does not go back together very easily (well, at all actually). I'll keep fiddling=20 with it and report anything repeatable. I definitely think that sprog is extremely neat, and hopefully I'll be able to meaningfully contribute. --=20 yours, William |
From: Ryan M. <mcc...@gm...> - 2005-07-07 19:24:29
|
... > One thing I am finding is that they cogs are not snapping together > easily for me. Sometimes I just can't get them to pop together, and as > earlier mentioned on the list, if I take a machine apart it does not go > back together very easily (well, at all actually). I'll keep fiddling > with it and report anything repeatable. >=20 The trick is to make sure that the top-right hand corner of the cog you want to drop onto your machine is inside the boundaries of the cog before it. > I definitely think that sprog is extremely neat, and hopefully I'll be > able to meaningfully contribute. > -- >=20 > yours, >=20 > William >=20 Ryan McCahan |
From: Grant M. <gr...@mc...> - 2005-07-07 20:44:27
|
On Thu, 2005-07-07 at 13:24 -0600, Ryan McCahan wrote: > ... > > One thing I am finding is that they cogs are not snapping together > > easily for me. > > The trick is to make sure that the top-right hand corner of the cog > you want to drop onto your machine is inside the boundaries of the cog > before it. Top left actually :-) Cheers Grant |
From: Ryan M. <mcc...@gm...> - 2005-07-07 21:02:45
|
On 7/7/05, Grant McLean <gr...@mc...> wrote: > On Thu, 2005-07-07 at 13:24 -0600, Ryan McCahan wrote: > > ... > > > One thing I am finding is that they cogs are not snapping together > > > easily for me. > > > > The trick is to make sure that the top-right hand corner of the cog > > you want to drop onto your machine is inside the boundaries of the cog > > before it. >=20 > Top left actually :-) Whoops... not so good with directions after I wake up. Ryan McCahan >=20 > Cheers > Grant >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by the 'Do More With Dual!' webinar happen= ing > July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual > core and dual graphics technology at this free one hour event hosted by H= P, > AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar > _______________________________________________ > sprog-users mailing list > spr...@li... > https://lists.sourceforge.net/lists/listinfo/sprog-users > |