GNU bug report logs - #35606
Gajim

Previous Next

Package: guix;

Reported by: "Raghav Gururajan" <rvgn <at> disroot.org>

Date: Mon, 6 May 2019 19:22:01 UTC

Severity: normal

Done: Ricardo Wurmus <rekado <at> elephly.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Ricardo Wurmus <rekado <at> elephly.net>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#35606: closed (Gajim)
Date: Mon, 13 May 2019 07:06:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Mon, 13 May 2019 09:04:26 +0200
with message-id <87k1eu96o5.fsf <at> elephly.net>
and subject line Re: bug#35606: Gajim
has caused the debbugs.gnu.org bug report #35606,
regarding Gajim
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
35606: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=35606
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: "Raghav Gururajan" <rvgn <at> disroot.org>
To: bug-guix <at> gnu.org
Subject: Gajim
Date: Mon, 06 May 2019 19:21:17 +0000
[Message part 3 (text/plain, inline)]
## Versions
- OS: Linux
- GTK+ Version: 3.24.7
- PyGObject Version: 3.28.3
- python-nbxmpp Version: 0.6.10
- Gajim Version: 1.1.3

## Traceback
```
Traceback (most recent call last):
 File "/gnu/store/lzzphfg2hf52h1cb2dbvz3qvz2ca26na-gajim-1.1.3/lib/python3.7/site-packages/gajim/application.py", line 221, in _activate
 self.interface.run(self)
 File "/gnu/store/lzzphfg2hf52h1cb2dbvz3qvz2ca26na-gajim-1.1.3/lib/python3.7/site-packages/gajim/gui_interface.py", line 2550, in run
 app.plugin_manager = plugins.PluginManager()
 File "/gnu/store/lzzphfg2hf52h1cb2dbvz3qvz2ca26na-gajim-1.1.3/lib/python3.7/site-packages/gajim/plugins/helpers.py", line 129, in __call__
 cls.instance = super(Singleton, cls).__call__(*args, **kwargs)
 File "/gnu/store/lzzphfg2hf52h1cb2dbvz3qvz2ca26na-gajim-1.1.3/lib/python3.7/site-packages/gajim/plugins/pluginmanager.py", line 115, in __init__
 pc = self.scan_dir_for_plugins(path)
 File "/gnu/store/lzzphfg2hf52h1cb2dbvz3qvz2ca26na-gajim-1.1.3/lib/python3.7/site-packages/gajim/plugins/helpers.py", line 114, in wrapper
 result = f(*args, **kwargs)
 File "/gnu/store/lzzphfg2hf52h1cb2dbvz3qvz2ca26na-gajim-1.1.3/lib/python3.7/site-packages/gajim/plugins/pluginmanager.py", line 598, in scan_dir_for_plugins
 if not os.path.isdir(path):
 File "/gnu/store/h8l1pby3cm6b4fxsfwwr65b4d1hyh6cs-python-3.7.0/lib/python3.7/genericpath.py", line 42, in isdir
 st = os.stat(s)
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType

```
## Steps to reproduce the problem

Install and open the app. This bug error shows up.
[Message part 4 (text/html, inline)]
[Message part 5 (message/rfc822, inline)]
From: Ricardo Wurmus <rekado <at> elephly.net>
To: Tobias Geerinckx-Rice <me <at> tobias.gr>
Cc: 35606-done <at> debbugs.gnu.org,
 Clément Lassieur <clement <at> lassieur.org>,
 Raghav Gururajan <rvgn <at> disroot.org>
Subject: Re: bug#35606: Gajim
Date: Mon, 13 May 2019 09:04:26 +0200
Ricardo Wurmus <rekado <at> elephly.net> writes:

> Tobias Geerinckx-Rice <me <at> tobias.gr> writes:
>
>> Traceback (most recent call last):
>>  File
>> "/gnu/store/lzzphfg2hf52h1cb2dbvz3qvz2ca26na-gajim-1.1.3/lib/python3.7/site-packages/gajim/application.py",
>> line 221, in _activate
>>    self.interface.run(self)
>>  File
>> "/gnu/store/lzzphfg2hf52h1cb2dbvz3qvz2ca26na-gajim-1.1.3/lib/python3.7/site-packages/gajim/gui_interface.py",
>> line 2550, in run
>>    app.plugin_manager = plugins.PluginManager()
>>  File
>> "/gnu/store/lzzphfg2hf52h1cb2dbvz3qvz2ca26na-gajim-1.1.3/lib/python3.7/site-packages/gajim/plugins/helpers.py",
>> line 129, in __call__
>>    cls.instance = super(Singleton, cls).__call__(*args, **kwargs)
>>  File
>> "/gnu/store/lzzphfg2hf52h1cb2dbvz3qvz2ca26na-gajim-1.1.3/lib/python3.7/site-packages/gajim/plugins/pluginmanager.py",
>> line 115, in __init__
>>    pc = self.scan_dir_for_plugins(path)
>>  File
>> "/gnu/store/lzzphfg2hf52h1cb2dbvz3qvz2ca26na-gajim-1.1.3/lib/python3.7/site-packages/gajim/plugins/helpers.py",
>> line 114, in wrapper
>>    result = f(*args, **kwargs)
>>  File
>> "/gnu/store/lzzphfg2hf52h1cb2dbvz3qvz2ca26na-gajim-1.1.3/lib/python3.7/site-packages/gajim/plugins/pluginmanager.py",
>> line 598, in scan_dir_for_plugins
>>    if not os.path.isdir(path):
>>  File
>> "/gnu/store/h8l1pby3cm6b4fxsfwwr65b4d1hyh6cs-python-3.7.0/lib/python3.7/genericpath.py",
>> line 42, in isdir
>>    st = os.stat(s)
>> TypeError: stat: path should be string, bytes, os.PathLike or integer,
>
> This is a problem with the “add-plugin-dirs” phase.  After setting
> GAJIM_PLUGIN_PATH to “/tmp” Gajim seems to work fine for me.
>
> We need to make sure that even without setting GAJIM_PLUGIN_PATH “path”
> is a string.

I fixed this with commit a624c3631077aa3fa5c05849579932c5b67b985c.  When
GAJIM_PLUGIN_PATH is not set it will not be added to the list of
directories that are searched for plugins.

--
Ricardo



This bug report was last modified 6 years and 4 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.