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

TypeError: cannot unpack non-iterable NoneType object #189

Open
africa1207 opened this issue Jan 13, 2025 · 10 comments
Open

TypeError: cannot unpack non-iterable NoneType object #189

africa1207 opened this issue Jan 13, 2025 · 10 comments

Comments

@africa1207
Copy link

4090,ubuntu,内存60G,gradio和代码运行都报错
2025-01-13_16-44-29

@cskyl
Copy link

cskyl commented Jan 14, 2025

Having the same issue

@ZhenZ11
Copy link

ZhenZ11 commented Jan 14, 2025

pip install transformers==4.45.2, maybe the version of transformers cause that issue

@Guunh
Copy link

Guunh commented Jan 14, 2025

pip install transformers==4.45.2, maybe the version of transformers cause that issue

I tried, and it didn't change anything (I have the same error message as africa1207)

@cskyl
Copy link

cskyl commented Jan 15, 2025

pip install transformers==4.45.2, maybe the version of transformers cause that issue

I tried, and it didn't change anything (I have the same error message as africa1207)

I tried this one, it doesn't work either

@jondurbin
Copy link

The problem is that the setup.py requirements don't match the requirements.txt values, so if you do a pip install -e OmniGen it's installing incorrect versions of various packages.

You can likely fix this by installing the requirements first, then the package without dependencies, e.g.:

pip install -r https://raw.githubusercontent.com/VectorSpaceLab/OmniGen/refs/heads/main/requirements.txt
pip install git+https://github.com/staoxiao/OmniGen.git --no-deps

@Guunh
Copy link

Guunh commented Jan 16, 2025

The problem is that the setup.py requirements don't match the requirements.txt values, so if you do a pip install -e OmniGen it's installing incorrect versions of various packages.

You can likely fix this by installing the requirements first, then the package without dependencies, e.g.:

pip install -r https://raw.githubusercontent.com/VectorSpaceLab/OmniGen/refs/heads/main/requirements.txt
pip install git+https://github.com/staoxiao/OmniGen.git --no-deps

I tried the command you gave, but it didn't work
I'm not an expert in coding etc... so I'll try to be more specific so you can guide us towards a solution
First of all, I didn't specify that it was to make it work on comfyui, I don't know if your command could help for comfyui
What I can tell you, however, is that I checked carefully, my requirements are up to date.

@kimnamwook1
Copy link

Same Issue here.

@kimnamwook1
Copy link

Same Issue here.

I solve it with solution above that pip install transformers==4.45.2

@Henry-Lee-real
Copy link

same 😊

@sureshtmca
Copy link

pip install transformers==4.45.2 - this worked thanks...

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

8 participants