[racket] Error installing planet-neil-csv2

From: Brian Adkins (racketusers at lojic.com)
Date: Tue Jul 8 21:01:19 EDT 2014

On Jul 8, 2014, at 7:45 PM, Brian Adkins wrote:

> I just tried installing planet-neil-csv2 from within DrRacket, and I received the error below. I'm not sure if it's a problem with answering the "Would you like to install..." question, but I was never given the opportunity to type anything.
> 
> Any ideas?
> 
> I'll try installing those dependencies first, and see if that resolves the issue.
> 
> Thanks,
> Brian
> 
> --- snip ---
> Resolving "planet-neil-csv2" via http://download.racket-lang.org/releases/6.0.1/catalog/
> Resolving "planet-neil-csv2" via http://pkgs.racket-lang.org
> Resolving "planet-neil-csv2" via http://planet-compats.racket-lang.org
> Downloading http://planet-compat.racket-lang.org/static/planet-neil-csv2.plt
> The following uninstalled packages are listed as dependencies of planet-neil-csv2:
>   planet-neil-overeasy2
>   planet-neil-mcfly-tools1
>   planet-neil-mcfly1
> Would you like to install these dependencies? [Y/n/a/?] string-trim: contract violation
>  expected: string?
>  given: #<eof>
>  context...:
>   /Applications/Racket v6.0.1/collects/racket/string.rkt:76:0: string-trim22
>   /Applications/Racket v6.0.1/collects/pkg/lib.rkt:1336:2: loop
>   /Applications/Racket v6.0.1/collects/pkg/lib.rkt:1391:2: install-package/outer
>   /Applications/Racket v6.0.1/collects/pkg/../racket/private/map.rkt:37:19: loop
>   /Applications/Racket v6.0.1/collects/pkg/lib.rkt:1366:0: install-packages144
>   /Applications/Racket v6.0.1/collects/racket/file.rkt:363:8
>   /Applications/Racket v6.0.1/collects/racket/file.rkt:352:0: call-with-file-lock44
>   /Applications/Racket v6.0.1/collects/pkg/main.rkt:167:14
>   /Applications/Racket v6.0.1/share/pkgs/gui-lib/mrlib/terminal.rkt:210:7
>   /Applications/Racket v6.0.1/share/pkgs/gui-lib/mred/private/wx/common/queue.rkt:451:6
>   /Applications/Racket v6.0.1/share/pkgs/gui-lib/mred/private/wx/common/queue.rkt:502:32
>   /Applications/Racket v6.0.1/collects/racket/private/more-scheme.rkt:147:2: call-with-break-parameterization
>   /Applications/Racket v6.0.1/share/pkgs/gui-lib/mred/private/wx/common/queue.rkt:397:18: loop
> --- snip ---


This appears to be a problem with DrRacket handling the prompt properly (I installed via File | Package Manager ... not via File | Install Package ... ). When I installed the package from the command line on OSX via:

raco pkg install planet-neil-csv2

it worked fine. It now shows up in the DrRacket package manager, but I'm confused about one thing. The PlaneT Compatibility page:

http://docs.racket-lang.org/pkg/PLaneT_Compatibility.html

states:

"Each file has been transliterated to use direct Racket-style requires rather than PLaneT-style requires. For example, if any file contains (planet jaymccarthy/opencl/module), then it is transliterated to jaymccarthy/opencl1/module."

but I had to use (require (planet neil/csv:2:0)) in my file instead of (require neil/csv:2:0) which failed. I tried other variations to no avail.

Is the form (require (planet neil/csv:2:0)) deprecated? What are the pros/cons between the two different require forms?

By the way, I *really* liked the way the docs for neil/csv automatically showed up in the help desk html after installation.

If Neil is on this list, are you planning on migrating to the new package repository?

Thanks,
Brian



Posted on the users mailing list.