pkg: ImportError: attempted relative import beyond top-level package
Ouverte
- Langage dominant
- Go
- Étoiles
- 2.3k
- Forks
- 136
- Merge moyen
- 14 min
- PR mergées (30 j)
- 2
Description
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
```
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.