Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import Error #136

Closed
myloginid opened this issue Aug 30, 2016 · 3 comments
Closed

Import Error #136

myloginid opened this issue Aug 30, 2016 · 3 comments

Comments

@myloginid
Copy link

[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

@myloginid
Copy link
Author

Works on Python2.7

@majia29
Copy link

majia29 commented Dec 29, 2016

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)

@wbolster
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants