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

No module named 'layers' #113

Open
luoyangwei opened this issue Nov 3, 2022 · 6 comments
Open

No module named 'layers' #113

luoyangwei opened this issue Nov 3, 2022 · 6 comments

Comments

@luoyangwei
Copy link

luoyangwei commented Nov 3, 2022

刚接触tensorflow 请别嫌弃问题简单嫌我烦😭

image

报错:
ModuleNotFoundError: No module named 'layers'

环境:
python 3.9
tflearn 0.5.0
tensorflow-macos 2.10.0
macOS Ventura 13.0 (Apple M1)

@pengzhao-life
Copy link

Hi, I got the same error. I simply add package name as prefix, i.e. change line 19 to 'from p2m.layers import *', and it worked for me.

@luoyangwei
Copy link
Author

Hi, I got the same error. I simply add package name as prefix, i.e. change line 19 to 'from p2m.layers import *', and it worked for me.

thanks!

@OmariNewAeon
Copy link

Traceback (most recent call last):
File "C:\Users\mohmm\OneDrive\Desktop\28_omari\arafat\Pixel2Mesh\demo.py", line 20, in
from p2m.api import GCN
File "C:\Users\mohmm\OneDrive\Desktop\28_omari\arafat\Pixel2Mesh\p2m\api.py", line 19, in
from p2m.layers import *
File "C:\Users\mohmm\OneDrive\Desktop\28_omari\arafat\Pixel2Mesh\p2m\layers.py", line 21, in
from inits import *
ModuleNotFoundError: No module named 'inits'

@lechogt
Copy link

lechogt commented Jun 7, 2024

Traceback (most recent call last): File "C:\Users\mohmm\OneDrive\Desktop\28_omari\arafat\Pixel2Mesh\demo.py", line 20, in from p2m.api import GCN File "C:\Users\mohmm\OneDrive\Desktop\28_omari\arafat\Pixel2Mesh\p2m\api.py", line 19, in from p2m.layers import * File "C:\Users\mohmm\OneDrive\Desktop\28_omari\arafat\Pixel2Mesh\p2m\layers.py", line 21, in from inits import * ModuleNotFoundError: No module named 'inits'

i got the same quesion how to solve it ?

@shayansep
Copy link

import it as
from .layers import *
not just layers(put a dot behind layers)

@shayansep
Copy link

Traceback (most recent call last): File "C:\Users\mohmm\OneDrive\Desktop\28_omari\arafat\Pixel2Mesh\demo.py", line 20, in from p2m.api import GCN File "C:\Users\mohmm\OneDrive\Desktop\28_omari\arafat\Pixel2Mesh\p2m\api.py", line 19, in from p2m.layers import * File "C:\Users\mohmm\OneDrive\Desktop\28_omari\arafat\Pixel2Mesh\p2m\layers.py", line 21, in from inits import * ModuleNotFoundError: No module named 'inits'

i got the same quesion how to solve it ?


you also put a dot behind .inits like:
from .inits import *

open layers.py and edit it

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

5 participants