soegaard / pyffi

Use Python from Racket
28 stars 2 forks source link

I cannot install pyffi. It seems that the directory structure is not correct. #1

Open caihao opened 2 years ago

caihao commented 2 years ago

(torch) ➜ ~ 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 context...: /Applications/Racket v8.2/collects/raco/raco.rkt:41:0 body of "/Applications/Racket v8.2/collects/raco/raco.rkt" body of "/Applications/Racket v8.2/collects/raco/main.rkt"

soegaard commented 2 years ago

Thanks for the bug report.

Which command did you use to install pyffi?

soegaard commented 2 years ago

@caihao

For now, simple enter the folder (I think "configure-pyffi.rkt" is here):

cd /Users/racketlover/Library/Racket/8.2/pkgs/pyffi/pyffi-lib/pyffi/

and use

racket84 configure-pyffi.rkt 
racket84 configure-pyffi.rkt show
racket84 configure-pyffi.rkt configure

etc.

soegaard commented 2 years ago

@caihao

Hi. Turns out I needed to submit packages for both pyffi, pyffi-lib and pyff-doc to the package server. That is now done, so try whether

raco pkg update pyffi

followed by

raco pyffi

works.

Let me know if it works or not.

caihao commented 2 years ago

@soegaard Thanks for your quick response. Now it is ok.

I use "raco pkg install pyffi", and then use "racket configure-pyffi.rkt configure" to configure the python environment. No warning is reported, and everything looks great! ^_^