AttributeError: 'module' object has no attribute 'AbstractModule'
See original GitHub issueMatplotlib required for plot()
Traceback (most recent call last):
File "evaluate.py", line 26, 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'
$ python -V
Python 2.7.13
$ pip -V
pip 9.0.1 from /usr/local/lib/python2.7/site-packages (python 2.7)
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:9 (1 by maintainers)
Top Results From Across the Web
module 'sonnet' has no attribute 'AbstractModule' #128 - GitHub
Hi,I've installed sonnet by using pip install dm-sonnet However when I run "python evaluate_sample.py" I got AttributeError: module 'sonnet' ...
Read more >AttributeError: 'module' object has no attribute - Stack Overflow
You have mutual top-level imports, which is almost always a bad idea. If you really must have mutual imports in Python, the way...
Read more >AttributeError: 'module' object has no attribute 'AbstractModule'
当使用sonnet进行网络构建时,出现AttributeError: 'module' object has no attribute 'AbstractModule',可以如下解决:. pip uninstall sonnet.
Read more >AttributeError: 'module' object has no attribute 'AbstractModule'
当使用sonnet进行网络构建时,出现AttributeError: 'module' object has no attribute 'AbstractModule',可以如下解决:. pip uninstall sonnet.
Read more >AttributeError: 'module' object has no attribute 'AbstractModule'
AttributeError : 'module' object has no attribute 'AbstractModule'. 原創 ystsaan 2019-10-25 18:16. pip uninstall sonnet pip install dm-sonnet. 發表評論.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Here’s how I fixed the problem for my environment:
pip uninstall sonnet
pip install dm-sonnet
I also got the same error, but thanks to davidsketchdeck@, it works!