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

Crash on startup #205

Open
Blazeolmo opened this issue Aug 22, 2023 · 5 comments
Open

Crash on startup #205

Blazeolmo opened this issue Aug 22, 2023 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@Blazeolmo
Copy link

Describe the bug
On a fresh install, without any parameters on the webui except for --api, without any change to aiya, using launch.bot just checks that everything is installed and then crashes


Environment
Windows 10 22h2


Console logs
Closes too fast for me to be able to capture it, from what i've seen it's just "this has already been installed, that has already been installed"

@Blazeolmo Blazeolmo added the bug Something isn't working label Aug 22, 2023
@solareon
Copy link
Contributor

@Blazeolmo try running the launch.bat from a command prompt in the folder where Aiyabot is installed. You should be able to shift + right click and open a powershell/command prompt in that folder. Did you provide Aiyabot with the appropriate discord tokens?

@maz-net-au
Copy link

maz-net-au commented Aug 23, 2023

I get this. I have added the token in the .env file. Fresh install.

Traceback (most recent call last):
  File "C:\aiyabot\aiya.py", line 5, in <module>
    from core import ctxmenuhandler
  File "C:\aiyabot\core\ctxmenuhandler.py", line 7, in <module>
    from core import settings
  File "C:\aiyabot\core\settings.py", line 11, in <module>
    from core import queuehandler
  File "C:\aiyabot\core\queuehandler.py", line 81, in <module>
    class GlobalQueue:
  File "C:\aiyabot\core\queuehandler.py", line 84, in GlobalQueue
    queue: list[DrawObject | UpscaleObject | IdentifyObject] = []
TypeError: unsupported operand type(s) for |: 'type' and 'type'

@Blazeolmo
Copy link
Author

running from powershell doesn't change anything. i gave it the discord client secret in this format:

TOKEN = thetokenhere

and made it an .env file, exactly as written in the instructions.

@Blazeolmo
Copy link
Author

i also tried running aiya.py from the powershell and it closes immediately. that was kinda expected since the launch.bat just checks if you have everything installed, installs if not, then runs aiya.py

@maz-net-au
Copy link

So I'm not really a python user but here's what I found for my error.
Despite having python 3.10 installed, it was using 3.9. The line that was throwing the error for me was because of union type hinting which isn't supported before 3.10.
I updated my system to use a newer version and that solved my problem, but i believe i could have also used the py -3.10 launcher inside launch.bat where it says python.exe and that would have also worked.

tl;dr try update your python. if you run python --version and it says anything < 3.10, its not going to work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants