Skip to content

Commit

Permalink
New library version to address failure. [(#2057)](GoogleCloudPlatform…
Browse files Browse the repository at this point in the history
…/python-docs-samples#2057)

* New library version to address failure.

* Encoded strings for library call

* Give changes a bit longer to finish

* fix lint error

* Update main.py

* Paren was missing
  • Loading branch information
engelke committed Mar 19, 2019
1 parent 1a7aca2 commit 264aeeb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion samples/hello_happybase/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ def main(project_id, instance_id, table_name):
#
# https://cloud.google.com/bigtable/docs/schema-design
row_key = 'greeting{}'.format(i)
table.put(row_key, {column_name: value})
table.put(
row_key, {column_name.encode('utf-8'): value.encode('utf-8')}
)
# [END writing_rows]

# [START getting_a_row]
Expand Down
2 changes: 1 addition & 1 deletion samples/hello_happybase/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
google-cloud-happybase==0.32.1
google-cloud-happybase==0.33.0

0 comments on commit 264aeeb

Please sign in to comment.