python 2.7 - PyCharm: Difficulties importing module of package -
i getting started pycharm , have imported project eclipse.
running on virtual env, able register compiled pyd
file (prespy). however, still have "unresolved reference" error. installed colormath
pycharm tooltip recommendation.
when running project strangely not have pyd-related error. instead, interpreter complains different module , not on 'package level'.
error 1
unresolved reference: 'rgb_color' in import statement:
# these 4 lines work fine import copy import random math import pi, degrees configuration import color, condition # custom package import colormath.color_diff prespy import rgb_color # refers .pyd.
error 2
stack trace:
.... file "x:\proj\src\color_logic\palette.py", line 14, in <module> import colormath.color_diff importerror: no module named colormath.color_diff process finished exit code 1
content root project folder. source folders in separate /src/
folder. incomplete setup.py
stub located in content root. project ran without errors eclipse on different installation of pip install
:ed packages.
below, returns source root folder (from related answer):
import os print os.getcwd()
under project: ... > project interpreter1 packages colormath
, prespy
both listed.
1: pycharm community edition 2016.2.3
solution: run configuration has changed corresponding virtual environment.
Comments
Post a Comment