Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Having issues running grumpy #380

Closed
codecraf8 opened this issue Sep 12, 2017 · 2 comments
Closed

Having issues running grumpy #380

codecraf8 opened this issue Sep 12, 2017 · 2 comments

Comments

@codecraf8
Copy link

codecraf8 commented Sep 12, 2017

  1. Cloned the repository

  2. Ran a successful build
    echo "print 'hello, world'" | make run hello, world

  3. Generated a simple python script
    echo 'print "hello, world"' > hello.py

  4. Transpiled py to go

build/bin/grumpc hello.py > hello.go

  1. Tried to run the executable, it threw an error

    ./hello: line 1: syntax error near unexpected token `newline'
    
    ./hello: line 1: `!<arch>'
    
  2. Investigated the file hello.py and found some weird characters

All paths were properly set.

export GOPATH=$PWD/build
export PYTHONPATH=$PWD/build/lib/python2.7/site-packages

What's gone wrong?

@trotterdylan
Copy link
Contributor

The output of the grumpc command is Go code that can be compiled using go build or similar. It's not an executable. Let me know if that helps.

@ymy0
Copy link

ymy0 commented May 25, 2018

I have the same error?
after " go build"
I can't run ./hello

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants