M
M
MK2015-11-11 13:40:34
Python
MK, 2015-11-11 13:40:34

How to fix this python import error?

I'm trying to import a module from the parent directory, it gives me the following error:

from ..voice import Voice
ValueError: attempted relative import beyond top-level package

How to fix?
Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Kitaev, 2015-11-11
@deliro

Use full paths.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question