Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 602214 - net-im/pidgin-2.11.0 File "/usr/bin/purple-remote", line 75 """ % sys.argv[0] SyntaxError: invalid syntax
Summary: net-im/pidgin-2.11.0 File "/usr/bin/purple-remote", line 75 """ % sys.argv[0]...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-10 04:36 UTC by Ted Marston
Modified: 2016-12-11 22:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ted Marston 2016-12-10 04:36:49 UTC
python2.7, python3.3 and python3.4 are installed, but python3.4 is set as default.
net-im/pidgin-2.11.0 needs python2
Problem is same as one I reported 6 years ago in bug #459996 for an earlier version pidgin (net-im/pidgin-2.10.6)
The following change to /usr/bin/purple-remote cures the issue:
1c1
< #!/usr/bin/env python
---
> #!/usr/bin/env python2


Reproducible: Always

Steps to Reproduce:
run the following:
python /usr/bin/purple-remote help

Actual Results:  
The following error message:
  File "/usr/bin/purple-remote.Orig", line 75
    """ % sys.argv[0]
      ^
SyntaxError: invalid syntax


Expected Results:  
The following help message:
This program uses D-Bus to communicate with purple.

Usage:

    /usr/bin/purple-remote.Orig "command1" "command2" ...

Each command is of one of the three types:

    [protocol:]commandname?param1=value1&param2=value2&...
    FunctionName?param1=value1&param2=value2&...
    FunctionName(value1,value2,...)

The second and third form are provided for completeness but their use
is not recommended; use purple-send or purple-send-async instead.  The
second form uses introspection to find out the parameter names and
their types, therefore it is rather slow.

Examples of commands:

    jabber:goim?screenname=testone@localhost&message=hi
    jabber:gochat?room=TestRoom&server=conference.localhost
    jabber:getinfo?screenname=testone@localhost
    jabber:addbuddy?screenname=my friend

    setstatus?status=away&message=don't disturb
    getstatus
    getstatusmessage
    quit

    PurpleAccountsFindConnected?name=&protocol=prpl-jabber
    PurpleAccountsFindConnected(,prpl-jabber)
Comment 1 Ted Marston 2016-12-10 04:42:58 UTC
My Description entry says it all so hopefully there is no need for emerge --info etc.
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2016-12-11 22:15:20 UTC
commit 0e67547666b4d977c1d1b2dc9e8fcd863a6828be
Author: Lars Wendler <polynomial-c@gentoo.org>
Date:   Sun Dec 11 23:14:27 2016

    net-im/pidgin: pidgin still doesn't work with python3 (bug #602214).

    Package-Manager: portage-2.3.3