Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#66302 - [kdeconnect] Nautilus extension fails because of wrong attribute used in code

Attached to Project: Community Packages
Opened by Chigozirim Chukwu (FirstAirBender) - Sunday, 19 April 2020, 03:42 GMT
Last edited by Antonio Rojas (arojas) - Monday, 20 April 2020, 16:37 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Antonio Rojas (arojas)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
I have installed kdeconnect and it comes with the Nautilus extension, however I've been noticing that Nautilus does not give me any options to use kdeconnect features from the file manager.

Today when I started Nautilus from the terminal, I saw that the error was due to a wrong attribute being used :

```
Traceback (most recent call last):
File "/usr/share/nautilus-python/extensions/kdeconnect-share.py", line 37, in <module>
i18n = gettext.translation('kdeconnect-nautilus-extension')
File "/usr/lib/python3.8/gettext.py", line 588, in translation
raise FileNotFoundError(ENOENT,
FileNotFoundError: [Errno 2] No translation file found for domain: 'kdeconnect-nautilus-extension'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/share/nautilus-python/extensions/kdeconnect-share.py", line 40, in <module>
print('kdeconnect-nautilus: {0}'.format(e.strerr))
AttributeError: 'FileNotFoundError' object has no attribute 'strerr'
```

After opening the extension, I noticed that indeed the error was that there is a mistake in printing the `strerror` property of `OSError`. They used `strerr` instead of `strerror`.

I verified this was the problem by updating the code to the correct property and now, the extension is working as exptected.


Additional info:
* package version(s)
kdeconnect 1.4-2
* config and/or log files etc.
* link to upstream bug report, if any
https://phabricator.kde.org/T12995
Steps to reproduce:
Install package version and open nautilus from terminal
This task depends upon

Closed by  Antonio Rojas (arojas)
Monday, 20 April 2020, 16:37 GMT
Reason for closing:  Upstream
Additional comments about closing:  Not a packaging issue

Loading...