# Adding a new \`raco\` command - path configuration

**URL:** <https://racket.discourse.group/t/adding-a-new-raco-command-path-configuration/1488>\
**Category:** Questions & Answers\
**Created:** [November 17, 2022, 5:23pm UTC](https://racket.discourse.group/t/adding-a-new-raco-command-path-configuration/1488 "2022-11-17T17:23:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![soegaard](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/soegaard/32/19_2.png) [@soegaard](https://racket.discourse.group/u/soegaard)\
**Post date:** [November 17, 2022, 5:23pm UTC](https://racket.discourse.group/t/adding-a-new-raco-command-path-configuration/1488/1 "2022-11-17T17:23:07Z")

</div>

Hi All,

In an attempt to make the Racket package `pyffi` easier to configure, I added a `raco` command,  
so users can write `raco pyffi configure` to start a configuration tool.

Now, I have tested this on my own machine and on Github Actions, but after putting `pyffi` on the package server, I have become aware of a configuration problem (for at least macOS users).

The error report is:

```scheme
~ raco pyffi configure
open-input-file: cannot open module file
module path: pyffi/configure-pyffi
path: /Users/racketlover/Library/Racket/8.2/pkgs/pyffi/configure-pyffi.rkt
system error: no such file or directory; rkt_err=3

```

The problem is that the file `configure-pyffi.rkt` is in `pyffi/pyffi-lib/pyffi/configure-pyffi.rkt`.  
Now the `info.rkt` [1] file in the same folder contains:

```scheme
(define raco-commands
  (list (list "pyffi" 'pyffi/configure-pyffi "configure pyffi" #f)))

```

The commands that work on Github Actions [2] are:

```scheme
raco pkg install --scope installation pyffi-lib
raco pyffi configure

```

An attept of changing the path made the build on Github Action fail.

Should the file `configure-pyffi.rkt` be moved? If so where to?

/Jens Axel

[1] [pyffi/info.rkt at main · soegaard/pyffi · GitHub](https://github.com/soegaard/pyffi/blob/main/pyffi-lib/pyffi/info.rkt)  
[2] [pyffi/main.yml at main · soegaard/pyffi · GitHub](https://github.com/soegaard/pyffi/blob/main/.github/workflows/main.yml#L75)  
[3] [GitHub - soegaard/pyffi: Use Python from Racket](https://github.com/soegaard/pyffi)

---

<div class="post-metadata">

**Author:** ![samth](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/samth/32/3_2.png) [@samth](https://racket.discourse.group/u/samth)\
**Post date:** [November 17, 2022, 8:25pm UTC](https://racket.discourse.group/t/adding-a-new-raco-command-path-configuration/1488/2 "2022-11-17T20:25:27Z")

</div>

The problem is that you've set the wrong path on the package server. You probably wanted to create a `pyffi` package which points to [pyffi/pyffi at main · soegaard/pyffi · GitHub](https://github.com/soegaard/pyffi/tree/main/pyffi) and a `pyffi-lib` package which points to [pyffi/pyffi-lib at main · soegaard/pyffi · GitHub](https://github.com/soegaard/pyffi/tree/main/pyffi-lib) etc. You can see eg the asn1 packages as an example: [asn1-lib](https://pkgs.racket-lang.org/package/asn1-lib)

---

<div class="post-metadata">

**Author:** ![soegaard](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/soegaard/32/19_2.png) [@soegaard](https://racket.discourse.group/u/soegaard)\
**Post date:** [November 17, 2022, 9:22pm UTC](https://racket.discourse.group/t/adding-a-new-raco-command-path-configuration/1488/3 "2022-11-17T21:22:55Z")

</div>

Thanks. I am glad, I asked. I hadn't even considered the mistake was on the package server.
