pedropramos/PyonR

core dump during install

mbutterick opened this issue · 4 comments

Tried to install on Racket 6.1.1.4 / OS X using raco pkg install -n python git://github.com/pedropramos/PyonR but got this error:

raco setup: 3 making: <pkgs>/python
raco setup: 2 making: <pkgs>/racket-index/scribblings/main
raco setup: 2 making: <pkgs>/racket-index/scribblings/main/private
raco setup: 2 making: <pkgs>/racket-index/scribblings/main/user
raco setup: 3 making: <pkgs>/python/c
raco setup: 3 making: <pkgs>/python/debug
raco setup: 3 making: <pkgs>/python/debug/lang
raco setup: 3 making: <pkgs>/python/engine
Fatal Python error: GC object already tracked
Abort trap: 6 (core dumped)

Sadly, I haven't had the opportunity to test it on OS X as much as I would like.

This issue is most likely related to the FFI connection to CPython's VM.

I will try to address this the next time I get my hands on a Mac. In the meantime, I believe you can patch it by replacing the path-to-cpython-lib definition on cpy-importing.rkt at line 18 to:

(define path-to-cpython-lib #f)

and then completing the setup by running:

raco setup python

You will lose the ability to use the cpyimport statement to import libraries installed on CPython, but everything else should be fine.

FYI, I installed PyonR on two Macs, without any problem. Both run Racket 6.1.1, one has MacOS 10.9 and the other 10.10.

Hello again,

Since you are not the only one having issues with CPython during PyonR's installation, I have disabled the 'cpyimport' statement in the latest update. Users can now enable and disable it manually after installation (the instructions are described on the README file).

While this does not solve your problem, it should make PyonR's installation go smoothly for you, since there is no longer an external dependency on CPython during installation time.

Yes, that helped. I can now run #lang python in DrRacket. Thank you.