You are not logged in.

#126 2012-07-27 16:37:09

glong
Member
Registered: 2012-07-27
Posts: 3

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

New to Arch, just instaleld before the new iso. 

I have installed am I am using the pkgbrowser software.
I have one problem - I can't get it to work behind a squid proxy server.

I have set environment variables that are commonly looked at for proxy to no avail.
Is it possible to get pkagbrowser to work behind a proxy for AUR?

Packages work fine, and so does AUR search, if I put my machine outside the proxy.

I apologize if there is a better place to ask this, or if the info is available somwhere else.  I have read the pkgbrowser menu, and tried some forum searching and general googling to no avail.

Thanks for any insight or direction.
Nice package, thanks for your work.

Offline

#127 2012-07-27 20:24:34

kachelaqa
Member
Registered: 2010-09-26
Posts: 216

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

glong wrote:

Is it possible to get pkgbrowser to work behind a proxy for AUR?

At the moment, pkgbrowser has no support for proxies.

This is mainly because:

(a) up to now, nobody has asked for it, and
(b) i'm almost completely clueless about the subject...

I'm willing to try to add support, but I'm going to need a few pointers in the right direction. A simple test script written in python would help enormously.

Offline

#128 2012-07-29 19:34:28

glong
Member
Registered: 2012-07-27
Posts: 3

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

kachelaqa wrote:

I'm willing to try to add support, but I'm going to need a few pointers in the right direction. A simple test script written in python would help enormously.

Thanks for the reply. I know just enough python to get into trouble smile
What would a test script look like - by that I mean what would it funtionally do - Look for a proxy setting and use the proxy instead of a direct connect to port 80?

I really like your program so I am willing to try to help if I can.

Offline

#129 2012-07-29 22:39:08

kachelaqa
Member
Registered: 2010-09-26
Posts: 216

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

glong wrote:

What would a test script look like - by that I mean what would it funtionally do - Look for a proxy setting and use the proxy instead of a direct connect to port 80?

Yes, that's basically it: get the proxy settings from the relevant environment variable(s), and then use them to download something from each of the following:

The main thing is for me to have something written in python that is known to work with at least one particular setup.

PkgBrowser uses both the urllib2 and asynchore modules for network access (the relevant bits are in pkgbrowser/lib/backend.py). It's probably going to be asynchore that causes the most difficulty - but I have not yet looked into any of this in any great detail.

glong wrote:

I really like your program so I am willing to try to help if I can.

Glad you find it useful. Thanks for the feedback smile

PS:

Note that AUR urls use HTTPS, which squid apparently only has limited support for.

In your previous post, you only mention a problem with searching the AUR. But what about the other urls?

In PkgBrowser, can you access the Categories in the Filter pane?
What about the Cache tab in the Information pane? Does it ever list any ARM urls?

Last edited by kachelaqa (2012-07-29 23:57:16)

Offline

#130 2012-08-06 22:02:29

glong
Member
Registered: 2012-07-27
Posts: 3

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

Sorry for the late response, but I have found I do not have the knowledge or expertise to pursue this in a meaningful fashion.
I have written a firewall rule to let the machine running PkgBrowser access to the net without a proxy redirect, so that works for me.  I can now see the info on both the Arch packages and the AUR.

Last edited by glong (2012-08-06 22:03:03)

Offline

#131 2012-10-31 12:41:53

davidovitch
Member
From: Copenhagen
Registered: 2011-02-02
Posts: 45
Website

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

A few days ago searching the AUR suddenly stopped working. It gave following error:

Could not fetch url:
https://aur.archlinux.org/rpc.php?type=search&arg=test
[HTTP 301] Moved Permanently

Yaourt gave me the same error, so I changed to AUR url to its HTTPS variant in the yaourt config file, and it worked again. However, as you can see PkgBrowser is already pointing to the HTTPS url, so I am not sure I understand why my install is broken. Is there something obvious I am missing here?

Offline

#132 2012-10-31 16:09:48

kachelaqa
Member
Registered: 2010-09-26
Posts: 216

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

davidovitch wrote:

A few days ago searching the AUR suddenly stopped working. It gave following error:

Could not fetch url:
https://aur.archlinux.org/rpc.php?type=search&arg=test
[HTTP 301] Moved Permanently

Yaourt gave me the same error, so I changed to AUR url to its HTTPS variant in the yaourt config file, and it worked again. However, as you can see PkgBrowser is already pointing to the HTTPS url, so I am not sure I understand why my install is broken. Is there something obvious I am missing here?

This problem is caused by the AUR being moved to a different server. For some obscure reason, the configuration of the new server has broken PkgBrowser's AUR search.

I previously said that I would make a new release of PkgBrowser at the weekend when a new version of AUR is also being released. But I now think it might be possible to get out a new release today with a fix for this problem (and then also make another one at the weekend to deal with the remaining issues).

Offline

#133 2012-10-31 16:10:24

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

Offline

#134 2012-10-31 16:17:09

kachelaqa
Member
Registered: 2010-09-26
Posts: 216

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

That has got nothing to do with the AUR server changes - it's just a reminder about the forthcoming release of the next version of AUR (which is currently planned for Sunday 04 Nov 2012 - i.e it hasn't happened yet).

Offline

#135 2012-10-31 16:48:59

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

Sorry, I posted this as a reply for davidovitch, I didn't see your post.
You're right, we're still using AUR 1.9.1, my mistake.

Offline

#136 2012-10-31 18:13:44

kachelaqa
Member
Registered: 2010-09-26
Posts: 216

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

version 0.10.2 has been released today.

please see the changelog for further details.

Offline

#137 2012-10-31 21:11:58

davidovitch
Member
From: Copenhagen
Registered: 2011-02-02
Posts: 45
Website

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

Thanks for the quick update! Maybe its because I read you used some cython, but at least I have the impression it is faster now :-) Apologies for not using/consulting the bug tracker on google code...my bad.

Offline

#138 2012-11-02 14:16:20

kachelaqa
Member
Registered: 2010-09-26
Posts: 216

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

Could I please ask some PkgBrowser users to do some simple testing?

There is one user who is experiencing crashes when clicking on the Files tab.

I would be grateful if anyone can confirm or disconfirm this bug, and also say whether they are using a 64bit machine or not.

Many thanks smile

Offline

#139 2012-11-02 14:57:57

bohoomil
Member
Registered: 2010-09-04
Posts: 2,376
Website

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

Yes, PkgBrowser segfaults when clicking on the Files tab (Arch x86_64).


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#140 2012-11-02 16:08:56

kachelaqa
Member
Registered: 2010-09-26
Posts: 216

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

I've put up a potential patch for the Files Tab problem.

If anybody experiencing this issue could test the patch and report back, it would be very helpful.

Instructions for testing (installs under /usr/local):

$ mkdir /tmp/pkgbrowser
$ cd /tmp/pkgbrowser/
$ wget https://pkgbrowser.googlecode.com/files/pkgbrowser-0.10.2.tar.gz
$ wget https://pkgbrowser.googlecode.com/files/files_tab.patch
$ tar -xf pkgbrowser-0.10.2.tar.gz
$ patch -Nr- -p1 -d pkgbrowser-0.10.2 < pb_files.patch
$ cd pkgbrowser-0.10.2
$ make && sudo make install
$ /usr/local/bin/pkgbrowser

To remove:

$ sudo make uninstall

Thanks smile

Last edited by kachelaqa (2012-11-03 17:29:42)

Offline

#141 2012-11-02 18:52:56

bohoomil
Member
Registered: 2010-09-04
Posts: 2,376
Website

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

Unfortunately, the patch doesn't seem to help -- still segfaults with no further output...


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#142 2012-11-02 19:21:17

davidovitch
Member
From: Copenhagen
Registered: 2011-02-02
Posts: 45
Website

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

same here, patch has no result. Segmentation fault remains. I thought I would to try to look into alpm.pyx, but it realised the complexity outruns my basic cython knowledge to offer a quick help :-)

Offline

#143 2012-11-03 17:37:17

kachelaqa
Member
Registered: 2010-09-26
Posts: 216

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

I'm fairly confident that I have a fix for the files tab bug now.

The instructions above have been updated with a link to a new patch if anybody wants to test it.

This fix will go into the release I'm expecting to make when the new AUR version goes live (i.e. probably within the next couple of days).

Offline

#144 2012-11-04 00:10:16

saphire
Member
Registered: 2012-11-04
Posts: 2

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

Very good tool, thanks!

Last edited by saphire (2012-11-04 00:11:16)

Offline

#145 2012-11-04 10:51:10

davidovitch
Member
From: Copenhagen
Registered: 2011-02-02
Posts: 45
Website

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

Works as it should now. Great, Thanks!

Offline

#146 2012-11-04 16:31:47

kachelaqa
Member
Registered: 2010-09-26
Posts: 216

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

version 0.11 has been released today.

please see the changelog for further details.

Offline

#147 2012-11-13 02:33:20

kachelaqa
Member
Registered: 2010-09-26
Posts: 216

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

version 0.11.1 has been released today.

please see the changelog for further details.

Offline

#148 2012-11-13 02:39:08

GSF1200S
Member
Registered: 2008-12-24
Posts: 474

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

Still using and enjoying this program heavily; thanks for the update!

Offline

#149 2012-11-13 05:43:44

GSF1200S
Member
Registered: 2008-12-24
Posts: 474

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

I will say, I do wish there was some way I could put values in a config file somewhere so my theme would match PkgBrowser. As it is now, every time I see a PkgBrowser update, I copy the color attributes in the fmt.py into a file, update, then try to paste replace the old text in place so the colors match. Sometimes it works, and other times PkgBrowser spits out a syntax error and wont start. Then, I go through each line 1 by 1 attempting to change the colors individually.

You did put in a dark theme that attempts to be dark, and im sure that works for 95% of people. Im really not bothered by the above, but I thought id let you know smile

Offline

#150 2012-11-13 16:15:50

kachelaqa
Member
Registered: 2010-09-26
Posts: 216

Re: PkgBrowser: A utility for browsing pacman databases and the AUR

GSF1200S wrote:

Still using and enjoying this program heavily; thanks for the update!

Glad you're still finding it useful smile

GSF1200S wrote:

I will say, I do wish there was some way I could put values in a config file somewhere so my theme would match PkgBrowser. As it is now, every time I see a PkgBrowser update, I copy the color attributes in the fmt.py into a file, update, then try to paste replace the old text in place so the colors match. Sometimes it works, and other times PkgBrowser spits out a syntax error and wont start. Then, I go through each line 1 by 1 attempting to change the colors individually.

You did put in a dark theme that attempts to be dark, and im sure that works for 95% of people. Im really not bothered by the above, but I thought id let you know smile

I thought we had already solved this?

The "colour-scheme=system" option should automatically pick up the colours from your system's theme. It shouldn't be necessary to manually patch PkgBrowser.

You seemed happy with the results when we went throught this previously, so what's changed since then?

Offline

Board footer

Powered by FluxBB