-
Notifications
You must be signed in to change notification settings - Fork 33
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
Comments
Make sure you're on python 3.10 or later. |
yes I had a conda env set to python 3.8 for some reason, dropping to the base environment fixed the issue |
@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. |
Fix checked in, will be included in 0.1.6 |
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'
The text was updated successfully, but these errors were encountered: