gopy icon indicating copy to clipboard operation
gopy copied to clipboard

pkg: ImportError: attempted relative import beyond top-level package

Open itswcg opened this issue 4 years ago • 0 comments

I use command gopy pkg -output=out -vm=python3 github.com/go-python/gopy/_examples/hi cd out && make install-pkg

then

>>> from hi impot hi
  File "<stdin>", line 1
    from hi impot hi
            ^
SyntaxError: invalid syntax
>>> from hi import hi
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/root/out/hi/hi.py", line 20, in <module>
    from ..hi import _hi
ImportError: attempted relative import beyond top-level package

itswcg avatar Sep 02 '21 06:09 itswcg