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

Invalid Syntax in engine.py - line 115, self.seed = 5L #19

Closed
ghost opened this issue Mar 5, 2017 · 3 comments
Closed

Invalid Syntax in engine.py - line 115, self.seed = 5L #19

ghost opened this issue Mar 5, 2017 · 3 comments

Comments

@ghost
Copy link

ghost commented Mar 5, 2017

(C:\Program Files\Anaconda3) F:\Data Science\movielens\spark-movie-lens>server.py
Traceback (most recent call last):
File "F:\Data Science\movielens\spark-movie-lens\server.py", line 3, in
from app import create_app
File "F:\Data Science\movielens\spark-movie-lens\app.py", line 5, in
from engine import RecommendationEngine
File "F:\Data Science\movielens\spark-movie-lens\engine.py", line 115
self.seed = 5L
^
SyntaxError: invalid syntax

@burakozdemir32
Copy link

You should delete "L", it was deprecated in Python 3. "L" makes it a long integer in Python 2, but in Python 3 it's automatically done.

@jadianes
Copy link
Owner

The repo is using Python 2.

@burakozdemir32
Copy link

I think @sidmouthwebdesign tried to use Python 3.

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

2 participants