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

Error fixing wheel: libfreetype.6.dylib already exists #85

Open
pikeas opened this issue Nov 12, 2020 · 3 comments
Open

Error fixing wheel: libfreetype.6.dylib already exists #85

pikeas opened this issue Nov 12, 2020 · 3 comments
Labels

Comments

@pikeas
Copy link

pikeas commented Nov 12, 2020

$ delocate-wheel -w wheels -v foo-py3-none-any.whl
delocate.delocating.DelocationError: /private/var/folders/[random]/wheel/foo/.dylibs/libfreetype.6.dylib already exists

$ delocate-listdeps foo-py3-none-any.whl --all --depending
...
/opt/X11/lib/libfreetype.6.dylib:
    foo/_foo.so
    foo/foocpp.dylib

I'm a bit stumped here!

@naveen521kk
Copy link

naveen521kk commented Feb 4, 2021

I got something similar in the CI of manimpango
https://github.com/ManimCommunity/ManimPango/runs/1828331417?check_suite_focus=true#step:6:12856
Can anyone help me?

  + delocate-listdeps --depending /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/cibuildwheel9kwdmqze/built_wheel/manimpango-0.2.0-cp36-cp36m-macosx_10_9_x86_64.whl && delocate-wheel --require-archs x86_64 -v -w /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/cibuildwheel9kwdmqze/repaired_wheel /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/cibuildwheel9kwdmqze/built_wheel/manimpango-0.2.0-cp36-cp36m-macosx_10_9_x86_64.whl
  /Users/runner/pangobuild/lib/libcairo.2.dylib:
      manimpango/cmanimpango.cpython-36m-darwin.so
  /Users/runner/pangobuild/lib/libfontconfig.1.dylib:
      manimpango/cmanimpango.cpython-36m-darwin.so
  /Users/runner/pangobuild/lib/libfreetype.6.dylib:
      manimpango/cmanimpango.cpython-36m-darwin.so
  /Users/runner/pangobuild/lib/libglib-2.0.0.dylib:
      manimpango/cmanimpango.cpython-36m-darwin.so
  /Users/runner/pangobuild/lib/libgobject-2.0.0.dylib:
      manimpango/cmanimpango.cpython-36m-darwin.so
  /Users/runner/pangobuild/lib/libharfbuzz.0.dylib:
      manimpango/cmanimpango.cpython-36m-darwin.so
  /Users/runner/pangobuild/lib/libintl.dylib:
      manimpango/cmanimpango.cpython-36m-darwin.so
  /Users/runner/pangobuild/lib/libpango-1.0.0.dylib:
      manimpango/cmanimpango.cpython-36m-darwin.so
  /Users/runner/pangobuild/lib/libpangocairo-1.0.0.dylib:
      manimpango/cmanimpango.cpython-36m-darwin.so
  /Users/runner/pangobuild/lib/libpangoft2-1.0.0.dylib:
      manimpango/cmanimpango.cpython-36m-darwin.so
  Fixing: /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/cibuildwheel9kwdmqze/built_wheel/manimpango-0.2.0-cp36-cp36m-macosx_10_9_x86_64.whl
  Traceback (most recent call last):
    File "/Library/Frameworks/Python.framework/Versions/3.6/bin/delocate-wheel", line 8, in <module>
      sys.exit(main())
    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/delocate/cmd/delocate_wheel.py", line 72, in main
      check_verbose=opts.verbose)
    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/delocate/delocating.py", line 378, in delocate_wheel
      lib_filt_func, copy_filt_func)
    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/delocate/delocating.py", line 290, in delocate_path
      return copy_recurse(lib_path, copy_filt_func, copied)
    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/delocate/delocating.py", line 146, in copy_recurse
      _copy_required(lib_path, copy_filt_func, copied_libs)
    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/delocate/delocating.py", line 231, in _copy_required
      raise DelocationError(out_path + ' already exists')
  delocate.delocating.DelocationError: /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmpdpmyq2tw/wheel/manimpango/.dylibs/libpng16.16.dylib already exists

@HexDecimal HexDecimal added the bug label Sep 19, 2021
@HexDecimal
Copy link
Collaborator

HexDecimal commented Sep 23, 2021

I think is issue was fixed by PR #94. Could you try again with the latest version of delocate?

@HexDecimal
Copy link
Collaborator

Duplicate of #53

@HexDecimal HexDecimal marked this as a duplicate of #53 Sep 23, 2021
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

3 participants