Package Details: pypar2 1.4-7

Git Clone URL: https://aur.archlinux.org/pypar2.git (read-only)
Package Base: pypar2
Description: Graphical frontend (PyGTK) for the Linux par2 utility
Upstream URL: http://pypar2.silent-blade.org/
Licenses: GPL
Submitter: None
Maintainer: ValHue
Last Packager: ValHue
Votes: 25
Popularity: 0.075892
First Submitted: 2007-03-06 12:44
Last Updated: 2015-06-09 11:15

Latest Comments

punkrockdude commented on 2014-08-02 15:16

@ValHue: After updating pypar2 and deleting ~/.pypar2/prefs.xml it seems to work every time I try to execute it. Thank you so much!

punkrockdude commented on 2014-08-02 15:13

@ValHue: Thank you but it only works the first time I execute PyPar2 and after that I can't open PyPar2 again until i delete prefs.xml yet another time.

ValHue commented on 2014-08-02 10:20

It is already solved!

If you have problems at first startup, delete the configuration file ~/.pypar2/prefs.xml

ValHue commented on 2014-08-02 09:28

@punkrockdude: I'm researching why this happens. Happens to me too, but a good while ago did not use it and I had not realized.

For starters: if you delete ~ / .pypar2/prefs.xml Pypar seamless launches.

The error is in the next start, to read the configuration file ~/.pypar2/prefs.xml Pypar find "True" and "False" values ​​instead of the Boolean values "1" and "0" respectively.

punkrockdude commented on 2014-08-01 13:23

Does someone know why I can't execute PyPar2 and why I get the following messages?:

[***@manjaro ~]$ pypar2
Traceback (most recent call last):
File "/usr/bin/pypar2", line 20, in <module>
import consts, dlgAbout, dlgOutput, gettext, gtk, gtk.glade, locale, os.path, prefsManager, sys, treeview
File "/usr/share/pypar2/src/dlgOutput.py", line 19, in <module>
import consts, gtk, prefsManager, signal, sys, os, vte
File "/usr/share/pypar2/src/prefsManager.py", line 116, in <module>
value = typeToolBox.cast(elt.getAttribute('value'), elt.getAttribute('type'))
File "/usr/share/pypar2/src/typeToolBox.py", line 39, in cast
return int(value)
ValueError: invalid literal for int() with base 10: 'False'

ValHue commented on 2013-12-02 08:56

Thanks @patsch, updated and fixed.

patsch commented on 2013-11-30 17:02

@ValHue
Maybe you slighly misunderstood my comment. doc.toprettyxml() is part of standard Python2. No dependencies (which is why we don't have to include anything else).

So I don't think we actually need PyXMLSec.

Panzerino commented on 2013-11-28 16:57

All is ok now. Build first the pyxmlsec with your PKGBUILD. Then build the pypar2. All is fine now.
Thanks.

ValHue commented on 2013-11-28 16:31

@Panzerino:

https://aur.archlinux.org/packages/pyxmlsec/ is outdated.

Use the PKGBUILD what I recommend to the package author: http://pastebin.com/AxEQd8a9

Panzerino commented on 2013-11-28 11:52

When build pypar2, this message stop the building:
"File "setup.py", line 48
raise SystemExit, "PyXMLSec requires Python version 2.2 or above."

ValHue commented on 2013-11-28 11:12

Thanks to @Patsch & @Panzerino PKGBUILD is updated!!

Panzerino commented on 2013-11-27 20:27

Worked for me! Thank you very much!

patsch commented on 2013-11-26 20:29

How does PyXMLSec fix the lack of xml.dom.ext?

To get pypar2 working again I simply edited the prefsManager.py, removed the include of xml.dom.ext in line 19 and replaced the call of xml.dom.ext.PrettyPrint() in line 73 with "file_object.write(doc.toprettyxml())".

Panzerino commented on 2013-11-20 10:30

http://pyxmlsec.labs.libre-entreprise.org/index.php?section=download

ValHue commented on 2013-11-19 15:46

https://aur.archlinux.org/packages/pyxmlsec/ is outdated.

I'll try to install the latest version and if it works I'll create a alternative PKGBUILD because the maintainer of PyXMLSec does not update it from 2009-05-04 16:01

Panzerino commented on 2013-11-19 11:49

There is a new PyXMLSec package ver. 3.0.1 from 07/2013.
Thanks.

ValHue commented on 2013-11-18 09:59

@Panzerino:
I uninstalled and reinstalled Pypar2, to force the error you are reporting. Indeed, has given the error "No module named ext"

I'm looking to see what the solution is, it seems that the origin of everything was removed PyXML from repositories.

By the way, for other occasions, do not hit the full error or lines of code here. Uiliza a service like pastebin and then you put the link. Read the use standards of AUR, not a whim of mine.

Panzerino commented on 2013-10-31 23:55

The error message in full:
Traceback (most recent call last):
File "/usr/bin/pypar2", line 20, in <module>
import consts, dlgAbout, dlgOutput, gettext, gtk, gtk.glade, locale, os.path, prefsManager, sys, treeview
File "/usr/share/pypar2/src/dlgOutput.py", line 19, in <module>
import consts, gtk, prefsManager, signal, sys, os, vte
File "/usr/share/pypar2/src/prefsManager.py", line 19, in <module>
import consts, os, typeToolBox, xml.dom.ext, xml.dom.minidom
ImportError: No module named ext

Panzerino commented on 2013-10-31 23:51

Not able to start the program after the last ( 18/10/2013) upgrade ( aura builder).
"ImportError: No module named ext" error message!

All the rest packs are installed, but pypar2 does not start.

ValHue commented on 2013-10-31 10:11

@Panzerino:
What purpose PyXMLSec install? Not required for this package.

As says @berbae, xml is included in python, and reliance on 'PyXML' is no longer needed, it is obsolete and does not exist anymore in the repos.

Panzerino commented on 2013-10-25 20:02

Not able to start the program after the last ( 18/10/2013) upgrade ( aura builder).
"ImportError: No module named ext" error message!

Not able to build manually either-
" raise SystemExit, "PyXMLSec requires Python version 2.2 or above."
^
SyntaxError: invalid syntax"

There is a new PyXMLSec package ver. 3.0.1 from 07/2013, but he does not recognize the installed python 2 version and not build too.
Thanks.


ValHue commented on 2013-10-18 07:33

@berbae:

Thank you for notifying me.

Greetings ...

berbae commented on 2013-10-17 21:23

The 'pyxml' dependency needs to be removed, it is obsolete and doesn't exist anymore in the repos.
The package builds without it (xml included in python)

stefanwilkens commented on 2011-12-18 22:37

The problem seems to have gone away, even though a related bug-report[1] mentions a patch is required. Perhaps a change in python 2.7x solved the issue?

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=617966

Anonymous comment on 2011-06-23 22:22

I'm also having this problem. Is there any fix, besides that ugly workaround?

Anonymous comment on 2010-10-21 18:15

The problem is with the prefs.xml file. If you comment out line 119 in main.py which reads

prefsManager.save()

The file will not get created. This means that preferences are not saved, but the program will run every time without crashing. It's a temporary work-around until someone figures out the problem.

Anonymous comment on 2010-10-21 02:56

I've built a working package. You run pypar2 once and it runs okay. Try to run it a 2nd time and you get the same errors as shown by Marmaduke. You have to remove .pypar2 in your home directory to get it to run again. Of course it will recreate the directory .pypar2 and you are back to being unable to run it again. I have no idea how to fix this one.

Anonymous comment on 2010-10-20 00:09

At this point I'm not quite sure how to fix it. I have to do some searching around and see if I can figure this thing out.

Anonymous comment on 2010-10-19 23:20

Broken by the Python2/Python3 change. I changed /usr/share/pypar2/src/main.py to start with #!/usr/bin/python2 instead of #!/usr/bin/python, but now i get this:

Traceback (most recent call last):
File "/usr/bin/pypar2", line 20, in <module>
import consts, dlgAbout, dlgOutput, gettext, gtk, gtk.glade, locale, os.path, prefsManager, sys, treeview
File "/usr/share/pypar2/src/dlgAbout.py", line 19, in <module>
import consts, gtk, os.path
ImportError: No module named gtk
[mike@archy pypar2]$ sudo nano /usr/share/pypar2/src/main.py
[mike@archy pypar2]$ pypar2
Traceback (most recent call last):
File "/usr/bin/pypar2", line 20, in <module>
import consts, dlgAbout, dlgOutput, gettext, gtk, gtk.glade, locale, os.path, prefsManager, sys, treeview
File "/usr/share/pypar2/src/dlgOutput.py", line 19, in <module>
import consts, gtk, prefsManager, signal, sys, os, vte
File "/usr/share/pypar2/src/prefsManager.py", line 116, in <module>
value = typeToolBox.cast(elt.getAttribute('value'), elt.getAttribute('type'))
File "/usr/share/pypar2/src/typeToolBox.py", line 39, in cast
return int(value)
ValueError: invalid literal for int() with base 10: 'False'