You are not logged in.

#1 2008-01-27 22:36:13

Pajaro
Member
Registered: 2004-04-21
Posts: 884

qupac - qt tupac frontend - features: search as you type, and more

Hi,

I am writing qupac, a qt frontend for tupac. from the beggining the idea of tupac was to create a tool to make pacman GUI development more reliable. qupac is a proof of it.

Key features
- Search as you type (live search) big_smile
- Drag&Drop queue handling

Planned key features
- Show post-install information before installing packages:
   1. It will let you know if a system upgrade will need more time than you can give at that moment, so you can do it some other moment.
   2. It will allow people how doesn't know linux (like your family tongue) to know if they can upgrade system or not without calling you before.

Basic usage: type words (local search). if not satisfied with results, press return (local+AUR search)

Available on aur.

NOTE: Preview reliease. Now it only installs packages. Anything else is ignore (checkboxes, options, removing).

screenshots:
Search results and install
You can see a package being dragged from search results to install queue.
qupac-search-install.png

Options and remove
Otions tab and remove queue.
qupac-options-remove.png

Last edited by Pajaro (2008-01-27 22:38:19)

Offline

#2 2008-01-27 22:48:20

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,229
Website

Re: qupac - qt tupac frontend - features: search as you type, and more

Looks really nice, but it doesn't work here yet. When searching the following is displayed in the terminal:

[edgar:~]#> qupac                                                                                                                                                                          [23:45 : ashren]
Starting tupac
Traceback (most recent call last):
  File "/usr/bin//qupac", line 89, in search
    packages=self.tupacTalker.getPackageList("s "+words)
  File "/usr/bin//qupac", line 66, in getPackageList
    resp.append(Package(line))
  File "/usr/bin//qupac", line 23, in __init__
    self.repo=line[1]
IndexError: list index out of range
Traceback (most recent call last):
  File "/usr/bin//qupac", line 100, in searchAur
    packages=self.tupacTalker.getPackageList("sa "+words)
  File "/usr/bin//qupac", line 66, in getPackageList
    resp.append(Package(line))
  File "/usr/bin//qupac", line 23, in __init__
    self.repo=line[1]
IndexError: list index out of range
Traceback (most recent call last):
  File "/usr/bin//qupac", line 100, in searchAur
    packages=self.tupacTalker.getPackageList("sa "+words)
  File "/usr/bin//qupac", line 66, in getPackageList
    resp.append(Package(line))
  File "/usr/bin//qupac", line 23, in __init__
    self.repo=line[1]
IndexError: list index out of range
Traceback (most recent call last):
  File "/usr/bin//qupac", line 100, in searchAur
    packages=self.tupacTalker.getPackageList("sa "+words)
  File "/usr/bin//qupac", line 66, in getPackageList
    resp.append(Package(line))
  File "/usr/bin//qupac", line 23, in __init__
    self.repo=line[1]
IndexError: list index out of range
Ending tupac

Offline

#3 2008-01-27 23:31:25

Pajaro
Member
Registered: 2004-04-21
Posts: 884

Re: qupac - qt tupac frontend - features: search as you type, and more

The problem comes from wrong tupac understanding. I will add a --debug option to qupac. Meanwhile, it would be helpfull for me to know if you have the same versions than me of qupac dependencies:
- extra/pyqt 4.3.3-1
- aur/tupac 0.5.1-1

Thank you in advanve.

Offline

#4 2008-01-27 23:33:27

Pajaro
Member
Registered: 2004-04-21
Posts: 884

Re: qupac - qt tupac frontend - features: search as you type, and more

Also,
- extra/python 2.5.1-5

Offline

#5 2008-01-28 00:08:40

ibendiben
Member
Registered: 2007-10-10
Posts: 519

Re: qupac - qt tupac frontend - features: search as you type, and more

Looks really nice indeed!

pacman -Q tupac python pyqt
tupac 0.5.1-1 <---just updated to tupac 0.5.1.1-1 ;)
python 2.5.1-5
pyqt 4.3.3-1

Unfortunately it just hangs at 'starting tupac', ctrl-c prints:

 
[ibendiben@ibendiben-pc ~]$ qupac
Starting tupac
Traceback (most recent call last):
  File "/usr/bin/qupac", line 138, in <module>
    ui.setupUi(window)
  File "/usr/bin/qupac", line 79, in setupUi
    self.tupacTalker=TupacTalker()
  File "/usr/bin/qupac", line 43, in __init__
    self.receive()
  File "/usr/bin/qupac", line 50, in receive
    resp+=part+self.fromchild.readline()
KeyboardInterrupt
Traceback (most recent call last):
  File "/usr/bin/qupac", line 126, in endTupac
    self.tupacTalker.end()
AttributeError: tupacTalker

Last edited by ibendiben (2008-01-28 00:28:27)

Offline

#6 2008-01-28 00:59:03

Pajaro
Member
Registered: 2004-04-21
Posts: 884

Re: qupac - qt tupac frontend - features: search as you type, and more

i had to stop using almost all python applications i ever used because they would stop working suddently, giving errors... including Deluge... Frist week at python. Gonna digg deeper.

Offline

#7 2008-01-28 01:54:54

nj
Member
Registered: 2007-04-06
Posts: 93

Re: qupac - qt tupac frontend - features: search as you type, and more

ibendiben wrote:

Unfortunately it just hangs at 'starting tupac'

Have you tried first to run 'sudo tupac' to generate the cache files? I had the same problem.

Offline

#8 2008-01-28 07:00:38

Pajaro
Member
Registered: 2004-04-21
Posts: 884

Re: qupac - qt tupac frontend - features: search as you type, and more

nj wrote:
ibendiben wrote:

Unfortunately it just hangs at 'starting tupac'

Have you tried first to run 'sudo tupac' to generate the cache files? I had the same problem.

Good! I am gonna implement tupac dir detection smile Though i don't hink it is ibendiben case, since he is developing a tupac dialog in bash.

Offline

#9 2008-01-28 10:58:00

ibendiben
Member
Registered: 2007-10-10
Posts: 519

Re: qupac - qt tupac frontend - features: search as you type, and more

nj wrote:
ibendiben wrote:

Unfortunately it just hangs at 'starting tupac'

Have you tried first to run 'sudo tupac' to generate the cache files? I had the same problem.

Yeah I tried that all ready. Tupac runs normally...

Offline

#10 2008-01-28 12:02:37

Mikko777
Member
From: Suomi, Finland
Registered: 2006-10-30
Posts: 837

Re: qupac - qt tupac frontend - features: search as you type, and more

works here, altho it needs more functionality asap! big_smile

Most important feature for gui would be listing and easy removing of installed packages. (bloat removal)

smile

Offline

#11 2008-01-28 23:50:18

Pajaro
Member
Registered: 2004-04-21
Posts: 884

Re: qupac - qt tupac frontend - features: search as you type, and more

qupac update 0.1.1:
- Added tupac dir existance verification.
- Set bufsize to 0 on tupac pipe interaction. The stalling was probably caused because of a too big buffer (apparently 1 was to big, so i set buffer size to 0)

Tell me if now it doens't stall.

Offline

#12 2008-01-29 00:14:27

Pajaro
Member
Registered: 2004-04-21
Posts: 884

Re: qupac - qt tupac frontend - features: search as you type, and more

Mikko777 wrote:

works here, altho it needs more functionality asap! big_smile

Most important feature for gui would be listing and easy removing of installed packages. (bloat removal)

smile

Yeah, much more functionallity needed! tongue

Offline

#13 2008-01-29 00:22:15

Pajaro
Member
Registered: 2004-04-21
Posts: 884

Re: qupac - qt tupac frontend - features: search as you type, and more

0.1.2:
- tupac wasn't getting closed after closing qupac window. killall tupac recommended

Last edited by Pajaro (2008-01-29 00:22:40)

Offline

#14 2008-01-29 04:33:49

mcmillan
Member
Registered: 2006-04-06
Posts: 737

Re: qupac - qt tupac frontend - features: search as you type, and more

Just installed both tupac and qupac and I seem to be having the same problem as ibendiben. I have the same version pyqt and python as you listed above and a newer version of tupac.

Offline

#15 2008-01-29 06:44:06

Pajaro
Member
Registered: 2004-04-21
Posts: 884

Re: qupac - qt tupac frontend - features: search as you type, and more

hmm Gonna look for computers with the same behaivour in order to be able to fix it.

Offline

#16 2008-01-29 08:14:35

ibendiben
Member
Registered: 2007-10-10
Posts: 519

Re: qupac - qt tupac frontend - features: search as you type, and more

hey, didn't work... sad
I was trying stuff however with the lines it cried about.
changing line 58 in:
            resp+=part+self.fromchild.readline(0)
did a trick...
It didn't hang... started the widget...
everything appears to work actually apart from the life search... manually search works however, drag'n'drop works installingworks hmm terribly slow that's all.

Last edited by ibendiben (2008-01-29 09:00:26)

Offline

#17 2008-01-29 12:17:32

Pajaro
Member
Registered: 2004-04-21
Posts: 884

Re: qupac - qt tupac frontend - features: search as you type, and more

thank you very much, gonna give it a look. The terribly slow may be cause because there are some tupac instances loaded... it happened to me.

Offline

#18 2008-01-30 00:03:32

Pajaro
Member
Registered: 2004-04-21
Posts: 884

Re: qupac - qt tupac frontend - features: search as you type, and more

update 0.1.3:
- Forking added in order to be able to terminate tupac in case the main window gets killed.
- migrate pipe communication to pexpect in an attempt to fix know bugs (i couldn't find any documentation about readline, but i found that for shells pexpect is the easy answer)

I was also able to reproduce first reported bug and fix it.

Apparently all bugs that have been appearing may come from the fact that python has different default behaviours from machine to machine... Or at least this is the only reasonable explanation i find... i never saw before anything so ambiguous in such a little program.

Offline

#19 2008-01-30 08:54:08

ibendiben
Member
Registered: 2007-10-10
Posts: 519

Re: qupac - qt tupac frontend - features: search as you type, and more

Done! cool and pretty fast too wink

Offline

#20 2008-05-22 22:17:19

LTSmash
Member
From: Aguascalientes - Mexico
Registered: 2008-01-02
Posts: 348
Website

Re: qupac - qt tupac frontend - features: search as you type, and more

Is this working nicely yet?

have you got a SVN repo or something to help testing?


Proud Ex-Arch user.
Still an ArchLinux lover though.

Currently on Kubuntu 9.10

Offline

#21 2008-05-23 00:53:12

Pajaro
Member
Registered: 2004-04-21
Posts: 884

Re: qupac - qt tupac frontend - features: search as you type, and more

Hi,

I haven't been developing personal projects for some months for personal reasons, and i still will be out for some other time.

I applied for the creation of a sourforge project of tupac/qupac. Once it gets activated I will tell you. Then you can send me a pm so i give you access to the svn of the project, and explain you the project plannification so it can more become usable as fast as posible.

Though I still can't keep on the delopment, i have a clear image of which are the next few steps to follow. I would really love to see this project grow, because it is close to become more usable, so getting additional development would be fantastic.

Offline

#22 2008-05-24 00:28:07

Pajaro
Member
Registered: 2004-04-21
Posts: 884

Re: qupac - qt tupac frontend - features: search as you type, and more

project created:
http://sourceforge.net/projects/tupac/
- Uploaded tupac
- Partially uploaded qupac: the ui files of the qt gui are in a computer that is not working now, but the python source is all uploaded.

Offline

#23 2009-08-12 14:03:32

warnec
Member
From: Poland
Registered: 2009-06-22
Posts: 166

Re: qupac - qt tupac frontend - features: search as you type, and more

So, how about the project? Has it been discontinued? Why? I'd love to see a nice GUI for Pacman (I find Shaman still a lil' bit immature)

Offline

#24 2009-08-12 15:16:17

Pajaro
Member
Registered: 2004-04-21
Posts: 884

Re: qupac - qt tupac frontend - features: search as you type, and more

Almost no features are miplemented. Only the very basic ones.

Its main purpose is to show how tupac helps making guis more responsible and usable. I don't plan to develop it in the next few months. Maybe later i will continue it.

Appart from live search, aur searches and drag and drop, the other main feature i wanted to add to qupac is the predownload of packages while updating the system. This feature would then scan the packages checking if they have any echoes in the post_install script and would show them to the user, so that one can pospone an update if it requires anything more than just pressing enter.

If i remember well, that's all that would make qupac different from other pacman guis.

Offline

#25 2009-08-12 17:37:44

warnec
Member
From: Poland
Registered: 2009-06-22
Posts: 166

Re: qupac - qt tupac frontend - features: search as you type, and more

Ok, glad to hear you are still working to make it better.


Can you make the AUR link work?

Offline

Board footer

Powered by FluxBB