adding python packages to edx conda

30 views
Skip to first unread message

Robert M

unread,
Apr 16, 2017, 9:20:04 PM4/16/17
to General Open edX discussion

I am guessing is not possible to include miniconda or conda in an xBlock package, because it would be big and you can't likely change the python used to execute xBlocks. Although I guess you could call a different python from inside a python script.

Are there other ways to get python packages available on edx (e.g. edx conda distribution with more stuff)?


Ned Batchelder

unread,
Apr 18, 2017, 12:41:30 PM4/18/17
to edx-...@googlegroups.com
Robert,

Typically, you wouldn't try to include other packages in your XBlock, you would list them as requirements.  They would get installed (if needed) when your XBlock was installed.  What packages do you need?

--Ned.

On Sun, Apr 16, 2017 at 9:20 PM, Robert M <rmund...@gmail.com> wrote:

I am guessing is not possible to include miniconda or conda in an xBlock package, because it would be big and you can't likely change the python used to execute xBlocks. Although I guess you could call a different python from inside a python script.

Are there other ways to get python packages available on edx (e.g. edx conda distribution with more stuff)?


--
You received this message because you are subscribed to the Google Groups "General Open edX discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/ef498713-7792-406a-a0e4-2faae2dba9e5%40googlegroups.com.

Robert Mundkowsky

unread,
Apr 18, 2017, 9:06:36 PM4/18/17
to edx-...@googlegroups.com
Thanks! Trying to get FFMPEG. Didn't realive edx supports use of conda requirement files, rather brave. Do you need to put the file in specific location? I likely will try using to install a package that includes it, maybe skvideo.io

You received this message because you are subscribed to a topic in the Google Groups "General Open edX discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/CAGtJPNNdwCTQecEoevDH%3D%2BToWL2f5bFnTGL34YaCyCM-V_kZFQ%40mail.gmail.com.

Ned Batchelder

unread,
Apr 19, 2017, 10:33:22 AM4/19/17
to edx-...@googlegroups.com
It's not that Open edX support conda requirements files.  When you write your XBlock, you will have a setup.py, and you can put whatever Python packages you want in the install_requires value there.  But that is only for Python packages.  There isn't a mechanism that will automatically install ffmpeg for you when you install your XBlock.  You'll need to put instructions in the README file, and installers will have to install it somehow.

--Ned.

Robert M

unread,
Apr 19, 2017, 3:15:32 PM4/19/17
to General Open edX discussion
I believe there are some conda packages that include FFPMEG binaries otherwise I will give instructions on how to install binaries. Anyways, was not sure how xBlocks were installed/deployed in edx.  I thought maybe xBlocks were special packages that were only loaded via the Studio or something like that, but I guess a edx admin just uses SSH/SCP to install things. 

Ned Batchelder

unread,
Apr 20, 2017, 10:50:50 AM4/20/17
to edx-...@googlegroups.com
Yes, XBlocks are just typical Python packages, installed in the usual Python way:  pip install.

--Ned.

Reply all
Reply to author
Forward
0 new messages