jbuchermn / newm

Wayland compositor
MIT License
960 stars 31 forks source link

Error making: newm-git #71

Closed Yoliani closed 2 years ago

Yoliani commented 2 years ago

File "/home/edgardoyoliani/.cache/yay/newm-git/src/pywm/setup.py", line 15, in raise Exception("Fatal: Error executing 'ninja -C build': \n%r\n%r" % (stdout, stderr)) Exception: Fatal: Error executing 'ninja -C build':

==> ERROR: A failure occurred in build(). Aborting... -> error making: newm-git

I can't install it with yay -S newm-git

image

image

sadrach-cl commented 2 years ago

same error

CRAG666 commented 2 years ago

try this:

The installation in arch is quite simple, I will show you how to install newm v3:

1.- clone the arch repository that we do with yay -G newm-git 2.- cd to the folder we downloaded in the previous step 3.- clone the newm and pywm repositories (git clone https://github.com/jbuchermn/newm.git --branch=v0.3)

    • in the root of the newm-git folder, type makepkg -sic 5.- run the command newm-cmd clean, if the command works without python errors then you can use newm, otherwise install the missing packages.
CRAG666 commented 2 years ago

https://drive.google.com/file/d/1vjesLnYWbH40U0uAIOmWRfcLRLbHPzE6/view?usp=sharing the link I share has the newest build of newm

CRAG666 commented 2 years ago

@jbuchermn I don't have in my mind the complete list of dependencies, could you give me a hand with that?

sadrach-cl commented 2 years ago

try this:

The installation in arch is quite simple, I will show you how to install newm v3:

1.- clone the arch repository that we do with yay -G newm-git 2.- cd to the folder we downloaded in the previous step 3.- clone the newm and pywm repositories (git clone https://github.com/jbuchermn/newm.git --branch=v0.3)

    • in the root of the newm-git folder, type makepkg -sic 5.- run the command newm-cmd clean, if the command works without python errors then you can use newm, otherwise >install the missing packages.

❯ newm-cmd clean Traceback (most recent call last): File "/usr/bin/newm-cmd", line 3, in from newm import cmd File "/usr/lib/python3.10/site-packages/newm/init.py", line 3, in from .run import run File "/usr/lib/python3.10/site-packages/newm/run.py", line 12, in from .layout import Layout File "/usr/lib/python3.10/site-packages/newm/layout.py", line 31, in from .dbus import DBusEndpoint, DBusGestureProvider File "/usr/lib/python3.10/site-packages/newm/dbus/init.py", line 1, in from .endpoint import DBusEndpoint File "/usr/lib/python3.10/site-packages/newm/dbus/endpoint.py", line 7, in from dasbus.loop import EventLoop # type: ignore ModuleNotFoundError: No module named 'dasbus'

Yoliani commented 2 years ago

try this:

The installation in arch is quite simple, I will show you how to install newm v3:

1.- clone the arch repository that we do with yay -G newm-git 2.- cd to the folder we downloaded in the previous step 3.- clone the newm and pywm repositories (git clone https://github.com/jbuchermn/newm.git --branch=v0.3) 4. - in the root of the newm-git folder, type makepkg -sic 5.- run the command newm-cmd clean, if the command works without python errors then you can use newm, otherwise install the missing packages.

The problem persists

image

CRAG666 commented 2 years ago

try this:

The installation in arch is quite simple, I will show you how to install newm v3:

1.- clone the arch repository that we do with yay -G newm-git 2.- cd to the folder we downloaded in the previous step 3.- clone the newm and pywm repositories (git clone https://github.com/jbuchermn/newm.git --branch=v0.3)

    • in the root of the newm-git folder, type makepkg -sic 5.- run the command newm-cmd clean, if the command works without python errors then you can use newm, otherwise >install the missing packages.

❯ newm-cmd clean Traceback (most recent call last): File "/usr/bin/newm-cmd", line 3, in from newm import cmd File "/usr/lib/python3.10/site-packages/newm/init.py", line 3, in from .run import run File "/usr/lib/python3.10/site-packages/newm/run.py", line 12, in from .layout import Layout File "/usr/lib/python3.10/site-packages/newm/layout.py", line 31, in from .dbus import DBusEndpoint, DBusGestureProvider File "/usr/lib/python3.10/site-packages/newm/dbus/init.py", line 1, in from .endpoint import DBusEndpoint File "/usr/lib/python3.10/site-packages/newm/dbus/endpoint.py", line 7, in from dasbus.loop import EventLoop # type: ignore ModuleNotFoundError: No module named 'dasbus'

Just install the missing dependencies yay -S python-dasbus

CRAG666 commented 2 years ago

try this: The installation in arch is quite simple, I will show you how to install newm v3: 1.- clone the arch repository that we do with yay -G newm-git 2.- cd to the folder we downloaded in the previous step 3.- clone the newm and pywm repositories (git clone https://github.com/jbuchermn/newm.git --branch=v0.3) 4. - in the root of the newm-git folder, type makepkg -sic 5.- run the command newm-cmd clean, if the command works without python errors then you can use newm, otherwise install the missing packages.

The problem persists

image

intall ninja: yay -S ninja

Yoliani commented 2 years ago

yay -S ninja

image

CRAG666 commented 2 years ago

@sadrach-cl @Yoliani @Pandademic The error is nothing more than not all the dependencies were specified in the pkbuild, install ninja and the problem is solved

sadrach-cl commented 2 years ago

❯ newm-cmd clean Traceback (most recent call last): File "/usr/bin/newm-cmd", line 4, in import('pkg_resources').run_script('newm==0.2', 'newm-cmd') File "/usr/lib/python3.10/site-packages/pkg_resources/init.py", line 656, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python3.10/site-packages/pkg_resources/init.py", line 1453, in run_script exec(code, namespace, namespace) File "/usr/lib/python3.10/site-packages/newm-0.2-py3.10.egg/EGG-INFO/scripts/newm-cmd", line 3, in from newm import cmd File "/usr/lib/python3.10/site-packages/newm-0.2-py3.10.egg/newm/init.py", line 9, in from .run import run File "/usr/lib/python3.10/site-packages/newm-0.2-py3.10.egg/newm/run.py", line 5, in from .layout import Layout File "/usr/lib/python3.10/site-packages/newm-0.2-py3.10.egg/newm/layout.py", line 22, in from pywm.touchpad import ( ModuleNotFoundError: No module named 'pywm.touchpad'

@sadrach-cl @Yoliani @Pandademic The error is nothing more than not all the dependencies were specified in the pkbuild, install ninja and the problem is solved

Yoliani commented 2 years ago

@sadrach-cl @Yoliani @Pandademic The error is nothing more than not all the dependencies were specified in the pkbuild, install ninja and the problem is solved

All dependencies are installed, but the error persists

CRAG666 commented 2 years ago

Dependencies: python-setuptools python-evdev python-numpy python-imageio python-matplotlib python-cairo python-psutil python-websockets python-pam python-pyfiglet python-fuzzywuzzy

CRAG666 commented 2 years ago

ok, there is an error when compiling forget all the above, well what you can do is use the file that I built I left the link in the first messages

sadrach-cl commented 2 years ago

I deleted and cleaned everything, reinstalled the dependencies (I already had all of them, including the ones in your last list). I followed the indications that you published here step by step and the error is the same as at the beginning. 2022-02-26T23:58:40,836144007-03:00

CRAG666 commented 2 years ago

@sadrach-cl I could use a previous version of ninja, it is to test the problem I am sure it was some update of ninja or meson

sadrach-cl commented 2 years ago

Meson --version 0.61.2 Ninja --version 1.10.2

CRAG666 commented 2 years ago

It is very strange that this happened literally 8 days ago compile newm and the error did not appear, it is not meson, nor ninja the problem I already downgraded both and the problem persists, the error could be somewhere else, I will try to compile some other package that to track down the problem

CRAG666 commented 2 years ago

This was broken by Arch, you just have to know what changed

sadrach-cl commented 2 years ago

It's okay, it can happen. I'm interested in testing the project so when you find the solution let me know here to test it.

saludos, bro.

CRAG666 commented 2 years ago

@sadrach-cl @Yoliani @Pandademic temporary solution https://drive.google.com/file/d/1Uv-6clWQ_MJo4lYUPhF270fZ0X5wSaZT/view?usp=sharing

CRAG666 commented 2 years ago

In the video I show how I install and solve the error

sadrach-cl commented 2 years ago

ok, the process finishes without errors, but it does not copy the files to "/usr/bin" nor to "~/.local/lib/python3.10/site-packages/".

the log throws the following:

cat .cache/newm_log Traceback (most recent call last): File "/usr/bin/.start-newm", line 5, in from newm import run File "/home/sadrach/.local/lib/python3.10/site-packages/newm/init.py", line 3, in from .run import run File "/home/sadrach/.local/lib/python3.10/site-packages/newm/run.py", line 12, in from .layout import Layout File "/home/sadrach/.local/lib/python3.10/site-packages/newm/layout.py", line 11, in from pywm import ( ModuleNotFoundError: No module named 'pywm'

Pandademic commented 2 years ago

@sadrach-cl @Yoliani @Pandademic The error is nothing more than not all the dependencies were specified in the pkbuild, install ninja and the problem is solved

@CRAG666 has anyone tried getting the deps. by pip?

Narcha commented 2 years ago

The build fails in subprojects/wlroots/examples/dmabuf-capture.p/dmabuf-capture.c.o. Looking into this, it seems like this is the root cause. They merged a fix 6 days ago.

jbuchermn commented 2 years ago

Hi all,

thanks a lot for debugging this and pointing me to the wlroots bug.

I just updated pywm v0.3 - can you try if installation on branches v0.3 works? master is not updated and I'll probably not bother with doing so and instead merge v0.3 a bit earlier.

jbuchermn commented 2 years ago

Also, I changed the AUR package to use unstable (v0.3), but I'm not running Arch at the moment so I cannot test if that actually works. If you could give me some feedback, that's greatly appreciated.

Narcha commented 2 years ago

I'm on it.

sadrach-cl commented 2 years ago

Also, I changed the AUR package to use unstable (v0.3), but I'm not running Arch at the moment so I cannot test if that actually works. If you could give me some feedback, that's greatly appreciated.

It installed without errors and runs without problems when starting from tty or inside sway. thanks.

Narcha commented 2 years ago

For me, yay -S newm-git still fails with the same error. Is v0.3 using a fixed wlroots version? See stderr of yay -S newm-git

Edit: fixed by clearing yay's cache.

sadrach-cl commented 2 years ago

For me, yay -S newm-git still fails with the same error. Is v0.3 using a fixed wlroots version? See stderr of yay -S newm-git

I used this method, not with yay.

1.- clone the arch repository that we do with yay -G newm-git 2.- cd to the folder we downloaded in the previous step 3.- clone the newm and pywm repositories (git clone https://github.com/jbuchermn/newm.git --branch=v0.3)

    • in the root of the newm-git folder, type makepkg -sic
Narcha commented 2 years ago

I cleared yay's cache and rebuilt, now it works. Thanks for the speedy fix!

CRAG666 commented 2 years ago

@sadrach-cl @Yoliani @Pandademic Now it is patched, you should be able to install newm without problems.

CRAG666 commented 2 years ago

For me, yay -S newm-git still fails with the same error. Is v0.3 using a fixed wlroots version? See stderr of yay -S newm-git

I used this method, not with yay.

1.- clone the arch repository that we do with yay -G newm-git 2.- cd to the folder we downloaded in the previous step 3.- clone the newm and pywm repositories (git clone https://github.com/jbuchermn/newm.git --branch=v0.3) 4. - in the root of the newm-git folder, type makepkg -sic

This is already working, v3 is patched. It only remains to install all the dependencies, because as I said the pkbuild does not contain all the dependencies for v3.

Yoliani commented 2 years ago

@sadrach-cl @Yoliani @Pandademic Now it is patched, you should be able to install newm without problems.

image

CRAG666 commented 2 years ago

@sadrach-cl @Yoliani @Pandademic Now it is patched, you should be able to install newm without problems.

image

Remove the installation you have done with pip and install it with the following command: yay -S python-dasbus

jbuchermn commented 2 years ago

For me, yay -S newm-git still fails with the same error. Is v0.3 using a fixed wlroots version? See stderr of yay -S newm-git

I used this method, not with yay.

1.- clone the arch repository that we do with yay -G newm-git 2.- cd to the folder we downloaded in the previous step 3.- clone the newm and pywm repositories (git clone https://github.com/jbuchermn/newm.git --branch=v0.3) 4. - in the root of the newm-git folder, type makepkg -sic

This is already working, v3 is patched. It only remains to install all the dependencies, because as I said the pkbuild does not contain all the dependencies for v3.

Are there other dependencies missing apart from dasbus? Will add them as soon as possible.

sadrach-cl commented 2 years ago

pip3 install python-Levenshtein

CRAG666 commented 2 years ago

For me, yay -S newm-git still fails with the same error. Is v0.3 using a fixed wlroots version? See stderr of yay -S newm-git

I used this method, not with yay.

1.- clone the arch repository that we do with yay -G newm-git 2.- cd to the folder we downloaded in the previous step 3.- clone the newm and pywm repositories (git clone https://github.com/jbuchermn/newm.git --branch=v0.3) 4. - in the root of the newm-git folder, type makepkg -sic

This is already working, v3 is patched. It only remains to install all the dependencies, because as I said the pkbuild does not contain all the dependencies for v3.

Are there other dependencies missing apart from dasbus? Will add them as soon as possible.

@jbuchermn If 2 or 3 are missing, I honestly didn't pay attention to it when I installed v3 for the first time. But it would also help to have a requirements.txt

Pandademic commented 2 years ago

@CRAG666 I agree with you , a requirments.txt is necessary.

jbuchermn commented 2 years ago

pip3 install python-Levenshtein

Are you sure on this one? Never even heard of that library. Maybe this is pulled in by some dependency, but I'd be very surprised if it had to be added manually to newm.

I just checked the Python dependencies and I'm pretty sure they're completely listed in flake.nix (in the end, it runs on nixOS, which it wouldn't if there were any dependencies missing). The same dependencies should be in the AUR (I just checked and the latest commit contains python-dasbus).

I wasn't really talking about Python dependencies, rather about non-Python ones (on the AUR). AAMOF, ninja was missing until the last commit. So if you see anything missing there, please post here.

@jbuchermn If 2 or 3 are missing, I honestly didn't pay attention to it when I installed v3 for the first time. But it would also help to have a requirements.txt

@CRAG666 I agree with you , a requirments.txt is necessary.

I'm not so keen on having a requirements.txt, as it's just one more place (next to setup.py and flake.nix and PKGBUILD) to keep up-to-date, but yeah, maybe I'll add one and hope it will stay in sync ;)

Yoliani commented 2 years ago

@sadrach-cl @Yoliani @Pandademic Now it is patched, you should be able to install newm without problems.

image

Remove the installation you have done with pip and install it with the following command: yay -S python-dasbus pip uninstall dasbus yay -S python-dasbus

it does not work

jbuchermn commented 2 years ago

Are you actually inside newm? This complains it can't connect on dbus. It won't work when not run inside newm v0.3

CRAG666 commented 2 years ago

@sadrach-cl @Yoliani @Pandademic Ahora está parcheado, deberías poder instalar newm sin problemas.

imagen

Elimina la instalación que has hecho con pip e instálala con el siguiente comando: yay -S python-dasbus pip desinstalar dasbus yay -S python-dasbus

No funciona

@Yoliani run newm and then try the command, it seems that all dependencies have been installed. Then just start newm

CRAG666 commented 2 years ago

pip3 instalar python-Levenshtein

¿Estás seguro de esto? Ni siquiera he oído hablar de esa biblioteca. Tal vez esto se deba a alguna dependencia, pero me sorprendería mucho si tuviera que agregarse manualmente a newm.

Acabo de comprobar las dependencias de Python y estoy bastante seguro de que están completamente enumeradas en flake.nix(al final, se ejecuta en nixOS, lo que no sucedería si faltaran dependencias). Las mismas dependencias deberían estar en AUR (lo acabo de comprobar y la última confirmación contiene python-dasbus).

Realmente no estaba hablando de las dependencias de Python, sino de las que no son de Python (en AUR). AAMOF, ninjafaltaba hasta la última confirmación. Entonces, si ve que falta algo allí, publíquelo aquí.

@jbuchermn Si faltan 2 o 3, honestamente no le presté atención cuando instalé v3 por primera vez. Pero también ayudaría tener un requirements.txt

@ CRAG666 Estoy de acuerdo con usted, se necesita un requirments.txt.

No estoy tan interesado en tener un requirements.txt, ya que es solo un lugar más (al lado de setup.pyy flake.nixy PKGBUILD) para mantenerme actualizado, pero sí, tal vez agregue uno y espero que se mantenga sincronizado;)

I understand, could you offer me as the maintainer of that file, also in a while I will upload a pr with the instructions on how to build newm in arch, I just need the name of the current dependencies of newm and that's it. This manual page will be updated as newm grows

sadrach-cl commented 2 years ago

pip3 install python-Levenshtein

Are you sure on this one? Never even heard of that library. Maybe this is pulled in by some dependency, but I'd be very surprised if it had to be added manually to newm.

yesterday i got an error when i tried to boot and it indicated that something was deprecated. it suggested installing that package to fix it. i tried to look in the logs, but they were stepped on with today's logs.

Pandademic commented 2 years ago

@sadrach-cl did it work after you install Levenshtein?

sadrach-cl commented 2 years ago

yes, I am already cooking rice 20220301_21h27m08s_grim

CRAG666 commented 2 years ago

yes, I am already cooking rice 20220301_21h27m08s_grim

https://github.com/CRAG666/dotfiles welcome to newm, I leave you my dotfiles maybe they will be useful to you

jbuchermn commented 2 years ago

pip3 install python-Levenshtein

Are you sure on this one? Never even heard of that library. Maybe this is pulled in by some dependency, but I'd be very surprised if it had to be added manually to newm.

yesterday i got an error when i tried to boot and it indicated that something was deprecated. it suggested installing that package to fix it. i tried to look in the logs, but they were stepped on with today's logs.

Ah that's quite interesting.. Maybe has got something to do with fuzzywuzzy (https://pypi.org/project/fuzzywuzzy/) - the dependency is listed there. fuzzywuzzy appears to be deprecated completely, so I'll change this to its successor. https://github.com/jbuchermn/newm/issues/76