-
Notifications
You must be signed in to change notification settings - Fork 601
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'module' object has no attribute 'AbstractModule' #15
Comments
Sorry, I can't reproduce this. I've just reinstalled both TensorFlow and Sonnet and everything works as expected. Are you running this from a folder that contains a 'sonnet' subfolder by any chance? That's a common source of this type of problem I think. |
⬢ learning-to-learn master ✗ gl
Already up-to-date.
⬢ learning-to-learn master ✗ vim README.md
⬢ learning-to-learn master ✗ python train.py --problem=mnist --save_path=./mnist
Matplotlib required for plot()
Traceback (most recent call last):
File "train.py", line 28, in <module>
import meta
File "/Users/tomato/Sites/learning-to-learn/meta.py", line 32, in <module>
import networks
File "/Users/tomato/Sites/learning-to-learn/networks.py", line 31, in <module>
import preprocess
File "/Users/tomato/Sites/learning-to-learn/preprocess.py", line 26, in <module>
class Clamp(snt.AbstractModule):
AttributeError: 'module' object has no attribute 'AbstractModule'
⬢ learning-to-learn master ✗ ls
CONTRIBUTING convergence_test.py meta.pyc networks.py preprocess.py problems.py util.py
LICENSE evaluate.py meta_test.py networks.pyc preprocess.pyc problems_test.py
README.md meta.py mnist/ networks_test.py preprocess_test.py train.py
⬢ learning-to-learn master ✗ gss
?? meta.pyc
?? networks.pyc
?? preprocess.pyc
⬢ learning-to-learn master ✗ python -V
Python 2.7.13
⬢ learning-to-learn master ✗ pip -V
pip 9.0.1 from /usr/local/lib/python2.7/site-packages (python 2.7)
⬢ learning-to-learn master ✗ pip install sonnet
Requirement already satisfied: sonnet in /usr/local/lib/python2.7/site-packages
Requirement already satisfied: networkx==1.8.1 in /usr/local/lib/python2.7/site-packages (from sonnet) |
you may lack dill
|
⬢ learning-to-learn master ✗ pip install dill
Requirement already satisfied: dill in /usr/local/lib/python2.7/site-packages |
Did you by chance install "sonnet" from pip? https://pypi.python.org/pypi/sonnet/0.1.6 |
Ok. I have the same issue.
Working on OSX (10.11.6) in a venv. python (2.7.10). Also, the original issue mentions matplotlib. Not sure if it's related, but I had to manually set the backend for matplotlib to be happy. https://stackoverflow.com/questions/29433824/unable-to-import-matplotlib-pyplot-as-plt-in-virtualenv |
Here's how I fixed the problem for my environment:
|
I also have this problem, and I tried a lot of ways, still cannot work, did you solved this? Matplotlib required for plot() |
I also got the same error, but thanks to davidsketchdeck@, it works! |
The text was updated successfully, but these errors were encountered: