Skip to content
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

ImportError: cannot import name 'utils' #6

Open
peterjpxie opened this issue Aug 26, 2019 · 0 comments
Open

ImportError: cannot import name 'utils' #6

peterjpxie opened this issue Aug 26, 2019 · 0 comments

Comments

@peterjpxie
Copy link

Error:

python scratch_mlp/scratch_mlp.py

Traceback (most recent call last):
  File "scratch_mlp/scratch_mlp.py", line 13, in <module>
    from scratch_mlp import utils
  File "/root/NNs/scratch_mlp/scratch_mlp.py", line 13, in <module>
    from scratch_mlp import utils
ImportError: cannot import name 'utils'

Origin code:

# scratch_mlp.py
from scratch_mlp import utils

Code works for me:

import utils

Tested environments:
Windows 7, Ubuntu 16.04
Python 3.5 and 3.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant