I installed PyBrain via PyCharm and when I try to compile I get the following error:
Traceback (most recent call last):
File "C:/Users/Marcus/PycharmProjects/ANN/ann.py", line 2, in <module>
from pybrain.tools.shortcuts import buildNetwork
File "C:\Python34\lib\site-packages\pybrain\__init__.py", line 1, in <module>
from structure.__init__ import *
ImportError: No module named 'structure'
However, in the folder site-packages\pybrain\ there's a folder named 'structure' with (what I assume is) what pybrain is asking for.
I'm pretty new to Python so I'm not completely used to this installing packages thing. Is it something that I missed? I have tried to search for a package named "structure" in the PyCharm package installer but there is none (only a 'structures').
Thanks in advance
EDIT: A comment asked me to further explain how I installed the package. In PyCharm, I went to project settings -> project interpreter -> search for "pybrain"
from pybrain.structure.__init__
, notfrom structure...
, so something is weird. – Messer__init__
, you import from the package itself. No idea why they've done that, although it does seem to be consistent throughout the project. – Messer