Brod8362/d4m

ubuntu pip install failing due to mismatched dependencies (with fixes)

Opened this issue · 1 comments

No idea how you want to organize/reword/document this, or what anyone want's to do about it, so, do as you please.

It seems jammy builds of libarchive-dev have a different address and cause the pip install for libarchive to throw the error

Library can not be loaded: [Errno 2] No such file or directory: b'liblibarchive.a'
error: [Errno 2] No such file or directory: b'liblibarchive.a'

This prevents the d4m pip install from finishing.

A simple systemlink for the new library to the old filename fixes it.

cd /usr/lib/x86_64-linux-gnu/
ln -s -f libarchive.a liblibarchive.a

Credit to this stackoverflow for the fix:
https://stackoverflow.com/questions/68910023/pipenv-libarchive-error-no-such-file-or-directory-bliblibarchive-a

Then this was followed by a second error due to some weird import mismatch in pyside6

  File "/home/eternal/.local/bin/d4m-gui", line 5, in <module>
    from d4m.gui import main
  File "/home/eternal/.local/lib/python3.10/site-packages/d4m/gui.py", line 10, in <module>
    import PySide6.QtConcurrent
ModuleNotFoundError: No module named 'PySide6.QtConcurrent'

which was fixed by running
pip uninstall pyside6-addons
pip uninstall pyside6-essentials
pip uninstall pyside6
pip install pyside6-essentials

And credit to this stackoverflow for that fix:
https://stackoverflow.com/questions/71903771/modulenotfounderror-no-module-named-pyside6-in-python-using-visual-studio-cod

with those two in place it got it running on my system just fine.

Thanks for the report. I know it's been a bit, but I'll try to see if I can replicate the issue. Not sure if this is my fault or just an Ubuntu-specific issue.