Skip to content

not all go modules works #150

@xukku

Description

@xukku

from 'go/math' import Pi
print Pi

this works and output

grumpy run test.py
3.14159265359

but this not works


 import "__go__/encoding/hex"
 print hex.Dump('foobar')

output error
grumpy run test.py

/tmp/tmp8Y9Chn__pycache__/gopath/src/python/main/module.go:4:2: cannot find package "python/go/encoding/hex" in any of:
/usr/lib/go/src/python/go/encoding/hex (from $GOROOT)
/tmp/tmp8Y9Chn__pycache__/gopath/src/python/go/encoding/hex (from $GOPATH)
/home/user/.local/lib/python2.7/site-packages/grumpy_runtime/data/gopath/src/python/go/encoding/hex

Originally posted by @6umpukc-uHKBu3umop in #148 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions