Skip to content

Cant deploy with python 3.5 #25

@coristig

Description

@coristig

HelloWorld works fine with python 2.7, yhat 1.9.12

Below it fails using python 3.5, yhat 1.9.12

from yhat import Yhat, YhatModel
class HelloWorld(YhatModel):
   def execute(self, data):
       me = data['name']
       greeting = "Hello %s!" % me
       return { "greeting": greeting }
yh = Yhat("colin",  "d325fc5bcb83fc197ee01edb58b4b396", "https://sandbox.c.yhat.com")
yh.deploy("HelloWorld", HelloWorld, globals())
Are you sure you want to deploy? (y/N): y

extracting model
  File "<unknown>", line 1
    class HelloWorld(YhatModel):
                                ^
SyntaxError: unexpected EOF while parsing

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions