lots of errors when I run pypar2 from command line

Asked by bnsmith001

I may need to download some modules, not sure.
Synaptic tells me that I have pypar2 1.4-6, after I did a re-install through Synaptic.
I'm running Ubuntu 12.04 (Precise), and Ubuntu has installed Python 2.7.3-0ubuntu2.
I also did a re-install on that Python package.

When I try to run it from the Launcher, nothing ever opens.
When I try to run pypar2 from the command line, I get --
---
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 111, in <module>
    root = xml.dom.minidom.parse(consts.filePrefs).documentElement
  File "/usr/lib/python2.7/xml/dom/minidom.py", line 1920, in parse
    return expatbuilder.parse(file)
  File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 924, in parse
    result = builder.parseFile(fp)
  File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 211, in parseFile
    parser.Parse("", True)
xml.parsers.expat.ExpatError: no element found: line 1, column 0
---
Based upon the errors, it appears that Python is not automatically accessing the libraries that it should.

Re-Booting after the installs.

Please advise if there is something else to try, based upon the errors.

I can be reached at bnsmith001-nospam[at]gmail[dot]com.

Since any direct email sent to help will not be spam, please remove the -nospam when contacting me.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu pypar2 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Can you give the output of:

lsb_release -a; apt-cache policy pypar2

Thanks

Revision history for this message
bnsmith001 (bnsmith001) said :
#2

I learn more about Linux every time I ask a question. Now I have to learn more about the lsb commands. :)

Sure.

The response --
: lsb_release -a; apt-cache policy pypar2
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04 LTS
Release: 12.04
Codename: precise
pypar2:
  Installed: 1.4-6
  Candidate: 1.4-6
  Version table:
 *** 1.4-6 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages
        100 /var/lib/dpkg/status

What now? :)

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

I suggest you run:

ubuntu-bug pypar2

And report a bug

Revision history for this message
bnsmith001 (bnsmith001) said :
#4

Thank you.

I didn't know about ubuntu-bug.
Reported as bug at https://bugs.launchpad.net/ubuntu/+source/pypar2/+bug/1031567

Thank you.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

Could try:

sudo apt-get --reinstall install pypar2

Revision history for this message
bnsmith001 (bnsmith001) said :
#6

> Could try:
> sudo apt-get --reinstall install pypar2

I did while I was writing the original question.
I removed & reinstalled pypar2 & Python, while I was writing the question.

Re: "pypar2 1.4-6, after I did a re-install" & "re-install on that Python package".

Yep... I tried that.

I figure something in the two imports isn't getting imported, thus the other errors occur.

I've linked this question to the bug report.

Revision history for this message
bnsmith001 (bnsmith001) said :
#7

GOOD NEWS!

Somehow, my backups filled up the volume where / is.
Some time after I installed pypar2 when I removed it and installed, or when I did one of the reinstalls or at some point...
the volume was very full, and it could only create a 0 length file for ~/.pypar2/prefs.xml .
Before doing the N-th reinstall (when "bugs" had me look at the the prefs.xml file which was 0 bytes long), I did a df and found that there was enough space on the volume holding / ... so I did ANOTHER reinstall.

Pypar2 started up like a champ, and is working very well at the moment.

So now I can continue the rar/par/burn process, trying to get my computer ready to restore my Windows 7 image... which will wipe out my Ubuntu. I'm in the process of backing up ALL data files from both environments. I've already copied all of my Ubuntu files to my Windows ~/Downloads/Ubuntu directory, I have a Win7 image from 05/28 on an external USB, a daily/weekly Win7 backup last made around 7/8/12... when Windows 7 stopped booting. Luckily, I chose to install Ubuntu as Wubi, so I have access to all of my Windows files through /host/* .

Hopefully, I don't run out of DVD-Rs before I run out of data to backup. ;) I'm using /host/User/-user-/* folders, and am using rar/par/md5 utils from my booting Ubuntu partition to backup all of my data.

Remaining Question (important in my situation) -- How do I list all Ubuntu packages that I have installed before I restore the Windows image?

After I get Win 7 back'd up, and the image restored, and Wubi re-installed, I need to start pouring through these backups and determine what files I need to restore. :)

Can you help with this problem?

Provide an answer of your own, or ask bnsmith001 for more information if necessary.

To post a message you must log in.