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 in Windows 10 (v500, Qt6) #1244

Closed
nveaa1 opened this issue Sep 28, 2022 · 5 comments
Closed

Crash on Startup in Windows 10 (v500, Qt6) #1244

nveaa1 opened this issue Sep 28, 2022 · 5 comments
Labels

Comments

@nveaa1
Copy link

nveaa1 commented Sep 28, 2022

Hydrus version

v500

Qt major version

Qt 6

Operating system

Windows 10

Install method

Extract

Install and OS comments

Tested both with an attempted upgrade of v499 as well as a fresh install in a separate directory.

Bug description and reproduction

Attempting to start Qt6 build on Windows 10 crashes immediately with a log output like the one seen below.

Log output

v500, 2022/09/28 15:09:40: hydrus client started
v500, 2022/09/28 15:09:40: hydrus client failed
v500, 2022/09/28 15:09:40: Traceback (most recent call last):
  File "hydrus\hydrus_client.py", line 230, in boot
    from hydrus.client import ClientController
  File "PyInstaller\loader\pyimod02_importers.py", line 499, in exec_module
  File "hydrus\client\ClientController.py", line 38, in <module>
    from hydrus.client.db import ClientDB
  File "PyInstaller\loader\pyimod02_importers.py", line 499, in exec_module
  File "hydrus\client\db\ClientDB.py", line 16, in <module>
    from hydrus.core import HydrusDB
  File "PyInstaller\loader\pyimod02_importers.py", line 499, in exec_module
  File "hydrus\core\HydrusDB.py", line 2, in <module>
    import distutils.version
  File "_distutils_hack\__init__.py", line 88, in create_module
  File "importlib\__init__.py", line 127, in import_module
  File "PyInstaller\loader\pyimod02_importers.py", line 499, in exec_module
  File "setuptools\__init__.py", line 10, in <module>
  File "_distutils_hack\__init__.py", line 88, in create_module
  File "importlib\__init__.py", line 127, in import_module
ModuleNotFoundError: No module named 'setuptools._distutils'

v500, 2022/09/28 15:09:40: hydrus client shut down
@nveaa1 nveaa1 added the bug label Sep 28, 2022
@Shangailockdown
Copy link

Can confirm the issue is also happening in Windows 11.

v500, 2022/09/28 21:28:57: hydrus client started
v500, 2022/09/28 21:28:57: hydrus client failed
v500, 2022/09/28 21:28:57: Traceback (most recent call last):
File "hydrus\hydrus_client.py", line 230, in boot
from hydrus.client import ClientController
File "PyInstaller\loader\pyimod02_importers.py", line 499, in exec_module
File "hydrus\client\ClientController.py", line 38, in
from hydrus.client.db import ClientDB
File "PyInstaller\loader\pyimod02_importers.py", line 499, in exec_module
File "hydrus\client\db\ClientDB.py", line 16, in
from hydrus.core import HydrusDB
File "PyInstaller\loader\pyimod02_importers.py", line 499, in exec_module
File "hydrus\core\HydrusDB.py", line 2, in
import distutils.version
File "distutils_hack_init.py", line 88, in create_module
File "importlib_init_.py", line 127, in import_module
File "PyInstaller\loader\pyimod02_importers.py", line 499, in exec_module
File "setuptools_init_.py", line 10, in
File "distutils_hack_init.py", line 88, in create_module
File "importlib_init_.py", line 127, in import_module
ModuleNotFoundError: No module named 'setuptools._distutils'

v500, 2022/09/28 21:28:57: hydrus client shut down

@zeldatp151
Copy link

I am also having this issue with the linux qt6 build after updating to v500

v500, 2022/09/30 12:58:43: hydrus client started
v500, 2022/09/30 12:58:43: hydrus client failed
v500, 2022/09/30 12:58:43: Traceback (most recent call last):
  File "hydrus/hydrus_client.py", line 230, in boot
    from hydrus.client import ClientController
  File "PyInstaller/loader/pyimod02_importers.py", line 499, in exec_module
  File "hydrus/client/ClientController.py", line 38, in <module>
    from hydrus.client.db import ClientDB
  File "PyInstaller/loader/pyimod02_importers.py", line 499, in exec_module
  File "hydrus/client/db/ClientDB.py", line 16, in <module>
    from hydrus.core import HydrusDB
  File "PyInstaller/loader/pyimod02_importers.py", line 499, in exec_module
  File "hydrus/core/HydrusDB.py", line 2, in <module>
    import distutils.version
  File "_distutils_hack/__init__.py", line 88, in create_module
  File "importlib/__init__.py", line 127, in import_module
  File "PyInstaller/loader/pyimod02_importers.py", line 499, in exec_module
  File "setuptools/__init__.py", line 10, in <module>
  File "_distutils_hack/__init__.py", line 88, in create_module
  File "importlib/__init__.py", line 127, in import_module
ModuleNotFoundError: No module named 'setuptools._distutils'

v500, 2022/09/30 12:58:43: hydrus client shut down

@lc-guy
Copy link

lc-guy commented Oct 2, 2022

getting this as well on void linux, qt6 ver

@radiatornebula
Copy link

I also have the issue on Linux Qt6 v500.

I was able to get it to work temporarily by setting this environment variable:

SETUPTOOLS_USE_DISTUTILS=stdlib

which I found from pypa/setuptools#2353 (comment)

@hydrusnetwork
Copy link
Owner

Sorry for the trouble here everyone and for responding to this issue late. I rolled out a hotfix for the Windows 500:

https://github.com/hydrusnetwork/hydrus/releases/tag/v500a

And Linux was fixed in 501:

https://github.com/hydrusnetwork/hydrus/releases/tag/v501

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

6 participants