pkg: ImportError: attempted relative import beyond top-level package
未关闭
- 主要语言
- Go
- 星标
- 2.3k
- 派生
- 136
- 平均合并
- 14 分钟
- 30 天内合并 PR
- 2
描述
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 "", line 1
from hi impot hi
^
SyntaxError: invalid syntax
>>> from hi import hi
Traceback (most recent call last):
File "", line 1, in
File "/root/out/hi/hi.py", line 20, in
from ..hi import _hi
ImportError: attempted relative import beyond top-level package
```
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。