0

I have a directory called mcpy. This directory contains some modules an __init__.py and two directories. These are: mcpi, coca_lang. Now when I go into coca_lang and try to do:

from .. import mcpi

I get this error:

Parent Module '' not loaded, cannot perform relative import

I am trying to import mcpi from inside the dir coca_lang. What am I doing wrong??? I am using Win 7 and Python 3.4

SLePort
  • 15,211
  • 3
  • 34
  • 44

0 Answers0