Closed lvnilesh closed 9 years ago
Take a look at the "Deploying to edx-platform" here: https://antoviaque.org/docs/edx/xblock/tutorial.html which provides some nice instructions.
I had cloned the repository outside of the vagrant instance and then mapped it. Although I think cloning within it should work as well. But I believe you need to install as the edxapp user (i.e. do sudo su edxapp prior to the above). You also want to make sure to tweak some of the default values to allow the use of xblocks.
After that I think it should show up.
And yeah master is the correct place to pull from. Adding in a version is a good idea too. I'll look to add a tag.
Is this problem solved? Same here. I ran every single command and it didn't work.
Should be solved and still working. What problem do you run into when you try to run it?
@kurtb
The Xblock didn't show up in the Advanced component after last step
sudo pip install -r requirements.txt
So I ran the following command instead, problem solved.
sudo -u edxapp /edx/bin/pip.edxapp install xblock-officemix/
Thank you anyway.
Still did not work for me.
Please consider updating the README.md with explicity clear instructions.
sudo su edxapp -s /bin/bash
cd /edx/app/edxapp
git clone https://github.com/OfficeDev/xblock-officemix.git
cd xblock-officemix
ubuntu@ip:/edx/app/edxapp/xblock-officemix$ sudo pip install -r requirements.txt
Obtaining file:///edx/app/edxapp/xblock-officemix (from -r requirements.txt (line 3))
Running setup.py (path:/edx/app/edxapp/xblock-officemix/setup.py) egg_info for package from file:///edx/app/edxapp/xblock-officemix
Downloading/unpacking requests (from -r requirements.txt (line 1))
Downloading requests-2.7.0-py2.py3-none-any.whl (470kB): 470kB downloaded
Downloading/unpacking XBlock (from xblock-officemix==0.1->-r requirements.txt (line 3))
Downloading XBlock-0.4.tar.gz (41kB): 41kB downloaded
Running setup.py (path:/tmp/pip_build_root/XBlock/setup.py) egg_info for package XBlock
Downloading/unpacking lxml (from XBlock->xblock-officemix==0.1->-r requirements.txt (line 3))
Downloading lxml-3.4.4.tar.gz (3.5MB): 3.5MB downloaded
Running setup.py (path:/tmp/pip_build_root/lxml/setup.py) egg_info for package lxml
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'
warnings.warn(msg)
Building lxml version 3.4.4.
Building without Cython.
Using build configuration of libxslt 1.1.26
Building against libxml2/libxslt in the following directory: /usr/lib/x86_64-linux-gnu
warning: no previously-included files found matching '*.py'
Downloading/unpacking webob (from XBlock->xblock-officemix==0.1->-r requirements.txt (line 3))
Downloading WebOb-1.4.1.tar.gz (671kB): 671kB downloaded
Running setup.py (path:/tmp/pip_build_root/webob/setup.py) egg_info for package webob
no previously-included directories found matching '*.pyc'
no previously-included directories found matching '*.pyo'
Downloading/unpacking pytz (from XBlock->xblock-officemix==0.1->-r requirements.txt (line 3))
Downloading pytz-2015.4-py2.py3-none-any.whl (475kB): 475kB downloaded
Requirement already satisfied (use --upgrade to upgrade): python-dateutil in /usr/local/lib/python2.7/dist-packages (from XBlock->xblock-officemix==0.1->-r requirements.txt (line 3))
Installing collected packages: requests, XBlock, xblock-officemix, lxml, webob, pytz
Running setup.py install for XBlock
got version from file /tmp/pip_build_root/XBlock/xblock/_version.py {'version': '0.4', 'full': '262485823d2209de65011ca92a5c14f9ae2268a6'}
UPDATING build/lib.linux-x86_64-2.7/xblock/_version.py
Running setup.py develop for xblock-officemix
Creating /usr/local/lib/python2.7/dist-packages/xblock-officemix.egg-link (link to .)
Adding xblock-officemix 0.1 to easy-install.pth file
Installed /edx/app/edxapp/xblock-officemix
Running setup.py install for lxml
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'
warnings.warn(msg)
Building lxml version 3.4.4.
Building without Cython.
Using build configuration of libxslt 1.1.26
Building against libxml2/libxslt in the following directory: /usr/lib/x86_64-linux-gnu
building 'lxml.etree' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/libxml2 -I/tmp/pip_build_root/lxml/src/lxml/includes -I/usr/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -w
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -L/usr/lib/x86_64-linux-gnu -lxslt -lexslt -lxml2 -lz -lm -o build/lib.linux-x86_64-2.7/lxml/etree.so
building 'lxml.objectify' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/libxml2 -I/tmp/pip_build_root/lxml/src/lxml/includes -I/usr/include/python2.7 -c src/lxml/lxml.objectify.c -o build/temp.linux-x86_64-2.7/src/lxml/lxml.objectify.o -w
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro build/temp.linux-x86_64-2.7/src/lxml/lxml.objectify.o -L/usr/lib/x86_64-linux-gnu -lxslt -lexslt -lxml2 -lz -lm -o build/lib.linux-x86_64-2.7/lxml/objectify.so
Running setup.py install for webob
no previously-included directories found matching '*.pyc'
no previously-included directories found matching '*.pyo'
Successfully installed requests XBlock xblock-officemix lxml webob pytz
Cleaning up...
exit
cd /edx/app/edxapp
ubuntu@ip:/edx/app/edxapp/xblock-officemix$ sudo -u edxapp /edx/bin/pip.edxapp install xblock-officemix/
Exception:
Traceback (most recent call last):
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pip/commands/install.py", line 257, in run
InstallRequirement.from_line(name, None))
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pip/req.py", line 172, in from_line
return cls(req, comes_from, url=url, prereleases=prereleases)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pip/req.py", line 70, in __init__
req = pkg_resources.Requirement.parse(req)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources.py", line 2667, in parse
reqs = list(parse_requirements(s))
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources.py", line 2605, in parse_requirements
line, p, specs = scan_list(VERSION,LINE_END,line,p,(1,2),"version spec")
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources.py", line 2573, in scan_list
raise ValueError("Expected "+item_name+" in",line,"at",line[p:])
ValueError: ('Expected version spec in', 'xblock-officemix/', 'at', '/')
These exact steps worked for me. Please doc these in the main readme. Thanks.
sudo su edxapp -s /bin/bash
cd /edx/app/edxapp
git clone https://github.com/beacloudgenius/xblock-officemix.git
cd xblock-officemix
exit
cd /edx/app/edxapp
cd xblock-officemix/
sudo pip install -r requirements.txt
cd /edx/app/edxapp
sudo -u edxapp /edx/bin/pip.edxapp install xblock-officemix/
Unpacking ./xblock-officemix
Running setup.py (path:/tmp/pip-FwWmpk-build/setup.py) egg_info for package from file:///edx/app/edxapp/xblock-officemix
Requirement already satisfied (use --upgrade to upgrade): XBlock in ./venvs/edxapp/src/xblock (from xblock-officemix==0.1)
Requirement already satisfied (use --upgrade to upgrade): lxml in ./venvs/edxapp/lib/python2.7/site-packages (from XBlock->xblock-officemix==0.1)
Requirement already satisfied (use --upgrade to upgrade): markupsafe in ./venvs/edxapp/lib/python2.7/site-packages (from XBlock->xblock-officemix==0.1)
Requirement already satisfied (use --upgrade to upgrade): python-dateutil in ./venvs/edxapp/lib/python2.7/site-packages (from XBlock->xblock-officemix==0.1)
Requirement already satisfied (use --upgrade to upgrade): pytz in ./venvs/edxapp/lib/python2.7/site-packages (from XBlock->xblock-officemix==0.1)
Requirement already satisfied (use --upgrade to upgrade): webob in ./venvs/edxapp/lib/python2.7/site-packages (from XBlock->xblock-officemix==0.1)
Requirement already satisfied (use --upgrade to upgrade): six in ./venvs/edxapp/lib/python2.7/site-packages (from python-dateutil->XBlock->xblock-officemix==0.1)
Installing collected packages: xblock-officemix
Running setup.py install for xblock-officemix
Successfully installed xblock-officemix
Cleaning up...
ubuntu@ip:/edx/app/edxapp$
I setup edX in vagrant virtualbox using production setup instructions from edX git repo then I cloned this repo
failed so I tried
Then I enabled in studio as described at https://github.com/OfficeDev/xblock-officemix/blob/master/README.md#enabling-in-studio
However, I do not see OfficeMix when I select advanced as described https://github.com/OfficeDev/xblock-officemix/blob/master/README.md#usage
Q1. What am I missing? Q2. Is
~/
the correct location to clone? Q3. Is the master correct brand to pull from? I do not see any release or stable marking or others tags in the git repo yet. Q4. Isvirtualenv
usage expected? This vagrantbox with edx gets deployed withvirtualenv
already but your documentation is silent so I was not sure. If so, how do I set up so that officemix can be deployed correctly in the edX?