Bug 35810

Summary: SyntaxError: invalid syntax during "make install"
Product: Telepathy Reporter: Francesco <francesco.nwokeka>
Component: butterflyAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED MOVED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium CC: francesco.nwokeka
Version: git master   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Francesco 2011-03-30 10:59:25 UTC
Giving the command "./autogen" and "./configure" went well. So did make, but the "make install returns the following errors:


/bin/install -c -m 644 aliasing.py capabilities.py connection.py debug.py __init__.py presence.py avatars.py channel_manager.py connection_manager.py contacts.py handle.py mail_notification.py protocol.py '/usr/local/lib/python3.2/site-packages/butterfly'
Byte-compiling python modules...
aliasing.py  File "/usr/local/lib/python3.2/site-packages/butterfly/aliasing.py", line 64
    alias = u""
              ^
SyntaxError: invalid syntax

capabilities.pyconnection.py  File "/usr/local/lib/python3.2/site-packages/butterfly/connection.py", line 107
    except Exception, e:
                    ^
SyntaxError: invalid syntax

debug.py__init__.pypresence.py  File "/usr/local/lib/python3.2/site-packages/butterfly/presence.py", line 151
    message = arguments.get('message', u'')
                                         ^
SyntaxError: invalid syntax

avatars.pychannel_manager.pyconnection_manager.pycontacts.pyhandle.pymail_notification.pyprotocol.py  File "/usr/local/lib/python3.2/site-packages/butterfly/protocol.py", line 64
    'server' : u'messenger.hotmail.com',
                                      ^
SyntaxError: invalid syntax
Comment 1 Simon McVittie 2011-03-31 04:21:53 UTC
Butterfly is Python 2 code, which is not compatible with Python 3. On most distributions, /usr/bin/python is Python 2 and /usr/bin/python3 is Python 3.

Try:

./configure PYTHON=/usr/bin/python2.7
make
make install

(or replace /usr/bin/python2.7 as appropriate to get a Python executable with 2.5 <= version < 3).
Comment 2 GitLab Migration User 2019-12-03 19:47:19 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/telepathy/telepathy-butterfly/issues/51.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.