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

DLL load failed while importing QtGui #1632

Open
Raichu98 opened this issue Nov 24, 2024 · 1 comment
Open

DLL load failed while importing QtGui #1632

Raichu98 opened this issue Nov 24, 2024 · 1 comment
Labels

Comments

@Raichu98
Copy link

Hydrus version

Version 599

Qt major version

Qt 6

Operating system

Windows other (specify in comments)

Install method

Running from source

Install and OS comments

No response

Bug description and reproduction

Hello
I was trying to install hydrus from souce since I only have Windows 8.1
Even though I ran into a few problems (git and my already installed python weren't on path and i had to put them manually) I still believed everything went well
Yet when I'm trying to do the final step of running the app, when i do it the cmd quickly opens and closes and this crash.log file appears on my desktop
Not sure where I went wrong. I searched for installing the Qt6 library pack to see if that makes it work (which seemed to had been installed correctly) yet that didn't seem to solve the issue.
Anyway I hope this can get solved :(

Log output

Critical boot error occurred! Details written to crash.log in either your db dir, userdir, or desktop!

DLL load failed while importing QtGui: No se puede encontrar el módulo especificado.

Traceback (most recent call last):
  File "C:\Users\Raichu\Documents\Hydrus\install_dir\hydrus\hydrus_client_boot.py", line 24, in <module>
    from hydrus.client.gui import QtInit
  File "C:\Users\Raichu\Documents\Hydrus\install_dir\hydrus\client\gui\QtInit.py", line 139, in <module>
    from qtpy import QtCore as QC
  File "C:\Users\Raichu\Documents\Hydrus\install_dir\venv\Lib\site-packages\qtpy\QtCore.py", line 134, in <module>
    from PySide6.QtGui import Qt as guiQt
ImportError: DLL load failed while importing QtGui: No se puede encontrar el módulo especificado.
@Raichu98 Raichu98 added the bug label Nov 24, 2024
@hydrusnetwork
Copy link
Owner

hydrusnetwork commented Nov 25, 2024

Hey, I am sorry for the trouble here. I hate to say it, but I think Windows 8.1 may simply be too old to run modern hydrus. I know for certain that Windows 7 crossed this line around v578, and the issues that hit 7 are not so different to 8.1.

For more background, please check out the recently added 'Windows 7' note under this section: https://hydrusnetwork.github.io/hydrus/running_from_source.html#walkthrough

I assume this is your first attempt to run hydrus, that you haven't been able to run, say, v597? If you can run v578 but not v580, or you can run any version up until I no longer supported Qt5, then I have to assume that we have a similar obsolescence issue. When you run 'setup_venv.bat' in the older version, you will want to choose Qt5. I suspect your problem here is that Win 8.1 won't run Qt6. Modern versions of hydrus no longer support Qt5.

EDIT: I forgot that I still do support Qt5, unintentionally. Please run the setup_venv.bat again in v599, and go through the (a)dvanced choices. When it comes to Qt, ask for '5' for Qt5. It may work, but I am planning to remove Qt5 support very very soon and I cannot promise any help with it in newer versions. v578 is the last version I can confidently say should work, as under the 'running from source' Win 7 popup.

Let me know how you get on, and I will update the help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants