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

Something broke installation on windows? #48

Open
h-vetinari opened this issue Feb 18, 2025 · 9 comments
Open

Something broke installation on windows? #48

h-vetinari opened this issue Feb 18, 2025 · 9 comments

Comments

@h-vetinari
Copy link
Member

Seeing the following in a few places, e.g. conda-forge/vtk-feedstock#368 / conda-forge/ffmpeg-feedstock#312

Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... 
librsvg: The post-link script did not complete.
To take advantage of gdk-pixbuf's support for librsvg, please run:
    D:\bld\vtk_1739895041189\_h_env\Scripts\.gdk-pixbuf-post-link.bat

done
ERROR:conda.core.link:An error occurred while installing package 'conda-forge::gdk-pixbuf-2.42.12-hed59a49_0'.
Rolling back transaction: ...working... done
Traceback (most recent call last):
  File "D:\Miniforge\Scripts\conda-build-script.py", line 10, in <module>
    sys.exit(execute())
             ^^^^^^^^^
  File "D:\Miniforge\Lib\site-packages\conda_build\cli\main_build.py", line 622, in execute
    api.build(
  File "D:\Miniforge\Lib\site-packages\conda_build\api.py", line 211, in build
    return build_tree(
           ^^^^^^^^^^^
  File "D:\Miniforge\Lib\site-packages\conda_build\build.py", line 3656, in build_tree
    packages_from_this = build(
                         ^^^^^^
  File "D:\Miniforge\Lib\site-packages\conda_build\build.py", line 2438, in build
    create_build_envs(top_level_pkg, notest)
  File "D:\Miniforge\Lib\site-packages\conda_build\build.py", line 2212, in create_build_envs
    environ.create_env(
  File "D:\Miniforge\Lib\site-packages\conda_build\environ.py", line 1047, in create_env
    _execute_actions(prefix, precs)
  File "D:\Miniforge\Lib\site-packages\conda_build\environ.py", line 1337, in _execute_actions
    unlink_link_transaction.execute()
  File "D:\Miniforge\Lib\site-packages\conda\core\link.py", line 348, in execute
    self._execute(
  File "D:\Miniforge\Lib\site-packages\conda\core\link.py", line 954, in _execute
    raise CondaMultiError(
conda.CondaMultiError: post-link script failed for package conda-forge::gdk-pixbuf-2.42.12-hed59a49_0
location of failed script: D:\bld\vtk_1739895041189\_h_env\Scripts\.gdk-pixbuf-post-link.bat
==> script messages <==
<None>
==> script output <==
stdout: 
stderr: 
return code: 3221225785

()

This is with conda 25.1.1 and conda-build 25.1.2 on python 3.12. I have no proof, but my suspicion is that this might be related to the encoding errors that started appearing across the board recently (it seems that a default somewhere or under certain circumstances was switched away from utf8).

@jaimergp
Copy link
Member

The post-link script:

:: Make sure that gdk-pixbuf's loaders.cache is fully up-to-date.

:: Packages that install gdk-pixbuf loaders (such as librsvg) should have
:: post-link and post-unlink scripts that just execute this one, which will be
:: available as `%PREFIX%\Scripts\.gdk-pixbuf-post-link.bat`.

"%PREFIX%\Library\bin\gdk-pixbuf-query-loaders.exe" --update-cache >> "%PREFIX%/.messages.txt" 2>&1
if errorlevel 1 exit 1

@jaimergp
Copy link
Member

The internet says that error code is due to missing DLLs so maybe something in the stack changed enough to make this crash. I guess we could take a look in the gdk-pixbuf feedstock and try to run the same command as part of the tests.

@h-vetinari
Copy link
Member Author

The internet says that error code is due to missing DLLs so maybe something in the stack changed enough to make this crash

That would be a failure of our ABI pins somewhere 🥲

we could take a look in the gdk-pixbuf feedstock

This is the feedstock. 🙃

@conda-forge-admin, please rerender

@conda-forge-webservices
Copy link
Contributor

Hi! This is the friendly automated conda-forge-webservice.

I just wanted to let you know that I started rerendering the recipe in #49.

@friendlyvillain
Copy link

Exactly same issue related to gdk-pixbuf occurs in Windows OS. (Python: 3.12, Build: conda 25.1.1)

@traversaro
Copy link

I guess the root issue is conda-forge/libiconv-feedstock#48 . As quick workaround is to pin libiconv to 1.17 .

@friendlyvillain
Copy link

I guess the root issue is conda-forge/libiconv-feedstock#48 . As quick workaround is to pin libiconv to 1.17 .

Thank you! This is the only way to treat the problem in the current step.

@traversaro
Copy link

I guess the root issue is conda-forge/libiconv-feedstock#48 . As quick workaround is to pin libiconv to 1.17 .

Thank you! This is the only way to treat the problem in the current step.

This is conda-forge/libiconv-feedstock#49.

@jaimergp
Copy link
Member

conda-forge/libiconv-feedstock#49 was merged now.

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

No branches or pull requests

4 participants