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: unsupported operand type(s) for |: 'type' and 'NoneType' #20

Closed
sidonsoft opened this issue May 14, 2023 · 4 comments
Closed

Comments

@sidonsoft
Copy link

Traceback (most recent call last):
File "/home/itburnz/miniconda3/envs/oobabot/bin/oobabot", line 5, in
from oobabot.oobabot import main
File "/home/itburnz/miniconda3/envs/oobabot/lib/python3.8/site-packages/oobabot/oobabot.py", line 12, in
from oobabot.discord_bot import DiscordBot
File "/home/itburnz/miniconda3/envs/oobabot/lib/python3.8/site-packages/oobabot/discord_bot.py", line 12, in
from oobabot.image_generator import ImageGenerator
File "/home/itburnz/miniconda3/envs/oobabot/lib/python3.8/site-packages/oobabot/image_generator.py", line 9, in
from oobabot.sd_client import StableDiffusionClient
File "/home/itburnz/miniconda3/envs/oobabot/lib/python3.8/site-packages/oobabot/sd_client.py", line 23, in
class StableDiffusionClient(SerializedHttpClient):
File "/home/itburnz/miniconda3/envs/oobabot/lib/python3.8/site-packages/oobabot/sd_client.py", line 58, in StableDiffusionClient
desired_sampler: str | None = None,
TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'

@jmoney7823956789378
Copy link

Make sure you're on python 3.10 or later.

@sidonsoft
Copy link
Author

yes I had a conda env set to python 3.8 for some reason, dropping to the base environment fixed the issue

@chrisrude
Copy link
Owner

@johnmoney83748932 thanks so much for the support!

@sidonsoft thanks for opening this -- I do want to support python 3.8, so I do want to fix this.

The reason is that there are some other ML libraries which don't support later python versions, and it's going to be much harder to add support using those if I don't keep things working for the start.

I'll add more tests and fix the stuff so python 3.8 will work.

@chrisrude chrisrude reopened this May 14, 2023
@chrisrude
Copy link
Owner

Fix checked in, will be included in 0.1.6

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

3 participants