go-python / go-python/gopy

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

Open
#262 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Go
Stars
2.3k
Forks
136
Avg merge
14m
Merged PRs (30d)
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
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.