touchpad-indicator crashes under Ubuntu MATE

Bug #1482039 reported by Ben Shadwick
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Touchpad-indicator
Fix Released
Undecided
Lorenzo Carbonell

Bug Description

(created bug report for Rich's question because it affects me too -- Ben S.)

I've installed touchpad, but when I try to run it I get nothing but the mouse icon spinning for a few second then it quits.
Found the executable file for touchpad and ran it as sudo.

When I did I got an error message that showed the problem: "touchpad-indicator crashed with FileNotFoundError in open(): [Errno 2] No such file or directory: '/home/richard/.config/touchpad-indicator/touchpad-indicator.conf'"

It's true that the file is not there. I did a search to see if the file was anywhere, but could not find it anywhere on the machine.

Is there any advise you can give in order to get touchpad working on my machine?

Thanks,
Rich

If you need a copy of the crash report, I can send that to you. Let me know.

Revision history for this message
Ben Shadwick (benshadwick) wrote :

Here's a command-line output:

<gettext.GNUTranslations object at 0x7f66a56869e8>
#####################################################
No LSB modules are available.
#####################################################
Distributor ID: Ubuntu
Description: Ubuntu 15.04
Release: 15.04
Codename: vivid
Version: x86_64
#####################################################

Touchpad-Indicator version: 1.0.5-0extras15.04.0-src
#####################################################
Traceback (most recent call last):
  File "/opt/extras.ubuntu.com/touchpad-indicator/bin/touchpad-indicator", line 42, in <module>
    main()
  File "/opt/extras.ubuntu.com/touchpad-indicator/share/touchpad-indicator/touchpad_indicator.py", line 483, in main
    tpi=TouchpadIndicator()
  File "/opt/extras.ubuntu.com/touchpad-indicator/share/touchpad-indicator/touchpad_indicator.py", line 95, in __init__
    self.read_preferences()
  File "/opt/extras.ubuntu.com/touchpad-indicator/share/touchpad-indicator/touchpad_indicator.py", line 227, in read_preferences
    configuration = Configuration()
  File "/opt/extras.ubuntu.com/touchpad-indicator/share/touchpad-indicator/configurator.py", line 32, in __init__
    self.read()
  File "/opt/extras.ubuntu.com/touchpad-indicator/share/touchpad-indicator/configurator.py", line 56, in read
    f=codecs.open(comun.CONFIG_FILE,'r','utf-8')
  File "/usr/lib/python3.4/codecs.py", line 891, in open
    file = builtins.open(filename, mode, buffering)
FileNotFoundError: [Errno 2] No such file or directory: '/home/ben/.config/touchpad-indicator/touchpad-indicator.conf'
Exception ignored in: <bound method Context.__del__ of <pyudev.core.Context object at 0x7f66a5214a90>>
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pyudev/core.py", line 98, in __del__
AttributeError: 'NoneType' object has no attribute 'udev_unref'

Revision history for this message
Ben Shadwick (benshadwick) wrote :

Update: It looks like someone knew this was an issue but commented the fix out for some reason. Here is a modification to /opt/extras.ubuntu.com/touchpad-indicator/share/touchpad-indicator/configurator.py that seems to get things working:

 def read(self):
# f=codecs.open(comun.CONFIG_FILE,'r','utf-8')
  try:
   f=codecs.open(comun.CONFIG_FILE,'r','utf-8')
  except IOError as e:
   print(e)
   self.save()
   f=codecs.open(comun.CONFIG_FILE,'r','utf-8')
  '''
  try:
   self.params = json.loads(f.read())
  except ValueError as e:
   print(e)
   self.save()
  '''
  self.params = json.loads(f.read())
  f.close()

Revision history for this message
Marin Zapryanov (marin-6) wrote :

Errno 2] No such file or directory: '/home/ben/.config/touchpad-indicator/touchpad-indicator.conf'

I have the same problem i create directory and file in my home folder
mkdir /home/marin/.config/touchpad-indicator
then
echo '{}' > /home/marin/.config/touchpad-indicator/touchpad-indicator.conf
then
sudo chmod 777 /home/marin/.config/touchpad-indicator/touchpad-indicator.conf
and all works

Ubuntu 15.04. :)

Revision history for this message
Richard Hiltbrunn (rhiltbrunn) wrote : Re: [Bug 1482039] Re: touchpad-indicator crashes under Ubuntu MATE

Thanks, both of you.

I really appreciate the resposes. I'll have to try them when I'm in my
notebook again.

Again,
Thanks!

On Sat, Aug 22, 2015 at 11:13 AM, Marin Zapryanov <email address hidden>
wrote:

> Errno 2] No such file or directory: '/home/ben/.config/touchpad-
> indicator/touchpad-indicator.conf'
>
> I have the same problem i create directory and file in my home folder
> mkdir /home/marin/.config/touchpad-indicator
> then
> echo '{}' > /home/marin/.config/touchpad-indicator/touchpad-indicator.conf
> then
> sudo chmod 777
> /home/marin/.config/touchpad-indicator/touchpad-indicator.conf
> and all works
>
> Ubuntu 15.04. :)
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1482039
>
> Title:
> touchpad-indicator crashes under Ubuntu MATE
>
> Status in Touchpad-indicator:
> New
>
> Bug description:
> (created bug report for Rich's question because it affects me too --
> Ben S.)
>
> I've installed touchpad, but when I try to run it I get nothing but the
> mouse icon spinning for a few second then it quits.
> Found the executable file for touchpad and ran it as sudo.
>
> When I did I got an error message that showed the problem: "touchpad-
> indicator crashed with FileNotFoundError in open(): [Errno 2] No such
> file or directory: '/home/richard/.config/touchpad-indicator/touchpad-
> indicator.conf'"
>
> It's true that the file is not there. I did a search to see if the
> file was anywhere, but could not find it anywhere on the machine.
>
> Is there any advise you can give in order to get touchpad working on
> my machine?
>
> Thanks,
> Rich
>
> If you need a copy of the crash report, I can send that to you. Let me
> know.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/touchpad-indicator/+bug/1482039/+subscriptions
>

Revision history for this message
elviseftv (elvis.eftv) wrote :

The thing I can tell about this is that I managed to solve it by using your tips, but... the whole thing I made was just to:

Of course creating missing config folder and the file, and then:

(as @Marin Zapryanov suggested):
1.echo '{}' > /home/marin/.config/touchpad-indicator/touchpad-indicator.conf
2. sudo chmod 777 /home/marin/.config/touchpad-indicator/touchpad-indicator.conf

And that's all :)
Anyway thanks for suggestions.
I'm using Linux Mate 17.2 now, and as far as I can tell, Touchpad-Indicator installs it's files into /opt/ folder with "root" permissions. I changed them into my working user perms. I didn't change home config file permissions though, but I will test what kind of permissions it needs and then set it properly. I try to avoid using full 777 permissions on any files, even on my local PC/laptop.

Anyway, good to know this app works like a charm for me :)

Revision history for this message
Mantas Kriaučiūnas (mantas) wrote :

It seems crashes only 1.0.5 version, I'm using older 1.0.4 version without problems :)
working touchpad-indicator 1.0.4 can be installed from official Ubuntu-derivative Baltix repository:
ppa:baltix-members/ppa
See https://launchpad.net/~baltix-members/+archive/ubuntu/ppa/+packages?field.name_filter=touchpad-indicator

Changed in touchpad-indicator:
assignee: nobody → Lorenzo Carbonell (lorenzo-carbonell)
status: New → Fix Released
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.