JonnyHaystack / i3-resurrect

Simple solution to saving and restoring i3 workspaces
GNU General Public License v3.0
379 stars 19 forks source link

Crashes due to failed dependancy #74

Closed totalolage closed 4 years ago

totalolage commented 4 years ago

The script crashed on launch due to pkg_resources.DistributionNotFound: The 'enum-compat' distribution was not found and is required by i3ipc

To Reproduce

  1. run latest i3-resurrect

Screenshots If applicable, add screenshots to help explain your problem. img

System information (please complete the following information):

JonnyHaystack commented 4 years ago

How did you install i3-resurrect? Everything installs fine and runs without errors on the Travis CI build (Ubuntu Disco), and I'm not having any issues on Arch either. Both AUR packages have python-enum-compat from the AUR as a dependency so it should be installed on your system if you installed i3-resurrect via the AUR. Can you verify that you have that package installed?

totalolage commented 4 years ago

Yes, the first thing I did was to reinstall i3-resurrect, verify that python-enum-compat is installed as a dependency, tried installing python-enum-compa manually, tried using i3-resurrect-git all with same result.

JonnyHaystack commented 4 years ago

Okay I have managed to reproduce this. I had enum-compat installed under ~/.local so that's why it worked. Not sure why it's not working with the python-enum-compat package from the AUR, but I'll look into it.

For now it should work if you do python3 -m pip install --user enum-compat

JonnyHaystack commented 4 years ago

Looks like something weird is going on with python-enum-compat but I'm not entirely sure what. i3ipc-python has removed the enum-compat dependency, but this change is not in a release of i3ipc-python.

I'll remove the dependency on python-enum-compat and I'll change the dependency on python-i3ipc to i3ipc-python-git and that should fix it.

JonnyHaystack commented 4 years ago

Okay I've updated both AUR packages and it's fixed for me. Let me know if that works for you.

totalolage commented 4 years ago

Installing the pip package manually, as well as now with the changed dependancies works. Thanks!