From mboxrd@z Thu Jan 1 00:00:00 1970 From: Catonano Subject: squee Date: Mon, 17 Apr 2017 11:35:10 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114b0e5a020624054d5982df Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56358) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d033z-0006lR-2J for help-guix@gnu.org; Mon, 17 Apr 2017 05:35:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d033x-0003jQ-Ru for help-guix@gnu.org; Mon, 17 Apr 2017 05:35:15 -0400 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix , guile-user@gnu.org --001a114b0e5a020624054d5982df Content-Type: text/plain; charset=UTF-8 I'm not sure i this is for the guix-help ml or for the guile-users ml I'll move this to the appropriate place, if you will indicate it to me. Thanks. On my GuixSD system, I'm trying to get my feet wet with cwebber's squee https://notabug.org/cwebber/guile-squee I have this line (define conn (connect-to-postgres-paramstring "dbname=tryton user=postgres")) then, in the REPL, I try scheme@(squee)> conn and I get $4 = ././././squee.scm:131:29: In procedure #: ././././squee.scm:131:29: In procedure unwrap-pg-conn: Wrong type argument: Error while printing exception. Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. Of course I get this same exception also if I try to run a query, with the same connection Previously, I changed this line (define libpq (dynamic-link "libpq")) to (define libpq (dynamic-link "/gnu/store/0fqfm833m1g3603l0vifbzg6kqaqad24-postgresql-9.5.6/lib/libpq.so")) that's the postgres that's installed in my profile But there are 3 more postgreses in my store ~$ ls /gnu/store/ | grep postgresql [...] 0fqfm833m1g3603l0vifbzg6kqaqad24-postgresql-9.5.6/ [...] 5x35az6lbi7y0zd4z45b7kv1qp67aqac-postgresql-9.5.6/ [...] dwbscplq276xzcfzryda7g5097p23974-postgresql-9.5.6/ [...] hmdqm7xvshlf6ljwck77nap821jzg677-postgresql-9.5.6/ I don't know why. I have configured my system with a postgresql service running. Maybe the service is using a different package form the one installed in my profile ? I don't know And what about the other 2 postgreses ? Anyway, about my my screech with squee: Is it because I'm linking incorrectly to the postgres library ? Or is this because the code is not fresh (last edit was "one year ago") ? Thanks in advance --001a114b0e5a020624054d5982df Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I'm not sure i this is for the guix-help ml = or for the guile-users ml

I'll move this to the appro= priate place, if you will indicate it to me. Thanks.

On my GuixSD system, I'm trying to get my feet wet with cwebber's= squee
https://notab= ug.org/cwebber/guile-squee

I have this line
=
(define conn (connect-to-postgres-paramstring "dbname=3Dtryton us= er=3Dpostgres"))

then, in the REPL, I try

sch= eme@(squee)> conn

and I get

$4 =3D ././././squee.scm:131:= 29: In procedure #<procedure 1998560 at ././././squee.scm:129:2 (pg-conn= port)>:
././././squee.scm:131:29: In procedure unwrap-pg-conn: Wrong= type argument: Error while printing exception.

Entering a new promp= t.=C2=A0 Type `,bt' for a backtrace or `,q' to continue.
<= div>
Of course I get this same exception also if I try to run= a query, with the same connection

Previously, I ch= anged this line
(define libpq (dynamic-link "libpq"))
=
to
(define libpq (dynamic-link "/gnu/store/0fqfm833m= 1g3603l0vifbzg6kqaqad24-postgresql-9.5.6/lib/libpq.so"))

=
that's the postgres that's installed in my profile

But there are 3 more postgreses in my store

~$ ls /gnu/store/= | grep postgresql
[...]
0fqfm833m1g3603l0vifbzg6kqaqad24-postgresql-= 9.5.6/
[...]
5x35az6lbi7y0zd4z45b7kv1qp67aqac-postgresql-9.5.6/
[.= ..]
dwbscplq276xzcfzryda7g5097p23974-postgresql-9.5.6/
[...]
hmdqm= 7xvshlf6ljwck77nap821jzg677-postgresql-9.5.6/

I don't= know why. I have configured my system with a postgresql service running. M= aybe the service is using a different package form the one installed in my = profile ?

I don't know

And what abo= ut the other 2 postgreses ?

Anyway, about my my screech w= ith squee: Is it because I'm linking incorrectly to the postgres librar= y ?

Or is this because the code is not fresh (last edit = was "one year ago") ?

Thanks in advance
--001a114b0e5a020624054d5982df-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Catonano Subject: Re: squee Date: Tue, 18 Apr 2017 14:53:22 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114a4c8692b812054d706434 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32981) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0SdI-0000vY-Sq for help-guix@gnu.org; Tue, 18 Apr 2017 08:53:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d0SdI-0004vx-85 for help-guix@gnu.org; Tue, 18 Apr 2017 08:53:24 -0400 In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix , guile-user@gnu.org --001a114a4c8692b812054d706434 Content-Type: text/plain; charset=UTF-8 Ok, I was just confused, it works like a charm Sorry for the noise --001a114a4c8692b812054d706434 Content-Type: text/html; charset=UTF-8
Ok, I was just confused, it works like a charm

Sorry for the noise


--001a114a4c8692b812054d706434-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Allan Webber Subject: Re: squee Date: Tue, 18 Apr 2017 14:48:56 -0500 Message-ID: <87shl5zec7.fsf@dustycloud.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42783) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0Z7b-0007ne-0k for help-guix@gnu.org; Tue, 18 Apr 2017 15:49:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d0Z7a-0007IH-CR for help-guix@gnu.org; Tue, 18 Apr 2017 15:49:07 -0400 In-reply-to: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Catonano Cc: guile-user@gnu.org, help-guix Catonano writes: > Ok, I was just confused, it works like a charm > > Sorry for the noise Ah! No worries about the noise. I'm happy to see someone using squee. It hasn't gotten much love in the last couple of years. I intend to return to using it in the not too distant future. If you're interested in working on improvements to it we should talk. In particular we need help on code that converts between postgres types and guile native types more, I think. David Pirotte also has commit access and can help make decisions on the project. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Catonano Subject: Re: squee Date: Wed, 19 Apr 2017 04:32:07 +0200 Message-ID: References: <87shl5zec7.fsf@dustycloud.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114a4c86b4377d054d7bd458 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38346) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0fPe-0001w6-V0 for help-guix@gnu.org; Tue, 18 Apr 2017 22:32:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d0fPd-0002lg-O6 for help-guix@gnu.org; Tue, 18 Apr 2017 22:32:10 -0400 In-Reply-To: <87shl5zec7.fsf@dustycloud.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Christopher Allan Webber Cc: guile-user@gnu.org, help-guix --001a114a4c86b4377d054d7bd458 Content-Type: text/plain; charset=UTF-8 Chris, thanks for your reply, usually Gmail makes messages aimed to me rather than to some mailing list more evident It didn't, in this case, so I missed your reply for a few hours. Gmail is supposed to use wisdom, in its choices :-/ 2017-04-18 21:48 GMT+02:00 Christopher Allan Webber : > > Ah! No worries about the noise. I'm happy to see someone using squee. > > It hasn't gotten much love in the last couple of years. I intend to > return to using it in the not too distant future. If you're interested > in working on improvements to it we should talk. Ok. For now I'd like to use it to populate a database of mine. Then, we'll see > In particular we need > help on code that converts between postgres types and guile native types > more, I think Yes, I read your TODO.org file. Admittedly I don't understand some of the suggestions you give in that file Maybe because I didn't explore your code yet Also I didn't skim through the C library you're using. So I didn't see the Postgres types table that you mention I just tested the connection and executed one query, to be sure that it was working correctly So, let's do like this: I'll use it a bit in the next few days, then I'll be able to be more accurate Thanks ! --001a114a4c86b4377d054d7bd458 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Chris,

thanks for your reply, = usually Gmail makes messages aimed to me rather than to some mailing list m= ore evident

It didn't, in this case, so I missed your repl= y for a few hours.

Gmail is supposed to use wisdom, in its cho= ices :-/

2017-04-18 21:48 GMT+02:00 Christopher Allan Webber <cwebber@dustycloud.org>:

Ah!=C2=A0 No worries about the noise.=C2=A0 I'm happy to see som= eone using squee.

It hasn't gotten much love in the last couple of years.=C2=A0 I intend = to
return to using it in the not too distant future.=C2=A0 If you're inter= ested
in working on improvements to it we should talk.=C2=A0
Ok. For now I'd like to use it to populate a database of m= ine.
Then, we'll see
=C2=A0
In particular we need
help on code that converts between postgres types and guile native types more, I think

Yes, I read your TODO.org fil= e.
Admittedly I don't understand some of the suggestions = you give in that file

Maybe because I didn't explore= your code yet
Also I didn't skim through the C= library you're using.
So I didn't see the Postgres types = table that you mention

I just tested the connection and execut= ed one query, to be sure that it was working correctly

<= div class=3D"gmail_quote">So, let's do like this: I'll use=C2=A0 it= a bit in the next few days, then I'll be able to be more accurate
=

Thank= s !
--001a114a4c86b4377d054d7bd458--