[aur-general] Nee help with a python PKGBUILD
Howdy, There is a new console screen reader in the works. It is written in python. I have written a PKGBUILD for it. The PKGBUILD works, it installs things where they are supposed to go, but the problem is the reader won't launch once installed in this way. If you just run setup.py it works fine though. Can someone please take a look and let me know how to fix this? Thanks Storm -- Powered by Arch Linux! I am registered Linux user number 508465: https://linuxcounter.net/user/508465.html My blog, Thoughts of a Dragon: http://www.stormdragon.tk/ get my public PGP key: gpg --keyserver wwwkeys.pgp.net --recv-key 43DDC193 Twitter and Facebook are so ... yesteryear. Get your 2MB Social account TODAY! http://2mb.social/main/register The great thing about Object Oriented code is that it can make small, simple problems look like large, complex ones. "No life anymore only darkness and pain, shape of shadow no flesh nor blood. All passions now gone no reason to be, cursed by the Lord of the Rings." Battlelore - The Curse of the Kings
Can you open it up by using /usr/bin/fenrir? Or is there an error Message?
Storm Dragon via aur-general <aur-general@archlinux.org> writes:
Howdy, There is a new console screen reader in the works. It is written in python. I have written a PKGBUILD for it. The PKGBUILD works, it installs things where they are supposed to go, but the problem is the reader won't launch once installed in this way. If you just run setup.py it works fine though. Can someone please take a look and let me know how to fix this? Thanks Storm
Try package() { cd "$srcdir/$_gitname" python setup.py install --root="$pkgdir" install } and do not put install file into source-array. This gives less errors, but still is not working. [haawda@frege fenrir]$ fenrir Traceback (most recent call last): File "/usr/bin/fenrir", line 137, in <module> main() File "/usr/bin/fenrir", line 132, in main app = fenrir() File "/usr/bin/fenrir", line 21, in __init__ raise RuntimeError('Cannot Initialize. Maybe the configfile is not available or not parseable') RuntimeError: Cannot Initialize. Maybe the configfile is not available or not parseable Best Regards Stefan
On 14 October 2016 20:59:19 CEST, Stefan Husmann <stefan-husmann@t-online.de> wrote:
Storm Dragon via aur-general <aur-general@archlinux.org> writes:
Howdy, There is a new console screen reader in the works. It is written in python. I have written a PKGBUILD for it. The PKGBUILD works, it installs things where they are supposed to go, but the problem is the reader won't launch once installed in this way. If you just run setup.py it works fine though. Can someone please take a look and let me know how to fix this? Thanks Storm
Try package() { cd "$srcdir/$_gitname" python setup.py install --root="$pkgdir" install } and do not put install file into source-array. This gives less errors, but still is not working.
[haawda@frege fenrir]$ fenrir Traceback (most recent call last): File "/usr/bin/fenrir", line 137, in <module> main() File "/usr/bin/fenrir", line 132, in main app = fenrir() File "/usr/bin/fenrir", line 21, in __init__ raise RuntimeError('Cannot Initialize. Maybe the configfile is not available or not parseable') RuntimeError: Cannot Initialize. Maybe the configfile is not available or not parseable
Best Regards
Stefan
Seems maybe the config files or folders might not be readable by normal users? Check the rights on /etc/fenrir/{settings, keyboard, substitution} and add -m644 to their install commands, or better yet just leave those out fine you're using cp anyway. -- "We apologize for the inconvenience"
On Sat, Oct 15, 2016 at 01:09:29AM +0200, Joost Bremmer via aur-general wrote:
On 14 October 2016 20:59:19 CEST, Stefan Husmann <stefan-husmann@t-online.de> wrote:
Storm Dragon via aur-general <aur-general@archlinux.org> writes:
Howdy, There is a new console screen reader in the works. It is written in python. I have written a PKGBUILD for it. The PKGBUILD works, it installs things where they are supposed to go, but the problem is the reader won't launch once installed in this way. If you just run setup.py it works fine though. Can someone please take a look and let me know how to fix this? Thanks Storm
Try package() { cd "$srcdir/$_gitname" python setup.py install --root="$pkgdir" install } and do not put install file into source-array. This gives less errors, but still is not working.
[haawda@frege fenrir]$ fenrir Traceback (most recent call last): File "/usr/bin/fenrir", line 137, in <module> main() File "/usr/bin/fenrir", line 132, in main app = fenrir() File "/usr/bin/fenrir", line 21, in __init__ raise RuntimeError('Cannot Initialize. Maybe the configfile is not available or not parseable') RuntimeError: Cannot Initialize. Maybe the configfile is not available or not parseable
Best Regards
Stefan
Seems maybe the config files or folders might not be readable by normal users? Check the rights on /etc/fenrir/{settings, keyboard, substitution} and add -m644 to their install commands, or better yet just leave those out fine you're using cp anyway.
Fenrir needs to be ran as root, so it should be able to read its config files. It has to access (I hope I got this right) /dev/vcsa*. I do help with writing Fenrir, but I do a lot more testing and very minor code stuff. Do I still need to do the -m644, or leave it out?
-- "We apologize for the inconvenience"
-- Powered by Arch Linux! I am registered Linux user number 508465: https://linuxcounter.net/user/508465.html My blog, Thoughts of a Dragon: http://www.stormdragon.tk/ get my public PGP key: gpg --keyserver wwwkeys.pgp.net --recv-key 43DDC193 Twitter and Facebook are so ... yesteryear. Get your 2MB Social account TODAY! http://2mb.social/main/register Follow me on GNU Social: https://social.stormdragon.tk/storm "I am the Lord of this Kingdom. He is the lord of this world. I am the Master of the wind. He is the Master of the wind. Carry your brothers if they die, through Hell they survived. We carry the sword on our shoulders until the end of time." Celesty - Lord of This Kingdom
On 15 October 2016 01:23:39 CEST, Storm Dragon via aur-general <aur-general@archlinux.org> wrote:
Fenrir needs to be ran as root, so it should be able to read its config files. It has to access (I hope I got this right) /dev/vcsa*. I do help with writing Fenrir, but I do a lot more testing and very minor code stuff. Do I still need to do the -m644, or leave it out?
-- "We apologize for the inconvenience"
Right sorry, I was just going off the top of my head since I'm not near my PC and can't install the package. If you're gonna keep the install commands then sure, -m644, keep things safe from normal users and also make things clear for the readers. If you're going to keep just the cp commands I'd at least add --no-preserve=owner to make sure the user who installed the package doesn't stay the owner of the files once installed. Either way should be fine, both of them too if you prefer that. Can't help you with your problem though, sorry. Sincerely, Joost Bremmer -- "We apologize for the inconvenience"
On Sat, Oct 15, 2016 at 1:23 AM, Storm Dragon via aur-general <aur-general@archlinux.org> wrote:
Fenrir needs to be ran as root, so it should be able to read its config files. It has to access (I hope I got this right) /dev/vcsa*. I do help with writing Fenrir, but I do a lot more testing and very minor code stuff. Do I still need to do the -m644, or leave it out?
Just to chime in here, but it I just want to stress that gnu coreutils cp(1) does *not* have a -m flag. the flag in question is for the similar install(1) binary which can be said to be the prefered way to install files in package() {}. Other than that, I might find a few minutes to install your package today and look into the problem. ok? cheers! mar77i
Howdy, Did you ever get the chance to do anything with the PKGBUILD? I'm still stuck with it, but it seems like it is so close to working. Thanks Storm On Sat, Oct 15, 2016 at 07:55:41AM +0200, AUR General wrote:
On Sat, Oct 15, 2016 at 1:23 AM, Storm Dragon via aur-general <aur-general@archlinux.org> wrote:
Fenrir needs to be ran as root, so it should be able to read its config files. It has to access (I hope I got this right) /dev/vcsa*. I do help with writing Fenrir, but I do a lot more testing and very minor code stuff. Do I still need to do the -m644, or leave it out?
Just to chime in here, but it I just want to stress that gnu coreutils cp(1) does *not* have a -m flag. the flag in question is for the similar install(1) binary which can be said to be the prefered way to install files in package() {}.
Other than that, I might find a few minutes to install your package today and look into the problem. ok?
cheers! mar77i
-- Powered by Arch Linux! I am registered Linux user number 508465: https://linuxcounter.net/user/508465.html My blog, Thoughts of a Dragon: http://www.stormdragon.tk/ get my public PGP key: gpg --keyserver wwwkeys.pgp.net --recv-key 43DDC193 Twitter and Facebook are so ... yesteryear. Get your 2MB Social account TODAY! http://2mb.social/main/register Get paid to read email: http://is.gd/feRiB "Fell in a river of illusion and apathy" Godsmack - Realign
On Tue, Oct 18, 2016 at 2:49 AM, Storm Dragon via aur-general <aur-general@archlinux.org> wrote:
Howdy, Did you ever get the chance to do anything with the PKGBUILD? I'm still stuck with it, but it seems like it is so close to working. Thanks Storm
Uh, no. Sorry. Thanks for the reminder, though. Will do. cheers! mar77i
participants (5)
-
Joost Bremmer
-
Martin Kühne
-
Stefan Husmann
-
Storm Dragon
-
Uwe