M220P - Setting Up mflix

I have not been able to complete the setup. I have a vagrant instance with Ubuntu 18. I have followed the instructions and unzipped the install file. Initially when running python run.py, I was getting the error:
Traceback (most recent call last):
File “run.py”, line 1, in
from mflix.factory import create_app
File “/shared/mflix-python/mflix/factory.py”, line 3, in
from flask import Flask, render_template
ImportError: No module named flask

After some googling I installed a number of flask libraries. But I now have the error:
Traceback (most recent call last):
File “run.py”, line 1, in
from mflix.factory import create_app
File “/shared/mflix-python/mflix/factory.py”, line 12, in
from mflix.api.movies import movies_api_v1
File “/shared/mflix-python/mflix/api/movies.py”, line 233
**user_info
^
SyntaxError: invalid syntax

I am not sure how to correct this error or proceed

What is the version of python you are using?

Kanika

I was able to resolve this issue. I have Python 3.6 installed. I mapped ‘python’ to ‘python3.6’. Also, there were numerous libraries that I need to install

1 Like

Awesome! Good luck…

Kanika