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

ModuleNotFoundError: No module named 'oneflow.framework.args_tree' #395

Closed
bingnoi opened this issue Dec 4, 2023 · 9 comments
Closed

ModuleNotFoundError: No module named 'oneflow.framework.args_tree' #395

bingnoi opened this issue Dec 4, 2023 · 9 comments

Comments

@bingnoi
Copy link

bingnoi commented Dec 4, 2023

严格遵循了你们的教程 安装了oneflow onediff 为啥还是会报这个错误 python版本也是3.10了 还有其他可能的原因吗 或者有定位错误的方法么

@bingnoi
Copy link
Author

bingnoi commented Dec 4, 2023

之前的问题解决了 又爆了新的错误
python: /home/ci-user/manylinux-cache-dir/release/cu117/build/oneflow/ir/llvm_monorepo-src/llvm/include/llvm/Support/CommandLine.h:846: void llvm::cl::parser<DataType>::addLiteralOption(llvm::StringRef, const DT&, llvm::StringRef) [with DT = llvm::FunctionPass* (*)(); DataType = llvm::FunctionPass* (*)()]: Assertion findOption(Name) == Values.size() && "Option already exists!"' failed.`

@hjchen2
Copy link
Contributor

hjchen2 commented Dec 4, 2023

似乎是oneflow没有正确安装,请问你是根据onediff readme里的说明安装的么?

https://github.com/Oneflow-Inc/diffusers#install-from-source

比如cuda118:

python3 -m pip install --pre oneflow -f https://oneflow-pro.oss-cn-beijing.aliyuncs.com/branch/community/cu118

建议安装之前先卸载已经安装过的oneflow,确保安装了正确版本,如果还存在问题,可以提供一下当时oneflow的版本以及更详细的信息~

@bingnoi
Copy link
Author

bingnoi commented Dec 5, 2023

已经都试过了 oneflow-0.9 onediff-0.11.0.dev0 cuda11.6 还是一样的错误

@hjchen2
Copy link
Contributor

hjchen2 commented Dec 5, 2023

那您跑我们的sd1.5的example会报错么,https://github.com/Oneflow-Inc/onediff/blob/main/examples/text_to_image.py

@bingnoi
Copy link
Author

bingnoi commented Dec 7, 2023

你好 还是不行 会报这个错ModuleNotFoundError: No module named 'oneflow.framework.args_tree' 但是我去安装的oneflow目录下去看了 确实不存在 args_tree这个文件 请问问题是出在哪里了呢

@strint
Copy link
Collaborator

strint commented Dec 7, 2023

对应代码在这里:

https://github.com/Oneflow-Inc/oneflow/blob/master/python/oneflow/framework/args_tree.py

可能是你安装到了一个很老的 oneflow。

应该是需要安装下最新的 oneflow

https://github.com/Oneflow-Inc/onediff/tree/main#install-from-source

@hjchen2
Copy link
Contributor

hjchen2 commented Dec 7, 2023

oneflow-0.9这个版本是错的,正确安装应该是0.9.1版本的。你可以重新安装一下oneflow,把安装过程截图发到这里来,可能的原因有:一是你的python版本过低,我们只支持py3.7到py3.10;二是cuda版本过低,我们要求cuda版本>=11.8

@bingnoi
Copy link
Author

bingnoi commented Dec 7, 2023

对的 问题是cuda版本过低 我的是cuda11.6 建议明确说明一下这个版本要求 我确实没在主页readme上看到这个要求 谢谢你们的帮助!

@bigmover
Copy link

bigmover commented Sep 4, 2024

oneflow-0.9这个版本是错的,正确安装应该是0.9.1版本的。你可以重新安装一下oneflow,把安装过程截图发到这里来,可能的原因有:一是你的python版本过低,我们只支持py3.7到py3.10;二是cuda版本过低,我们要求cuda版本>=11.8

@hjchen2 请问 cuda 11.7版本有办法可以支持?

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

No branches or pull requests

4 participants