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 'paddle.fluid' #60628

Closed
Tortoise17 opened this issue Jan 8, 2024 · 5 comments
Closed

No module named 'paddle.fluid' #60628

Tortoise17 opened this issue Jan 8, 2024 · 5 comments
Labels
status/close 已关闭 type/question 用户提问

Comments

@Tortoise17
Copy link

请提出你的问题 Please ask your question

    from . import ops
  File "/installation/Soccernet-features-develop/paddlevideo/modeling/heads/ops.py", line 21, in <module>
    from paddle.fluid.framework import Variable, in_dygraph_mode
ModuleNotFoundError: No module named 'paddle.fluid'
LAUNCH INFO 2024-01-08 16:46:16,710 Exit code 1
(lab) [user@machine0 Mon 2024-01-08 16:46 /installation/Soccernet-features-develop]# 

Dear fellows:
I have tried several versions, and I am still facing same issue. Is there any solution to make it fix? Your kind help is highly appreciated.

@engineer1109
Copy link
Contributor

paddle.fluid is deleted, and use paddle.base now

@Tortoise17
Copy link
Author

@engineer1109 Thank you so much. Great help. This helped, but still there is one point left.

I have changed this as below

from paddle.base.framework import Variable, in_dygraph_mode
from paddle.base import core
from paddle.base.layer_helper import LayerHelper
from paddle.base.dygraph import layers
from paddle.base.data_feeder import check_variable_and_dtype, check_type, check_dtype, convert_dtype

below is the error.


from paddle.base.dygraph import layers
ImportError: cannot import name layers from paddle.base.dygraph

Please if you can also guide about it as I have changed this complete import from fluid to base.

@heavyrain-lzy
Copy link
Contributor

layers

Maybe you want to from paddle.nn import Layer

@Tortoise17
Copy link
Author

@engineer1109 @heavyrain-lzy Thank you so much. Atleast this has resolved current error. I still have to fix other stuff and I may need your help until I can start the wheel. Millions of thank you.

@tear07251
Copy link

AttributeError: module 'paddle.base' has no attribute 'data'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/close 已关闭 type/question 用户提问
Projects
None yet
Development

No branches or pull requests

4 participants