Closed Yoliani closed 2 years ago
same error
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)
https://drive.google.com/file/d/1vjesLnYWbH40U0uAIOmWRfcLRLbHPzE6/view?usp=sharing the link I share has the newest build of newm
@jbuchermn I don't have in my mind the complete list of dependencies, could you give me a hand with that?
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
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
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
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
intall ninja: yay -S ninja
yay -S ninja
@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
❯ newm-cmd clean
Traceback (most recent call last):
File "/usr/bin/newm-cmd", line 4, in
@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 @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
Dependencies: python-setuptools python-evdev python-numpy python-imageio python-matplotlib python-cairo python-psutil python-websockets python-pam python-pyfiglet python-fuzzywuzzy
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
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.
@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
Meson --version 0.61.2 Ninja --version 1.10.2
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
This was broken by Arch, you just have to know what changed
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.
@sadrach-cl @Yoliani @Pandademic temporary solution https://drive.google.com/file/d/1Uv-6clWQ_MJo4lYUPhF270fZ0X5wSaZT/view?usp=sharing
In the video I show how I install and solve the error
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
@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
?
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.
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.
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.
I'm on it.
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.
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.
For me,
yay -S newm-git
still fails with the same error. Is v0.3 using a fixed wlroots version? See stderr ofyay -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)
I cleared yay's cache and rebuilt, now it works. Thanks for the speedy fix!
@sadrach-cl @Yoliani @Pandademic Now it is patched, you should be able to install newm without problems.
For me,
yay -S newm-git
still fails with the same error. Is v0.3 using a fixed wlroots version? See stderr ofyay -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.
@sadrach-cl @Yoliani @Pandademic Now it is patched, you should be able to install newm without problems.
@sadrach-cl @Yoliani @Pandademic Now it is patched, you should be able to install newm without problems.
Remove the installation you have done with pip and install it with the following command: yay -S python-dasbus
For me,
yay -S newm-git
still fails with the same error. Is v0.3 using a fixed wlroots version? See stderr ofyay -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.
pip3 install python-Levenshtein
For me,
yay -S newm-git
still fails with the same error. Is v0.3 using a fixed wlroots version? See stderr ofyay -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
@CRAG666 I agree with you , a requirments.txt is necessary.
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 ;)
@sadrach-cl @Yoliani @Pandademic Now it is patched, you should be able to install newm without problems.
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
Are you actually inside newm? This complains it can't connect on dbus. It won't work when not run inside newm v0.3
@sadrach-cl @Yoliani @Pandademic Ahora está parcheado, deberías poder instalar newm sin problemas.
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
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 contienepython-dasbus
).Realmente no estaba hablando de las dependencias de Python, sino de las que no son de Python (en AUR). AAMOF,
ninja
faltaba 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.py
yflake.nix
y 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
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.
@sadrach-cl did it work after you install Levenshtein
?
yes, I am already cooking rice
yes, I am already cooking rice
https://github.com/CRAG666/dotfiles welcome to newm, I leave you my dotfiles maybe they will be useful to you
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
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