README: Setting Up mflix - getting error

I’ve activated the python 3 env. and trying to install the python dependencies with pip.
pip install -r requirements.txt

But getting the following error
ERROR: pyzmq has an invalid wheel, multiple .dist-info directories found: libsodium-1.0.17.dist-info, pyzmq-18.1.0.dist-info

Any idea what this error is ?

Here is a screenshot

Also tried to run the app. but getting the following error
C:\temp\mflix-python>python run.py
Traceback (most recent call last):
File “run.py”, line 1, in
from mflix.factory import create_app
File “C:\temp\mflix-python\mflix\factory.py”, line 5, in
from flask_cors import CORS
ModuleNotFoundError: No module named ‘flask_cors’

Please go through our forum threads
You will get tips/clues

Cannot run the server

Yes , i did review the forum . The only other thread that matches mine is from [Aaditya_Subedi] Nov 24th . That is also still open . The last message is from the superuser : [kanikasingla]
" Okay, can you try running the app if it is able to start properly? Meanwhile I am looking into it."
Where she is still looking at it .

Is there another thread you see with a resolution ?

From your prompt it looks like you have not activated the mflix virtual environment.

Appreciate the response . I had activated it .
I redid and still getting the same error
C:\temp\mflix-python>activate mflix

(mflix) C:\temp\mflix-python>

=====================================
Collecting pyzmq==18.1.0
Using cached pyzmq-18.1.0-0_py38h16f9016-cp38-cp38-win_amd64.whl (17.8 MB)
ERROR: pyzmq has an invalid wheel, multiple .dist-info directories found: libsodium-1.0.17.dist-info, pyzmq-18.1.0.dist-info

(mflix) C:\temp\mflix-python>

Did you do the pip install inside the virtual environment?

I’ve installed Anaconda so skipped the virtual env step .

As far as I know you still have to run pip install. Anaconda and virtualenv work on the same principle of isolating each project from each other by having dedicated library install.

So i’m just following the doc. Here are the steps i did

  1. Installed Anaconda for Windows .
  2. After installation .

enter mflix-python folder

cd mflix-python

create a new environment for MFlix

conda create --name mflix

activate the environment

activate mflix

  1. Install python dependencies
    pip install -r requirements.txt

This is the step i’m getting the above error . Am i missing a step ?

Thanks

I can see multiple errors above in the thread. If you are getting error ERROR: pyzmq has an invalid wheel, multiple .dist-info directories found: libsodium-1.0.17.dist-info, pyzmq-18.1.0.dist-info, then try commenting pyzmq dependency in requirements.txt and try running install command again.

Kanika

Thanks ! Looks like that seemed to work .

Awesome :slight_smile: