question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AttributeError: 'module' object has no attribute 'AbstractModule'

See original GitHub issue
Matplotlib 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:open
  • Created 6 years ago
  • Reactions:3
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

14reactions
davidsketchdeckcommented, Nov 8, 2017

Here’s how I fixed the problem for my environment:

pip uninstall sonnet pip install dm-sonnet

0reactions
jhyoocodercommented, Jul 18, 2019

I also got the same error, but thanks to davidsketchdeck@, it works!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found