ntfs-config won't run on Ubuntu Jaunty - No module named NtfsConfig.NtfsConfig

Bug #413984 reported by JonathanM
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ntfs-config
Fix Released
Undecided
Unassigned

Bug Description

Hey, I don't know how much testing has been done in newer versions of Ubuntu so I thought I'd go ahead and try this and give you some feedback. Is the code/program being updated for newer versions of Ubuntu? Feisty's pretty old at this point. The official version in the repositories is actually 0.5.5....and it looks quite different form the newest version...like, it's not python scripts so much as executable code, and way different set of install/build dependencies.

anyway, I used the .deb package on the website that's supposed to work for feisty and installed that. no problems...I'm using the newest version of ntfs-3g (just came out a few weeks ago).

two errors when run from the commandline:
jonathan@jonathan-desktop:~/source/ntfs-config-1.0.1$ ntfs-config-root
Traceback (most recent call last):
  File "/usr/sbin/ntfs-config-root", line 41, in <module>
    from NtfsConfig.Fstab.FstabDialogs import dialog
ImportError: No module named NtfsConfig.Fstab.FstabDialogs

jonathan@jonathan-desktop:~/source/ntfs-config-1.0.1$ ntfs-config
Traceback (most recent call last):
  File "/usr/bin/ntfs-config", line 41, in <module>
    from NtfsConfig.NtfsConfig import *
ImportError: No module named NtfsConfig.NtfsConfig

So, I know where those two files were installed...the debian installer put them in:
/usr/share/pycentral/ntfs-config/site-packages/NtfsConfig

I've heard some things about people saying this NtfsConfig directory should be in /usr/lib/____ (can't remember the specific place right now...what is it?), and if that's the case why isn't that made obvious somehow or actually done by the installer?

Let me know what else you need from me!

Jonathan

security vulnerability: yes → no
visibility: private → public
Revision history for this message
JonathanM (dizzybirdtrane) wrote :

I'm mistaken, .deb install scripts make symlinks:
/usr/lib/python2.6/dist-packages/NtfsConfig /usr/share/pycentral/ntfs-config/site-packages/....

python -V = Python 2.6.2

I already have python-gtk2 and python-gtk2-dev ubuntu repository packages installed.

pygtk 2.14.1 source code installs library files to /usr/lib/python2.6/site-packages/gtk-2.0/....
pygtk 2.14.1 ubuntu packages install to usr/lib/python-support/python-gtk2/python2.6/, usr/lib/python-support/python-gtk2/python2.5/, and /usr/share/python-support/python-gtk2/gtk-2.0/...

more testing:
mv /usr/lib/python2.6/dist-packages/NtfsConfig /usr/lib/python2.6/site-packages
then try to start the program, doesn't work. same error messages

here are the results of further testing, and what works and what appears to still be broken.
mv /usr/lib/python2.6/dist-packages/NtfsConfig /usr/lib/python2.5/site-packages
ntfs-config-root
INFO : Launching ntfs-config with gksu...
Traceback (most recent call last):
  File "/usr/sbin/ntfs-config-root", line 71, in <module>
    os.putenv("%s_user-XAUTHORITY" % PACKAGE, os.environ["XAUTHORITY"])
  File "/usr/lib/python2.5/UserDict.py", line 22, in __getitem__
    raise KeyError(key)
KeyError: 'XAUTHORITY'

next, I tried this:
sudo ntfs-config

that works! I don't know why, but apparently moving the NtfsConfig symlink folders in /usr/lib/python/2.6/dist-packages to /usr/lib/python/2.5/site-packages worked. any insight on this?

Revision history for this message
Florent Mertens (givre) wrote :

Should be fixed in trunk

Changed in ntfs-config:
status: New → Fix Committed
Florent Mertens (givre)
Changed in ntfs-config:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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