You are not logged in.

#251 2017-01-07 13:50:58

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: powerpill reborn: pacman wrapper for faster downloads

He may be referring to the package in my repo, which was rebuilt today after I upgraded to Python 3.6 locally.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#252 2017-01-07 13:57:03

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: powerpill reborn: pacman wrapper for faster downloads

Oh, my bad in that case tongue

Offline

#253 2017-01-07 14:22:46

dapolinario
Member
From: Brasil
Registered: 2010-03-18
Posts: 58

Re: powerpill reborn: pacman wrapper for faster downloads

@x33a, I use the Xyne repository instead of the AUR, so I requested rebuilding the package.


Arch Linux: The power in your hands!

Offline

#254 2017-06-07 07:10:28

ishitatsuyuki
Member
Registered: 2014-03-30
Posts: 26

Re: powerpill reborn: pacman wrapper for faster downloads

Xyne, I found that powerpill doesn't handle return code on `-T` properly which breaks recent makepkg dependency handling (I set PACMAN=powerpill in makepkg.conf). Can you fix that?

Offline

#255 2017-06-11 18:49:55

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: powerpill reborn: pacman wrapper for faster downloads

ishitatsuyuki wrote:

Xyne, I found that powerpill doesn't handle return code on `-T` properly which breaks recent makepkg dependency handling (I set PACMAN=powerpill in makepkg.conf). Can you fix that?

When powerpill invokes pacman (or whatever wrapper the user has configured), it returns the exit code:

$ pacman -T powerpill; echo $?
0

$ powerpill -T powerpill; echo $?
0

$ pacman -T powerpill foo; echo $?
foo
127

$ powerpill -T powerpill foo; echo $?
foo
127

Can you give an example of when it fails?


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#256 2017-09-15 12:36:41

745275633
Member
Registered: 2017-08-21
Posts: 2

Re: powerpill reborn: pacman wrapper for faster downloads

powerpill can't run with LANG=C

Traceback (most recent call last):
File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/lib/python3.6/site-packages/Powerpill.py", line 990, in <module>
sys.exit(run_main())
File "/usr/lib/python3.6/site-packages/Powerpill.py", line 975, in run_main
return main(args)
File "/usr/lib/python3.6/site-packages/Powerpill.py", line 943, in main
powerpill = Powerpill(pargs)
File "/usr/lib/python3.6/site-packages/Powerpill.py", line 483, in __init__
self.pacman_conf = get_pacman_conf(pargs, self.conf)
File "/usr/lib/python3.6/site-packages/Powerpill.py", line 336, in get_pacman_conf
pacman_conf = XCPF.PacmanConfig.PacmanConfig(pargs['pacman_config'])
File "/usr/lib/python3.6/site-packages/XCPF/PacmanConfig.py", line 49, in __init__
self.load_from_file(conf)
File "/usr/lib/python3.6/site-packages/XCPF/PacmanConfig.py", line 54, in load_from_file
for section, key, value in pacman_conf_enumerator(filename):
File "/usr/lib/python3.6/site-packages/pycman/config.py", line 92, in pacman_conf_enumerator
line = f.readline()
File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 80: ordinal not in range(128)

Offline

#257 2017-09-15 23:53:47

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: powerpill reborn: pacman wrapper for faster downloads

745275633 wrote:

powerpill can't run with LANG=C

File "/usr/lib/python3.6/site-packages/pycman/config.py", line 92, in pacman_conf_enumerator
line = f.readline()
File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 80: ordinal not in range(128)

Seems to be an issue with pyalpm and your pacman.conf file. Report it to the pyalpm devs. Include your pacman.conf file when you do.

Moving to the powerpill thread (originally posted in my repo thread).


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#258 2017-09-16 09:51:47

progandy
Member
Registered: 2012-05-17
Posts: 5,251

Re: powerpill reborn: pacman wrapper for faster downloads

Xyne wrote:

Seems to be an issue with pyalpm and your pacman.conf file. Report it to the pyalpm devs. Include your pacman.conf file when you do.

At least it fails with an error. When pacman with LANG=C tries to display a package with an UTF-8 description or packager name, then part of the output will be silently missing. (e.g. binutils)
Thank you for locale-en-xx, I am using that as a replacement for LANG=C to avoid such problems for a few years now.

Last edited by progandy (2017-09-16 09:56:44)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#259 2017-09-17 00:25:25

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: powerpill reborn: pacman wrapper for faster downloads

progandy wrote:

Thank you for locale-en-xx, I am using that as a replacement for LANG=C to avoid such problems for a few years now.

big_smile

I still need to find a way to promote that locale. It would be great if one day it became widely adopted as an ISO locale wink


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#260 2017-09-23 22:29:04

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: powerpill reborn: pacman wrapper for faster downloads

I just realized that it's almost been 9 years since I published powerpill. f#$@


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#261 2017-11-16 13:57:41

denixx
Member
Registered: 2017-11-16
Posts: 7

Re: powerpill reborn: pacman wrapper for faster downloads

Hi!
Getting this:
PowerpillError: aria2c exited with 29
Can't figure out where to find what's wrong.

Offline

#262 2017-11-16 14:06:07

denixx
Member
Registered: 2017-11-16
Posts: 7

Re: powerpill reborn: pacman wrapper for faster downloads

To be precise: using yaourt and also pacmatic.

Offline

#263 2017-11-16 15:24:08

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: powerpill reborn: pacman wrapper for faster downloads

From aria2c's man page:

29 If the remote server was unable to handle the request due to a temporary overloading or maintenance

So, seems like an issue with your mirror.

Offline

#264 2017-11-16 16:48:40

jupitero
Member
Registered: 2017-08-10
Posts: 7

Re: powerpill reborn: pacman wrapper for faster downloads

Hello,
I experiencing problems with powerpill, when i try to do system upgrade using powerpill i get this error:

sudo powerpill -Syu
[sudo] password for tugay:
Unknown --info item: "flist"
rsync error: syntax or usage error (code 1) at options.c(450) [client=3.1.2]
PowerpillError: rsync exited with 1
> server: rsync://mirror.dkm.cz/archlinux/$repo/os/$arch

my powerpill.json file:https://ptpb.pw/E5Fx.json

Offline

#265 2017-11-19 17:29:30

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: powerpill reborn: pacman wrapper for faster downloads

jupitero wrote:
Unknown --info item: "flist"

Are you running powerpill on an ARM system ? The only reference to this error that I was able to find was this unanswered post about a Raspberry Pi on stack overflow.

Regardless, it seems to be an rsync error beyond my control. Notify the rsync devs and disable rsync support in powerpill for now.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#266 2017-11-21 08:52:10

jupitero
Member
Registered: 2017-08-10
Posts: 7

Re: powerpill reborn: pacman wrapper for faster downloads

No my system is x86_64

Offline

#267 2018-03-27 21:08:15

sigils
Member
Registered: 2016-07-12
Posts: 9

Re: powerpill reborn: pacman wrapper for faster downloads

I've been getting errors running powerpill since a full system upgrade after a long time without upgrading. 

The issue seems to be in the refresh_databases() function's download_queue.dbs variable having more than two values which the for-loop expects. I peered into Powerpill.py to see if I could implement a workaround but don't want to  break anything. Any thoughts on what might be causing the issue? (traceback info below).


P.S. in case it helps someone: I had a similar issue as on the previous page with pm2ml in the refresh_databases function. pacman kept installing a version dated 2016 even after removing the package and clearing the package cache, but i fixed with "pacaur -a" to only search in the aur.

Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.6/site-packages/Powerpill.py", line 990, in <module>
    sys.exit(run_main())
  File "/usr/lib/python3.6/site-packages/Powerpill.py", line 975, in run_main
    return main(args)
  File "/usr/lib/python3.6/site-packages/Powerpill.py", line 955, in main
    powerpill.refresh_databases()
  File "/usr/lib/python3.6/site-packages/Powerpill.py", line 782, in refresh_databases
    self.download(pm2ml_args, dbs=True, force=(self.pargs['refresh'] > 1))
  File "/usr/lib/python3.6/site-packages/Powerpill.py", line 607, in download
    for db, sigs in download_queue.dbs:
ValueError: too many values to unpack (expected 2)

Last edited by sigils (2018-04-08 19:47:10)

Offline

#268 2018-04-02 22:22:21

berocs
Member
Registered: 2018-04-02
Posts: 7

Re: powerpill reborn: pacman wrapper for faster downloads

Any advance on this issue? I'm having the exact same problem.

Offline

#269 2018-04-08 19:45:49

sigils
Member
Registered: 2016-07-12
Posts: 9

Re: powerpill reborn: pacman wrapper for faster downloads

berocs wrote:

Any advance on this issue? I'm having the exact same problem.

Not on my end yet. I've just been using pacman without powerpill in the meantime.

Offline

#270 2018-04-08 21:58:17

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: powerpill reborn: pacman wrapper for faster downloads

What version of Powerpill are you using? The line numbers don't match the current version and I am not able to reproduce it with a simple "powerpill -Syu" (the signatures download correctly).

If you are not using the latest version, either build and upgrade the packages from the AUR, or enable my repo and upgrade directly via Pacman.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#271 2018-04-09 00:45:58

berocs
Member
Registered: 2018-04-02
Posts: 7

Re: powerpill reborn: pacman wrapper for faster downloads

I'm using Antergos, and the problem was that some dependencies of powerpill aren't up-to-date in their repos. I solved it by removing the Antergos repo from /etc/pacman.conf, and updated the dependencies from the AUR. I then removed the Antergos packages that couldn't be found in the Arch repos, like antergos-alerts and antergos-midnight-timers. They didn't seem to be useful. Maybe sigils is using Antergos too.

Offline

#272 2018-04-09 13:03:38

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: powerpill reborn: pacman wrapper for faster downloads

Thanks for the clarification and update.

Incidentally, this clearly demonstrates why these forums do not support other Arch-based distributions. I am glad that you were able to get it working but I have to ask that you seek support on the Antergos forums from now on (or that you switch to vanilla Arch wink).


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#273 2018-04-27 06:28:13

cradlemann
Member
Registered: 2017-07-14
Posts: 14

Re: powerpill reborn: pacman wrapper for faster downloads

Hi Xyne,
I start using Powerpill some time ago and I want to ask you is it possible to commit to your project, maybe via github? I tried to find option to check file list, before download all files via system upgrade. During my searches I found couple of bugs, using flake8 tool and want to fix them.

Offline

#274 2018-04-27 11:48:35

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: powerpill reborn: pacman wrapper for faster downloads

cradlemann wrote:

Hi Xyne,
I start using Powerpill some time ago and I want to ask you is it possible to commit to your project, maybe via github? I tried to find option to check file list, before download all files via system upgrade. During my searches I found couple of bugs, using flake8 tool and want to fix them.

Last raised in 2015: https://bbs.archlinux.org/viewtopic.php … 7#p1584207


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#275 2018-04-27 12:27:25

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: powerpill reborn: pacman wrapper for faster downloads

cradlemann wrote:

During my searches I found couple of bugs, using flake8 tool and want to fix them.

Which bugs in which files? All I see are cosmetic errors.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

Board footer

Powered by FluxBB