Skip to content

Import Error #136

Closed
Closed

Description

@myloginid

[root@ggg-1 ~]# pip install --upgrade HappyBase
DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
Requirement already up-to-date: HappyBase in /usr/lib/python2.6/site-packages
Requirement already up-to-date: thriftpy>=0.3.8 in /usr/lib/python2.6/site-packages (from HappyBase)
Requirement already up-to-date: six in /usr/lib/python2.6/site-packages (from HappyBase)
Requirement already up-to-date: ply<4.0,>=3.4 in /usr/lib/python2.6/site-packages (from thriftpy>=0.3.8->HappyBase)
[root@ggg-1 ~]# python
Python 2.6.6 (r266:84292, Aug 18 2016, 15:13:37)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import happybase
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python2.6/site-packages/happybase/init.py", line 14, in
from .connection import DEFAULT_HOST, DEFAULT_PORT, Connection # noqa
File "/usr/lib/python2.6/site-packages/happybase/connection.py", line 16, in
from .table import Table
File "/usr/lib/python2.6/site-packages/happybase/table.py", line 25
for name, cell in iteritems(cell_map)
^
SyntaxError: invalid syntax

[root@ggg-1 ~]# uname -a
Linux ggg-1.gce.com 2.6.32-642.3.1.el6.x86_64 #1 SMP Tue Jul 12 18:30:56 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
[root@ggg-1 ~]#

[root@ggg-1 ~]# python --version
Python 2.6.6

Activity

  1. myloginid commented on Aug 31, 2016

    @myloginid
    Author

    Works on Python2.7

  2. majia29 commented on Dec 29, 2016

    @majia29

    HappyBase 0.8

    Release date: 2014-02-25

    Add (and default to) ‘0.96’ compatibility mode in Connection.
    Add support for retrieving sorted columns, which is possible with the HBase 0.96 Thrift API. This feature uses a new sorted_columns argument to Table.scan(). An OrderedDict implementation is required for this feature; with Python 2.7 this is available from the standard library, but for Python 2.6 a separate ordereddict package has to be installed from PyPI. (issue #39)

  3. wbolster commented on Dec 29, 2016

    @wbolster
    Member

    use python 3 or maybe dead 2.7 if you must.

    python 2.6 is completely end of life and i will not spend time maintaining compatibility for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions