``` $ go mod init dummy.com/dum $ go get github.com/go-python/gopy/_examples/hi $ gopy build -output=out -vm=python3 github.com/go-python/gopy/_examples/hi $ ls out Makefile _hi.cpython-39-darwin.h build.py hi.c hi.py __init__.py _hi.cpython-39-darwin.so go.py hi.go hi_go.h $ python3 >>> from out import hi >>> dir(hi) ['__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', '_collections_abc', '_hi', 'collections', 'currentdir', 'cwd', 'go', 'inspect', 'os', 'sys'] >>> hi.Hello("you") File "<stdin>", line 1 hi.Hello("you") IndentationError: unexpected indent ``` It's not just the example... same result with my own go code. ``` which python3 /usr/bin/python3 ``` - Python 3.9.6 - Go 1.20 - MacOS Ventura 13.2 (ARM64) - Goopy 0.4.4
Activity
trueToastedCode commentedon Feb 14, 2023
Duplicate of: #311
Downgrade Go to 1.19.5 and it works.