Skip to content

Conversation

NelGson
Copy link
Collaborator

@NelGson NelGson commented Aug 14, 2017

Updated the ski rental python file to reflect 2017 changes

brettcannon and others added 3 commits June 5, 2017 14:51
Along the way, switch to importing modules instead of classes
Copy link
Collaborator Author

@NelGson NelGson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes necessary for SQL 17 revoscalepy updates

@uc-msft uc-msft merged commit 95a6346 into microsoft:master Aug 14, 2017
@HumaSatti
Copy link

I get a red error underline for the RxSqlServerData import & RxInSqlServer .

from revoscalepy import RxInSqlServer

IndentationError: unexpected indent

I have same issue and same run on sql but failed to run on Python or even in VSCode it also fail to run and gave the same error on revoscalepy

@NelGson
Copy link
Collaborator Author

NelGson commented Jul 10, 2018

Hi, Python in sensitive to indentations, so there must be an extra indentation where it is not supposed to be. Can you try to remove the unnecessary indentation and see if it helps?
I will check the file again to make sure the formatting is ok. Thanks, Nellie

@NelGson
Copy link
Collaborator Author

NelGson commented Jul 10, 2018

@HumaSatti Btw, which file were you trying to run?

@HumaSatti
Copy link

@NelGson I'm trying to replicate the Rental prediction and its database TutorialDB data that is provided by microsoft..
https://github.com/Microsoft/sql-server-samples/blob/master/samples/features/machine-learning-services/python/getting-started/rental-prediction/rental_prediction.py
and this code gave me the error

when run this program got the error ... revoscalepy is missing

from revoscalepy import rx_summary
from revoscalepy import RxInSqlServer
from revoscalepy import RxComputeContext, RxSqlServerData

ModuleNotFoundError: No module named 'revoscalepy'

I have successfully installed sql with R and Python and also in VS ... my code for R and Python is perfectly run on SQL .. My python application run in .net but when I test this code or apply this code then it cannot find this module and gave me the error. I'm also trying to replicate this code for my understanding but again it gave me revoscale error. the link of code which I'm trying is given below.
https://microsoft.github.io/sql-ml-tutorials/python/customerclustering/step/2.html

@NelGson
Copy link
Collaborator Author

NelGson commented Jul 11, 2018

@HumaSatti Hm...ok, can you add import revoscalepy at the top? Also, it is probably easier if you email me directly: n e g u s t @ microsoft.com. Thanks

@mmunyoki
Copy link

@HumaSatti and @NelGson ,
I'm getting the same error (ModuleNotFoundError: No module named 'revoscalepy').
Did you ever find a solution? if so, can you please share it ?
Thank you

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

Successfully merging this pull request may close these issues.

7 participants