Comments (9)
Here's how I fixed the problem for my environment:
pip uninstall sonnet
pip install dm-sonnet
from learning-to-learn.
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.
from learning-to-learn.
⬢ 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)
from learning-to-learn.
you may lack dill
pip install dill
from learning-to-learn.
⬢ learning-to-learn master ✗ pip install dill
Requirement already satisfied: dill in /usr/local/lib/python2.7/site-packages
from learning-to-learn.
Did you by chance install "sonnet" from pip? https://pypi.python.org/pypi/sonnet/0.1.6
from learning-to-learn.
Ok. I have the same issue.
python train.py --problem=mnist --save_path=/tmp/mnist_opt
Traceback (most recent call last):
File "train.py", line 28, in <module>
import meta
File "/Volumes/ExtraDiskSpace/Documents/learning-to-learn/meta.py", line
32, in <module>
import networks
File "/Volumes/ExtraDiskSpace/Documents/learning-to-learn/networks.py", $
ine 31, in <module>
import preprocess
File "/Volumes/ExtraDiskSpace/Documents/learning-to-learn/preprocess.py"$
line 26, in <module>
class Clamp(snt.AbstractModule):
AttributeError: 'module' object has no attribute 'AbstractModule'
Working on OSX (10.11.6) in a venv. python (2.7.10).
And yea, installed sonnet (0.1.6) via pip.
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
from learning-to-learn.
I also have this problem, and I tried a lot of ways, still cannot work, did you solved this?
Matplotlib required for plot()
Traceback (most recent call last):
File "/home/huyuezhi/tts-train/deng/train-tts-voicenet/voicenet-master/src/run_tts.py", line 30, in
from models.tf_model import TfModel
File "/home/huyuezhi/tts-train/deng/train-tts-voicenet/voicenet-master/src/models/tf_model.py", line 27, in
class TfModel(snt.AbstractModule):
AttributeError: 'module' object has no attribute 'AbstractModule'
from learning-to-learn.
I also got the same error, but thanks to davidsketchdeck@, it works!
from learning-to-learn.
Related Issues (20)
- AttributeError: module 'tensorflow.contrib.rnn' has no attribute 'RNNCell' HOT 2
- Debugging the meta-optimizer
- Distributed version of this?
- Just a ConvNet HOT 1
- Dependency: dill HOT 2
- Resetting each epoch? HOT 4
- No restore logic in evaluate.py HOT 1
- Problems for CIFAR experiments HOT 2
- structures don't have the same sequence type HOT 12
- windows run error HOT 5
- Tensorflow and sonnet versions? HOT 1
- fatal error:iso:no such a file or directory. HOT 1
- TypeError: The two structures don't have the same nested structure. HOT 2
- How to add accuracy prediciton
- Is BPTT implemented here?
- mnist result is not good HOT 3
- cifar queues problem
- MNIST not reproducible HOT 1
- Followup to Issue 22
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from learning-to-learn.