pypar2 will not load, errors from commandline...

Bug #1031567 reported by bnsmith001
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pypar2 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

$ lsb_release -rd
Description: Ubuntu 12.04 LTS
Release: 12.04

$ apt-cache policy pypar2
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

Scenario 1: clicked on Launcher button for PyPar2
Result: Never loads.

Scenario 2: enterred pypar2 at commandline
Result: Never loads, but recv error list --
$ 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 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

Went to answers.launchpad.net.
Was told to report as bug on thread at https://answers.launchpad.net/ubuntu/+source/pypar2/+question/204717 .
Will link question to bug after I submit.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: pypar2 1.4-6
ProcVersionSignature: Ubuntu 3.2.0-27.43-generic 3.2.21
Uname: Linux 3.2.0-27-generic x86_64
ApportVersion: 2.0.1-0ubuntu11
Architecture: amd64
Date: Tue Jul 31 21:49:47 2012
PackageArchitecture: all
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: pypar2
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
bnsmith001 (bnsmith001) wrote :
Revision history for this message
Stefano Rivera (stefanor) wrote :

Please attach the confiugation file: ~/.pypar2/prefs.xml

It looks like it's failing while reading it.

Changed in pypar2 (Ubuntu):
status: New → Incomplete
Revision history for this message
bnsmith001 (bnsmith001) wrote :

Here's the file you asked for... the configuration file: ~/.pypar2/prefs.xml

The file that you asked for is 0 bytes long.

I'll try to reinstall again, and reply.

Revision history for this message
bnsmith001 (bnsmith001) wrote :

Apparently, reinstall doesn't remove the ~/.pypar2 directory...
I had to manually delete ~/.pypar2 before reinstall.

re-reinstalled pypar2 --
--
~$ df -BG
Filesystem 1G-blocks Used Available Use% Mounted on
/dev/loop0 29G 9G 20G 32% /
udev 3G 1G 3G 1% /dev
tmpfs 2G 1G 2G 1% /run
none 1G 0G 1G 0% /run/lock
none 3G 1G 3G 2% /run/shm
/dev/sda2 907G 728G 179G 81% /host
/dev/sdc1 150G 146G 4G 98% /media/...snip...
/dev/sdb1 1864G 1861G 3G 100% /media/...snip...
~$ sudo apt-get --reinstall install pypar2
[sudo] password for user:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  ...snip...
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/47.1 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 193199 files and directories currently installed.)
Preparing to replace pypar2 1.4-6 (using .../archives/pypar2_1.4-6_all.deb) ...
Unpacking replacement pypar2 ...
Processing triggers for man-db ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Setting up pypar2 (1.4-6) ...
---
When reinstall finished, there still was no ~/.pypar2 directory.
So, I loaded pypar2 from the Laucher on a whim.
The ~/.pypar2 got created as PyPar2 FINALLY started, after a week of working on this problem.

Attached is the new ~/.pypar2/prefs.xml file which has 995 bytes (not 0 bytes).

Revision history for this message
bnsmith001 (bnsmith001) wrote :

As far as I can tell, this can be closed.

Please make a note in man file or project docs under "troubleshooting" that -- if ~/.pypar2/prefs.xml is 0 bytes, make some room on your drives, delete ~/.pypar2 directory with command
[ sudo rm -rf ~/.pypar2 ]
then do a reinstall
[ sudo apt-get --reinstall install pypar2 ]
After executing Pypar2, the prefs.xml file will be re-created, and you are good to go.

Thank you, thank you, thank you!

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for pypar2 (Ubuntu) because there has been no activity for 60 days.]

Changed in pypar2 (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.