Mendeley Desktop fails to start issuing the following messages: Forcing system Qt Using bundled C++ runtime libraries Traceback (most recent call last): File "/opt/mendeleydesktop/bin/mendeleydesktop", line 244, in <module> if version_less_than(ssl_runtime_version, MINIMUM_SSL_VERSION): File "/opt/mendeleydesktop/bin/mendeleydesktop", line 111, in version_less_than return version_less_than(version_a[period_a+1:],version_b[period_b+1:]) File "/opt/mendeleydesktop/bin/mendeleydesktop", line 111, in version_less_than return version_less_than(version_a[period_a+1:],version_b[period_b+1:]) File "/opt/mendeleydesktop/bin/mendeleydesktop", line 106, in version_less_than elif (version_part_a < version_part_b): TypeError: unorderable types: int() < NoneType() The problem is related to Python 3.4 and is described here http://support.mendeley.com/customer/portal/questions/10500786-mendeleydesktop-1-13-1-fails-to-start-with-python3 By patching Mendeley desktop wrapper (/opt/mendeleydesktop/bin/mendeleydesktop) as Erik R. McNellis suggested it worked normally. Here is the patch: --- mendeleydesktop.orig 2015-01-15 15:49:15.589870680 +0100 +++ mendeleydesktop 2015-01-15 15:46:49.308954069 +0100 @@ -95,11 +95,11 @@ # Both version components are non-numeric, treat # them as equal return False - elif (version_part_a and version_part_b is None): + elif (type(version_part_a) is int and version_part_b is None): # Left version component is numeric, right component is not. # Treat the numeric part as greater return False - elif (version_part_b and version_part_a is None): + elif (type(version_part_b) is int and version_part_a is None): # Right version component is numeric, left component is not. # Treat the numeric part as greater return True Reproducible: Always Steps to Reproduce: 1. run mendeleydesktop 2. 3. Actual Results: type mendeleydesktop on the terminal and hit enter Expected Results: it fails to start Run normally.
Created attachment 395734 [details, diff] mendeley desktop patch I could not patch my wrapper using patch command but manually worked perfectly.
This was already reported and fixed for 1.13.1 (bug #536656). Somehow, the patch is not appled anymore in the version bumped package. The lines + + # patch for python3 + epatch "${FILESDIR}/mendeleydesktop-fix-python3.patch" should be added to the end of src_prepare(). The patch files/mendeleydesktop-fix-python3.patch is still in the tree.
Thanks Marius, that did the trick.
+ 07 Feb 2015; Justin Lecher <jlec@gentoo.org> mendeleydesktop-1.13.3.ebuild, + metadata.xml: + Add missing python dependency and compatibility handling, #539152 +