Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

Error when using 3rd-party script with pyvips and media-libs

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
strategictraveler
n00b
n00b
Posts: 4
Joined: Sat Oct 19, 2024 1:42 pm

Error when using 3rd-party script with pyvips and media-libs

  • Quote

Post by strategictraveler » Thu Nov 13, 2025 6:36 pm

I'm trying to re-add tilesets to games-roguelike/catclysm-dda::guru since upsteam removed them from the main repo (they build them into releases using CI now), but the problem is that I keep having errors related to vips.

Theoretically I the ebuild should pull the tilesets from https://github.com/I-am-Erk/CDDA-Tilesets and the then run tools/gfx_tools/compose.py from https://github.com/CleverRaven/Cataclysm-DDA on every single tileset set in the USE flags. The script requires pyvips (not packaged in either ::gentoo or ::guru) and media-libs/vips[introspection,png].
For development I installed pyvips in a Python venv.

When I manually run compose.py on a tileset, the following error happens:

Code: Select all

(testvenv) user@a5b4e8eedb6e ~/test $ ./Cataclysm-DDA/tools/gfx_tools/compose.py ./CDDA-Tilesets/gfx/UltimateCataclysm
Traceback (most recent call last):
  File "/home/user/test/testvenv/lib/python3.13/site-packages/pyvips/vimage.py", line 1316, in __getattr__
    Introspect.get(name)
    ~~~~~~~~~~~~~~^^^^^^
  File "/home/user/test/testvenv/lib/python3.13/site-packages/pyvips/voperation.py", line 151, in get
    cls._introspect_cache[operation_name] = Introspect(operation_name)
                                            ~~~~~~~~~~^^^^^^^^^^^^^^^^
  File "/home/user/test/testvenv/lib/python3.13/site-packages/pyvips/voperation.py", line 37, in __init__
    op = Operation.new_from_name(operation_name)
  File "/home/user/test/testvenv/lib/python3.13/site-packages/pyvips/voperation.py", line 191, in new_from_name
    raise Error(f'no such operation {operation_name}')
pyvips.error.Error: no such operation icc_transform
  VipsOperation: class "icc_transform" not found


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/user/test/./Cataclysm-DDA/tools/gfx_tools/compose.py", line 1012, in <module>
    sys.exit(main())
             ~~~~^^
  File "/home/user/test/./Cataclysm-DDA/tools/gfx_tools/compose.py", line 1001, in main
    tileset_worker.compose()
    ~~~~~~~~~~~~~~~~~~~~~~^^
  File "/home/user/test/./Cataclysm-DDA/tools/gfx_tools/compose.py", line 346, in compose
    sheet.walk_dirs()
    ~~~~~~~~~~~~~~~^^
  File "/home/user/test/./Cataclysm-DDA/tools/gfx_tools/compose.py", line 608, in walk_dirs
    self.process_png(filepath)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/home/user/test/./Cataclysm-DDA/tools/gfx_tools/compose.py", line 635, in process_png
    self.sprites.append(self.load_image(filepath))
                        ~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/home/user/test/./Cataclysm-DDA/tools/gfx_tools/compose.py", line 668, in load_image
    image = image.icc_transform('srgb')
            ^^^^^^^^^^^^^^^^^^^
  File "/home/user/test/testvenv/lib/python3.13/site-packages/pyvips/vimage.py", line 1320, in __getattr__
    raise AttributeError
AttributeError
I did all of the above inside a container based on the official stage3 Docker image. The only extra packages I installed was git, vips, and pyvips inside a venv. The script runs successfully inside a Ubuntu container.
Top
RumpletonBongworth
Apprentice
Apprentice
User avatar
Posts: 152
Joined: Mon Jun 17, 2024 1:17 am

  • Quote

Post by RumpletonBongworth » Fri Nov 14, 2025 11:01 am

You may require media-libs/vips[lcms] for colour profile support.
Top
Post Reply

2 posts • Page 1 of 1

Return to “Unsupported Software”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy