PaddlePaddle / PaddleHub

Awesome pre-trained models toolkit based on PaddlePaddle. (400+ models including Image, Text, Audio, Video and Cross-Modal with Easy Inference & Serving)【安全加固,暂停交互,请耐心等待】
https://www.paddlepaddle.org.cn/hub
Apache License 2.0
12.74k stars 2.07k forks source link

AttributeError: module 'paddle' has no attribute '__version__' #2254

Closed HuangXinzhe closed 1 year ago

HuangXinzhe commented 1 year ago

欢迎您反馈PaddleHub使用问题,非常感谢您对PaddleHub的贡献! 在留下您的问题时,辛苦您同步提供如下信息:

dineshresearch commented 1 year ago

@HuangXinzhe I am also facing the same error. Did you found any fix / resolution?

HuangXinzhe commented 1 year ago

@HuangXinzhe I am also facing the same error. Did you found any fix / resolution?

For my question, this is not a question of paddle,because there was a folder named by paddle in the directory of my code.

Haeppypuppy commented 1 year ago

I still face the question now, how should i fix it. I am not sure if the problem is paddle version release or not

](https://localhost:8080/#) in () ----> 1 import paddlehub as hub 8 frames [/usr/local/lib/python3.10/dist-packages/paddlenlp/transformers/ernie_ctm/modeling.py](https://localhost:8080/#) in 33 ) 34 ---> 35 if compare_version(paddle.version.full_version, "2.2.0") >= 0: 36 # paddle.text.ViterbiDecoder is supported by paddle after version 2.2.0 37 from paddle.text import ViterbiDecoder AttributeError: module 'paddle' has no attribute 'version' >