artyom-poptsov / guile-dsv

Delimiter-separated values (DSV) format parser for GNU Guile.
GNU General Public License v3.0
16 stars 3 forks source link

Error when importing in guile: `(import (dsv))` → Wrong type to apply: #<directory (dsv fsm context) 7040cb5d2c80> #11

Open ArneBab opened 2 months ago

ArneBab commented 2 months ago

Hi,

when I try to import dsv, I get an error message:

$ guile -c '(import (dsv))'
Backtrace:
In ice-9/threads.scm:
    399:8 19 (_ _)
In ice-9/boot-9.scm:
  3564:20 18 (_)
   2858:4 17 (save-module-excursion #<procedure 7040cb5b63c0 at ice-…>)
  3584:26 16 (_)
In unknown file:
          15 (primitive-load-path "dsv/common" #<procedure 7040cb5cb…>)
In ice-9/boot-9.scm:
  3923:23 14 (_)
   3431:4 13 (define-module* _ #:filename _ #:pure _ #:version _ # _ …)
  3444:24 12 (_)
   222:29 11 (map1 (((srfi srfi-1) #:select (fold)) ((ice-9 #) # …) …))
   222:29 10 (map1 (((ice-9 regex) #:select (#)) ((scheme #)) ((…))))
   222:29  9 (map1 (((scheme documentation)) ((dsv fsm context))))
   222:17  8 (map1 (((dsv fsm context))))
  3349:17  7 (resolve-interface (dsv fsm context) #:select _ #:hide _ …)
In ice-9/threads.scm:
    399:8  6 (_ _)
In ice-9/boot-9.scm:
  3275:13  5 (_)
In ice-9/threads.scm:
    399:8  4 (_ _)
In ice-9/boot-9.scm:
  3564:20  3 (_)
   2858:4  2 (save-module-excursion #<procedure 7040cb5b6300 at ice-…>)
  3584:26  1 (_)
In unknown file:
           0 (primitive-load-path "dsv/fsm/context" #<procedure 7040…>)

ERROR: In procedure primitive-load-path:
Wrong type to apply: #<directory (dsv fsm context) 7040cb5d2c80>

This is with version

$ guix search guile-dsv
name: guile-dsv
version: 0.7.2
artyom-poptsov commented 2 months ago

Hello!

I just checked it on my machine and wasn't able reproduce the error:

$ guix install guile-dsv
$ guile -c "(import (dsv)) (scm->dsv '((\"hello\" \"world\")))"
hello:world
$ guix show guile-dsv | head -2
name: guile-dsv
version: 0.7.2
$ guile --version
guile (GNU Guile) 3.0.9
Copyright (C) 2023 Free Software Foundation, Inc.

License LGPLv3+: GNU LGPL 3 or later <http://gnu.org/licenses/lgpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Maybe I'm missing something?

-avp