momegas / megabots

🤖 State-of-the-art, production ready LLM apps made mega-easy, so you don't have to build them from scratch 🤯 Create a bot, now 🫵
MIT License
347 stars 35 forks source link

TypeError: unsupported operand type(s) for |: 'type' and 'NoneType' #24

Closed AhmedEwis closed 1 year ago

AhmedEwis commented 1 year ago

Hello,

I am following the code, but I am getting the below error in the first line of "from megabots import bot"

TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'

momegas commented 1 year ago

Are you using Python 3.10 or later? I should add this in the readme 😅

AhmedEwis commented 1 year ago

I am using Python 3.9.16 in my colab.

momegas commented 1 year ago

Can you try using 3.10 and up?

momegas commented 1 year ago

@AhmedEwis is this fixed with python 3.10?

stavrostheocharis commented 1 year ago

I had the same issue using python 3.8. It was fixed by using python 3.10.

AhmedEwis commented 1 year ago

@momegas yes, it is fixed, thank you!. I recommend to add this to the readme

stavrostheocharis commented 1 year ago

There is a new MR where actually, set the Python 3.10 on top of README ;)

momegas commented 1 year ago

Closing this then. Thank you for mentioning. I will