Package Details: hydrus 601-1

Git Clone URL: https://aur.archlinux.org/hydrus.git (read-only, click to copy)
Package Base: hydrus
Description: Danbooru-like image tagging and searching system for the desktop
Upstream URL: http://hydrusnetwork.github.io/hydrus/
Licenses: custom
Conflicts: hydrus-docs-dummy
Submitter: Score_Under
Maintainer: Score_Under
Last Packager: Score_Under
Votes: 40
Popularity: 0.89
First Submitted: 2015-02-28 18:11 (UTC)
Last Updated: 2024-12-04 21:42 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 11 .. 13 Next › Last »

And1G commented on 2022-10-15 21:57 (UTC)

Does this work for anybody right now? Got to build 502-1 without documentation, but now getting only this error log on start:

Traceback (most recent call last):
  File "/opt/hydrus/hydrus/hydrus_client.py", line 24, in <module>
    from hydrus.client.gui import QtInit
  File "/opt/hydrus/hydrus/client/gui/QtInit.py", line 33, in <module>
    from qtpy import QtCore as QC
  File "/usr/lib/python3.10/site-packages/qtpy/QtCore.py", line 90, in <module>
    Qt.MidButton = Qt.MouseButton.MiddleButton = Qt.MiddleButton
  File "/usr/lib/python3.10/enum.py", line 480, in __setattr__
    raise AttributeError('Cannot reassign members.')
AttributeError: Cannot reassign members.

Any ideas?

Score_Under commented on 2022-10-02 19:44 (UTC) (edited on 2022-10-02 19:46 (UTC) by Score_Under)

To work around this, you can build without the documentation by removing the packages from the makedepends list and removing the mkdocs invocation in build() as well as the help argument to cp in package(). Other than that there isn't much that can be done from this pkgbuild until the jsmin package is updated by its AUR maintainer

(If this were gentoo I could lock this stuff behind a USE flag but I am not aware of any similar mechanism in PKGBUILDs)

And1G commented on 2022-10-02 08:37 (UTC)

From what I see, python2 is not directly required by hydrus itself, but by one of its dependencies. So this packages is not the right place to rant about updating.

hydrus -> mkdocs-material -> mkdocs-minify-plugin -> python-jsmin -> python2-setuptools (makedepends)

Can anybody confirm that?

misagh commented on 2022-10-02 08:21 (UTC)

Python 2 is deprecated and undesirable. This package needs to be updated to replace it with Python 3. As it stands, the package no longer builds as Python 2 fails to build.

spaceslug commented on 2022-09-30 14:29 (UTC)

Hydrus no longer builds for me because python2 fails to build. Since arch has now dropped python2 support, is there a way to get rid of the python2 dependency?

Lucki commented on 2022-08-30 22:28 (UTC) (edited on 2022-08-30 22:34 (UTC) by Lucki)

Can we get proper XDG in the applied patch for the BASE_DIR?

Example:

BASE_DIR = os.path.join(os.getenv("XDG_DATA_HOME", os.path.expanduser("~/.local/share")), "hydrus")

<deleted-account> commented on 2022-08-11 03:22 (UTC)

PySide6 is now the default over PySide2 since Qt6 is now the default: https://github.com/hydrusnetwork/hydrus/releases/tag/v495

Score_Under commented on 2022-08-04 09:55 (UTC)

@WorldTeacher, it would be my recommendation to remove all packages installed in ~/.local/lib/python3.10, whether by moving it away or by invoking pip for each one. Then the packages you still need can be reinstalled via the AUR or pacman.

WorldTeacher commented on 2022-08-04 07:57 (UTC)

@Score_Under, so just to make sure I understand it correctly: I should uninstall opencv-python using pip (as well as the packages located in ~/.local/lib/python3.10) and install them using pamac / pacman? Or did you mean something else?

Score_Under commented on 2022-08-03 20:49 (UTC) (edited on 2022-08-03 20:56 (UTC) by Score_Under)

@WorldTeacher I note that you have opencv installed locally via pip. Just a heads-up, installing anything locally via pip can take priority over system packages and mess with otherwise-working python library installations on your system. I strongly recommend against using local pip installs, and instead anyone wanting to do so should confine those installs to a virtual environment (python -m venv --help).

If you move your ~/.local/lib/python3.10 directory away (e.g. rename it and add ".old" to the end), that will get rid of all locally installed python packages which should either allow you to determine if that really is the problem, or allow you to revert back to a hopefully working state.

For the record, I have python-opencv installed alongside hydrus on my system and it is not a problem.