go-python / go-python/gopy

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

未关闭
#262 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
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 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。