I have runned the GitHub version of topographica successfully,but when I add the source code of topographica to eclipse,there are some errors, and the errors info are :
Traceback (most recent call last):
File "/home/yangjiangtao/workspace/topo_local/topographica", line 9, in
import sys, topo
File "/home/yangjiangtao/workspace/topo_local/topo/init.py", line 56, in
import imagen
File "/usr/local/lib/python2.7/dist-packages/imagen/init.py", line 32, in
from .patterngenerator import Constant, PatternGenerator
File "/usr/local/lib/python2.7/dist-packages/imagen/patterngenerator.py", line 20, in
from dataviews import SheetView
File "/usr/local/lib/python2.7/dist-packages/imagen/../dataviews/dataviews.py", line 6, in
from .ndmapping import Dimension, NdMapping
ValueError: Attempted relative import in non-package
I have runned the GitHub version of topographica successfully,but when I add the source code of topographica to eclipse,there are some errors, and the errors info are : Traceback (most recent call last): File "/home/yangjiangtao/workspace/topo_local/topographica", line 9, in
import sys, topo
File "/home/yangjiangtao/workspace/topo_local/topo/init.py", line 56, in
import imagen
File "/usr/local/lib/python2.7/dist-packages/imagen/init.py", line 32, in
from .patterngenerator import Constant, PatternGenerator
File "/usr/local/lib/python2.7/dist-packages/imagen/patterngenerator.py", line 20, in
from dataviews import SheetView
File "/usr/local/lib/python2.7/dist-packages/imagen/../dataviews/dataviews.py", line 6, in
from .ndmapping import Dimension, NdMapping
ValueError: Attempted relative import in non-package
Though,how can I solve this problem?