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

Cant deploy with python 3.5 #25

Open
coristig opened this issue Dec 14, 2016 · 1 comment
Open

Cant deploy with python 3.5 #25

coristig opened this issue Dec 14, 2016 · 1 comment
Labels

Comments

@coristig
Copy link
Contributor

coristig commented Dec 14, 2016

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
@coristig coristig added the bug label Dec 14, 2016
@glamp
Copy link
Contributor

glamp commented Dec 15, 2016

fixed in e344fb6 but can't figure out how to write test for it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants