Re: [racket-users] Contract error when installing Gregor

2015-11-05 Thread 'William J. Bowman' via users-redirect
On Tue, Nov 03, 2015 at 06:59:15PM -0500, Jon Zeppieri wrote:
> I think it's far more likely to be a bug in my detection code.
> 
> So, your /etc/localtime should be a symlink. What path does it point
> to? And, in particular, is the path that it points to absolute or
> relative?
> On my system, I have:
>/etc/localtime -> /usr/share/zoneinfo/America/New_York
Ah turns out: /etc/localtime -> ../usr/share/zoneinfo/America/New_York

Which is a little weird, although I guess it's technically correct.

Anyway, your fixes worked on my system; no more contract errors.

-- 
William J. Bowman

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: PGP signature


Re: [racket-users] Contract error when installing Gregor

2015-11-04 Thread 'William J. Bowman' via users-redirect
On Tue, Nov 03, 2015 at 08:09:04PM -0500, Jon Zeppieri wrote:
> Actually, the package catalog already noticed it, so you should be
> able to update that package now.
> 
> Thanks for the bug report.
Thanks! I'll take a look tomorrow; was rather busy today.

-- 
William J. Bowman

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


pgpfPmo9vAaH6.pgp
Description: PGP signature


Re: [racket-users] Contract error when installing Gregor

2015-11-03 Thread Jon Zeppieri
On Tue, Nov 3, 2015 at 8:07 PM, Jon Zeppieri  wrote:
> Ok, I just pushed an update to the tzinfo package. It make take a
> little while for the package catalog to notice the change.
>

Actually, the package catalog already noticed it, so you should be
able to update that package now.

Thanks for the bug report.

-Jon

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Contract error when installing Gregor

2015-11-03 Thread Jon Zeppieri
Ok, I just pushed an update to the tzinfo package. It make take a
little while for the package catalog to notice the change.

-Jon


On Tue, Nov 3, 2015 at 6:59 PM, Jon Zeppieri  wrote:
> On Tue, Nov 3, 2015 at 6:44 PM, William J. Bowman
>  wrote:
>> On Tue, Nov 03, 2015 at 06:37:59PM -0500, Jon Zeppieri wrote:
>>> Okay, that is odd. I'll try reinstalling from scratch on my own machine to 
>>> make sure I didn't introduce a bug at some point. That's also where my 
>>> zoneinfo DB is too, so I'd expect it to behave the same way. I am running 
>>> macos, but I don't see why that should make any difference.
>> It's possible that I have something misconfigured, but my locale and
>> time seem to work properly everywhere else.
>
> I think it's far more likely to be a bug in my detection code.
>
> So, your /etc/localtime should be a symlink. What path does it point
> to? And, in particular, is the path that it points to absolute or
> relative?
> On my system, I have:
>/etc/localtime -> /usr/share/zoneinfo/America/New_York
>
> Since it looked from your stack trace like gregor was trying to find
> ../usr/share/zoneinfo/America/New_York, that makes me think that the
> trouble may start with this symlink. Those two paths would point to
> the same file, of course, since we're starting in /etc. So I probably
> need to canonicalize the linked path.
>
> -Jon

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Contract error when installing Gregor

2015-11-03 Thread Jon Zeppieri
On Tue, Nov 3, 2015 at 6:44 PM, William J. Bowman
 wrote:
> On Tue, Nov 03, 2015 at 06:37:59PM -0500, Jon Zeppieri wrote:
>> Okay, that is odd. I'll try reinstalling from scratch on my own machine to 
>> make sure I didn't introduce a bug at some point. That's also where my 
>> zoneinfo DB is too, so I'd expect it to behave the same way. I am running 
>> macos, but I don't see why that should make any difference.
> It's possible that I have something misconfigured, but my locale and
> time seem to work properly everywhere else.

I think it's far more likely to be a bug in my detection code.

So, your /etc/localtime should be a symlink. What path does it point
to? And, in particular, is the path that it points to absolute or
relative?
On my system, I have:
   /etc/localtime -> /usr/share/zoneinfo/America/New_York

Since it looked from your stack trace like gregor was trying to find
../usr/share/zoneinfo/America/New_York, that makes me think that the
trouble may start with this symlink. Those two paths would point to
the same file, of course, since we're starting in /etc. So I probably
need to canonicalize the linked path.

-Jon

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Contract error when installing Gregor

2015-11-03 Thread 'William J. Bowman' via users-redirect
On Tue, Nov 03, 2015 at 06:37:59PM -0500, Jon Zeppieri wrote:
> Okay, that is odd. I'll try reinstalling from scratch on my own machine to 
> make sure I didn't introduce a bug at some point. That's also where my 
> zoneinfo DB is too, so I'd expect it to behave the same way. I am running 
> macos, but I don't see why that should make any difference.
It's possible that I have something misconfigured, but my locale and
time seem to work properly everywhere else.

> By the way, do you actually get this error when installing the package? Or 
> just when trying to use it? The TZ detection code shouldn't run on install, I 
> don't think-- hmm, unless it breaks when building documentation? Since that 
> actually does use the package...
I get the error when installing, running `raco setup gregor`, and when
trying to use it.

-- 
William J. Bowman

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: PGP signature


Re: [racket-users] Contract error when installing Gregor

2015-11-03 Thread Jon Zeppieri
Okay, that is odd. I'll try reinstalling from scratch on my own machine to make 
sure I didn't introduce a bug at some point. That's also where my zoneinfo DB 
is too, so I'd expect it to behave the same way. I am running macos, but I 
don't see why that should make any difference.

By the way, do you actually get this error when installing the package? Or just 
when trying to use it? The TZ detection code shouldn't run on install, I don't 
think-- hmm, unless it breaks when building documentation? Since that actually 
does use the package...

> On Nov 3, 2015, at 6:33 PM, William J. Bowman  wrote:
> 
> I'm running Arch Linux, and the zoneinfo database is in /usr/share/zoneinfo.
> 
> -- 
> William J. Bowman
> 
>> On Tue, Nov 03, 2015 at 06:20:54PM -0500, Jon Zeppieri wrote:
>> 
>> What OS are you using, and to you happen to know if/where the zoneinfo 
>> database is on your system? If the problem is that your database is in a 
>> location that Gregor doesn't expect, I'll be happy to fix that. If you don't 
>> have the database, at all (which would be odd for a modern UNIX), you can 
>> install the tzinfo-data package. Installing that package should also be a 
>> work-around for the problem, too.
>> 
>> 
>>> On Nov 3, 2015, at 5:50 PM, 'William J. Bowman' via Racket Users 
>>>  wrote:
>>> 
>>> I get the following contract error when installed Gregor (the excellent
>>> date and time library) on my machine.
>>> 
>>> Any one know if this is a problem with my setup and if so how to
>>> resolve?
>>> 
>>> ; find-relative-path: contract violation
>>> ;   expected: (and/c path-for-some-system? simple-form?)
>>> ;   given: #
>>> ;   context...:
>>> ;/racket/racket/collects/racket/path.rkt:114:0: do-explode-path
>>> ;/racket/racket/collects/racket/path.rkt:124:0: find-relative-path5
>>> ;/racket/racket/share/pkgs/tzinfo/tzinfo/private/os/unix.rkt:11:0: 
>>> detect-tzid/unix
>>> ;/racket/racket/share/pkgs/tzinfo/tzinfo/private/zoneinfo.rkt:54:3: 
>>> detect-system-tzid
>>> ;/racket/racket/share/pkgs/tzinfo/tzinfo/main.rkt:70:0: system-tzid
>>> ;
>>> /racket/racket/collects/racket/contract/private/arrow-val-first.rkt:302:18
>>> ;/racket/racket/share/pkgs/gregor-lib/gregor/private/moment.rkt: 
>>> [running body]
>>> ;/racket/racket/share/pkgs/gregor-lib/gregor/private/generics.rkt: 
>>> [traversing imports]
>>> 
>>> -- 
>>> William J. Bowman
>>> 
>>> -- 
>>> You received this message because you are subscribed to the Google Groups 
>>> "Racket Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an 
>>> email to racket-users+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Contract error when installing Gregor

2015-11-03 Thread 'William J. Bowman' via users-redirect
I'm running Arch Linux, and the zoneinfo database is in /usr/share/zoneinfo.

-- 
William J. Bowman

On Tue, Nov 03, 2015 at 06:20:54PM -0500, Jon Zeppieri wrote:
> 
> What OS are you using, and to you happen to know if/where the zoneinfo 
> database is on your system? If the problem is that your database is in a 
> location that Gregor doesn't expect, I'll be happy to fix that. If you don't 
> have the database, at all (which would be odd for a modern UNIX), you can 
> install the tzinfo-data package. Installing that package should also be a 
> work-around for the problem, too.
> 
> 
> > On Nov 3, 2015, at 5:50 PM, 'William J. Bowman' via Racket Users 
> >  wrote:
> > 
> > I get the following contract error when installed Gregor (the excellent
> > date and time library) on my machine.
> > 
> > Any one know if this is a problem with my setup and if so how to
> > resolve?
> > 
> > ; find-relative-path: contract violation
> > ;   expected: (and/c path-for-some-system? simple-form?)
> > ;   given: #
> > ;   context...:
> > ;/racket/racket/collects/racket/path.rkt:114:0: do-explode-path
> > ;/racket/racket/collects/racket/path.rkt:124:0: find-relative-path5
> > ;/racket/racket/share/pkgs/tzinfo/tzinfo/private/os/unix.rkt:11:0: 
> > detect-tzid/unix
> > ;/racket/racket/share/pkgs/tzinfo/tzinfo/private/zoneinfo.rkt:54:3: 
> > detect-system-tzid
> > ;/racket/racket/share/pkgs/tzinfo/tzinfo/main.rkt:70:0: system-tzid
> > ;
> > /racket/racket/collects/racket/contract/private/arrow-val-first.rkt:302:18
> > ;/racket/racket/share/pkgs/gregor-lib/gregor/private/moment.rkt: 
> > [running body]
> > ;/racket/racket/share/pkgs/gregor-lib/gregor/private/generics.rkt: 
> > [traversing imports]
> > 
> > -- 
> > William J. Bowman
> > 
> > -- 
> > You received this message because you are subscribed to the Google Groups 
> > "Racket Users" group.
> > To unsubscribe from this group and stop receiving emails from it, send an 
> > email to racket-users+unsubscr...@googlegroups.com.
> > For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: PGP signature


Re: [racket-users] Contract error when installing Gregor

2015-11-03 Thread Jon Zeppieri
Though, looking at the stack trace, it seems like something in my path 
manipulation code is probably at fault. For some reason, it appears to be using 
a path that's prefixed with ../ when it shouldn't, but I'll need to know where 
your zoneinfo is to be sure. It's *probably* in /usr/share/zoneinfo.

> On Nov 3, 2015, at 6:20 PM, Jon Zeppieri  wrote:
> 
> 
> What OS are you using, and to you happen to know if/where the zoneinfo 
> database is on your system? If the problem is that your database is in a 
> location that Gregor doesn't expect, I'll be happy to fix that. If you don't 
> have the database, at all (which would be odd for a modern UNIX), you can 
> install the tzinfo-data package. Installing that package should also be a 
> work-around for the problem, too.
> 
> 
>> On Nov 3, 2015, at 5:50 PM, 'William J. Bowman' via Racket Users 
>>  wrote:
>> 
>> I get the following contract error when installed Gregor (the excellent
>> date and time library) on my machine.
>> 
>> Any one know if this is a problem with my setup and if so how to
>> resolve?
>> 
>> ; find-relative-path: contract violation
>> ;   expected: (and/c path-for-some-system? simple-form?)
>> ;   given: #
>> ;   context...:
>> ;/racket/racket/collects/racket/path.rkt:114:0: do-explode-path
>> ;/racket/racket/collects/racket/path.rkt:124:0: find-relative-path5
>> ;/racket/racket/share/pkgs/tzinfo/tzinfo/private/os/unix.rkt:11:0: 
>> detect-tzid/unix
>> ;/racket/racket/share/pkgs/tzinfo/tzinfo/private/zoneinfo.rkt:54:3: 
>> detect-system-tzid
>> ;/racket/racket/share/pkgs/tzinfo/tzinfo/main.rkt:70:0: system-tzid
>> ;
>> /racket/racket/collects/racket/contract/private/arrow-val-first.rkt:302:18
>> ;/racket/racket/share/pkgs/gregor-lib/gregor/private/moment.rkt: 
>> [running body]
>> ;/racket/racket/share/pkgs/gregor-lib/gregor/private/generics.rkt: 
>> [traversing imports]
>> 
>> -- 
>> William J. Bowman
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Racket Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to racket-users+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Contract error when installing Gregor

2015-11-03 Thread Jon Zeppieri

What OS are you using, and to you happen to know if/where the zoneinfo database 
is on your system? If the problem is that your database is in a location that 
Gregor doesn't expect, I'll be happy to fix that. If you don't have the 
database, at all (which would be odd for a modern UNIX), you can install the 
tzinfo-data package. Installing that package should also be a work-around for 
the problem, too.


> On Nov 3, 2015, at 5:50 PM, 'William J. Bowman' via Racket Users 
>  wrote:
> 
> I get the following contract error when installed Gregor (the excellent
> date and time library) on my machine.
> 
> Any one know if this is a problem with my setup and if so how to
> resolve?
> 
> ; find-relative-path: contract violation
> ;   expected: (and/c path-for-some-system? simple-form?)
> ;   given: #
> ;   context...:
> ;/racket/racket/collects/racket/path.rkt:114:0: do-explode-path
> ;/racket/racket/collects/racket/path.rkt:124:0: find-relative-path5
> ;/racket/racket/share/pkgs/tzinfo/tzinfo/private/os/unix.rkt:11:0: 
> detect-tzid/unix
> ;/racket/racket/share/pkgs/tzinfo/tzinfo/private/zoneinfo.rkt:54:3: 
> detect-system-tzid
> ;/racket/racket/share/pkgs/tzinfo/tzinfo/main.rkt:70:0: system-tzid
> ;
> /racket/racket/collects/racket/contract/private/arrow-val-first.rkt:302:18
> ;/racket/racket/share/pkgs/gregor-lib/gregor/private/moment.rkt: 
> [running body]
> ;/racket/racket/share/pkgs/gregor-lib/gregor/private/generics.rkt: 
> [traversing imports]
> 
> -- 
> William J. Bowman
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[racket-users] Contract error when installing Gregor

2015-11-03 Thread 'William J. Bowman' via Racket Users
I get the following contract error when installed Gregor (the excellent
date and time library) on my machine.

Any one know if this is a problem with my setup and if so how to
resolve?

; find-relative-path: contract violation
;   expected: (and/c path-for-some-system? simple-form?)
;   given: #
;   context...:
;/racket/racket/collects/racket/path.rkt:114:0: do-explode-path
;/racket/racket/collects/racket/path.rkt:124:0: find-relative-path5
;/racket/racket/share/pkgs/tzinfo/tzinfo/private/os/unix.rkt:11:0: 
detect-tzid/unix
;/racket/racket/share/pkgs/tzinfo/tzinfo/private/zoneinfo.rkt:54:3: 
detect-system-tzid
;/racket/racket/share/pkgs/tzinfo/tzinfo/main.rkt:70:0: system-tzid
;
/racket/racket/collects/racket/contract/private/arrow-val-first.rkt:302:18
;/racket/racket/share/pkgs/gregor-lib/gregor/private/moment.rkt: 
[running body]
;/racket/racket/share/pkgs/gregor-lib/gregor/private/generics.rkt: 
[traversing imports]

-- 
William J. Bowman

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: PGP signature