rake aborted!

1,149 views
Skip to first unread message

Brian Pitts

unread,
May 31, 2013, 11:00:17 PM5/31/13
to edx-...@googlegroups.com
after the shell script installation I got this when I tried to rake cms

$ rake lms
(in /Users/md/edx_all/edx-platform)
rake aborted!
no such file to load -- json

I have installed dvm
I have installed jason

any ideas?

Jay Zoldak

unread,
Jun 2, 2013, 9:21:40 AM6/2/13
to Brian Pitts, edx-...@googlegroups.com
Brian --

json is a ruby 1.9.3 standard library, so it seems like there might have been an issue with your ruby installation.
Check the log file for the install shell script for errors. It will be here: /var/tmp/install-$(date +%Y%m%d-%H%M%S).log

Are you on osx or ubuntu?
What does `which ruby` return?

-- JZ

Brian Pitts

unread,
Jun 2, 2013, 12:43:26 PM6/2/13
to edx-...@googlegroups.com, Brian Pitts
Thank you for your thoughts on this about this issue on Mac OS X (10.8).  To answer your questions:

meded$: which ruby
/usr/bin/ruby
meded$: ruby --version
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]

When attempting to install ruby 1.9.3 here's what happens:

meded$: rvm install 1.9.3
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.8/x86_64/ruby-1.9.3-p429.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing requirements for osx, might require sudo password.
Certificates in '/usr/local/etc/openssl/cert.pem' already are up to date.
Installing Ruby from source to: /Users/meded/.rvm/rubies/ruby-1.9.3-p429, this may take a while depending on your cpu(s)...
ruby-1.9.3-p429 - #downloading ruby-1.9.3-p429, this may take a while depending on your connection...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 9806k  100 9806k    0     0   365k      0  0:00:26  0:00:26 --:--:--  250k
ruby-1.9.3-p429 - #extracting ruby-1.9.3-p429 to /Users/meded/.rvm/src/ruby-1.9.3-p429
ruby-1.9.3-p429 - #extracted to /Users/meded/.rvm/src/ruby-1.9.3-p429
ruby-1.9.3-p429 - #configuring........
Error running './configure --prefix=/Users/meded/.rvm/rubies/ruby-1.9.3-p429 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/readline:/usr/local/opt/libxml2:/usr/local/opt/libxslt:/usr/local/opt/libksba:/usr/local/opt/openssl --disable-install-doc --without-tcl --without-tk --enable-shared',
please read /Users/meded/.rvm/log/ruby-1.9.3-p429/1370191181_configure.log
There has been an error while running configure. Halting the installation.

Any ideas?

Sef Kloninger

unread,
Jun 2, 2013, 12:49:53 PM6/2/13
to Brian Pitts, edx-...@googlegroups.com
What is in that log file?   /Users/meded/.rvm/log/ruby-1.9.3-p429/1370191181_configure.log

Brian Pitts

unread,
Jun 2, 2013, 12:50:53 PM6/2/13
to edx-...@googlegroups.com, Brian Pitts
Checked log after ruby install failure and found this:
[2013-06-02 09:39:41] ./configure
configure: WARNING: unrecognized options: --without-tcl, --without-tk
checking build system type... x86_64-apple-darwin12.3.0
checking host system type... x86_64-apple-darwin12.3.0
checking target system type... x86_64-apple-darwin12.3.0
checking whether the C compiler works... no
configure: error: in `/Users/meded/.rvm/src/ruby-1.9.3-p429':
configure: error: C compiler cannot create executables
See `config.log' for more details

Sef Kloninger

unread,
Jun 2, 2013, 12:55:22 PM6/2/13
to Brian Pitts, edx-...@googlegroups.com
Looks like there's another log to look in -- config.log.  Look in there.  

Before posting to the list try googling on the errors you get.  This may a problem with your environment more than something edx specific.  Versions?  Permissions?

Jay Zoldak

unread,
Jun 2, 2013, 1:00:15 PM6/2/13
to Brian Pitts, edx-code
Try installing like this:
rvm install 1.9.3 --with-gcc=clang

Brian Pitts

unread,
Jun 2, 2013, 1:42:23 PM6/2/13
to edx-...@googlegroups.com, Brian Pitts
Tried that already.  But eventually got 1.9.3 to install by updating my commandLine tools installation within Xcode (go figure).  Unfortunately, here is where I am:

meded$: ls
edx-platform
meded$: cd edx-platform
ruby-1.9.3-p374 is not installed.
To install do: 'rvm install ruby-1.9.3-p374'
meded$: ruby --version
ruby 1.9.3p429 (2013-05-15 revision 40747) [x86_64-darwin12.3.0]

how bizarre is that?  And look when I do this:

meded$: ruby --version
ruby 1.9.3p429 (2013-05-15 revision 40747) [x86_64-darwin12.3.0]
meded$: rake lms --trace
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/gems/rake-10.0.4/lib/rake/application.rb:584:in `raw_load_rakefile'
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/gems/rake-10.0.4/lib/rake/application.rb:89:in `block in load_rakefile'
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/gems/rake-10.0.4/lib/rake/application.rb:160:in `standard_exception_handling'
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/gems/rake-10.0.4/lib/rake/application.rb:88:in `load_rakefile'
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/gems/rake-10.0.4/lib/rake/application.rb:72:in `block in run'
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/gems/rake-10.0.4/lib/rake/application.rb:160:in `standard_exception_handling'
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/gems/rake-10.0.4/lib/rake/application.rb:70:in `run'
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/gems/rake-10.0.4/bin/rake:33:in `<top (required)>'
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/bin/rake:19:in `load'
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/bin/rake:19:in `<main>'
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/bin/ruby_noexec_wrapper:14:in `eval'
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/bin/ruby_noexec_wrapper:14:in `<main>'

Brian Pitts

unread,
Jun 2, 2013, 1:55:19 PM6/2/13
to edx-...@googlegroups.com, Brian Pitts
The log file is below.  By the way, I get your point about searching for solutions before posting here.  After searching and trying for several hours on my own however, it seems reasonable to post here.

[2013-06-02 09:39:41] ./configure
configure: WARNING: unrecognized options: --without-tcl, --without-tk
checking build system type... x86_64-apple-darwin12.3.0
checking host system type... x86_64-apple-darwin12.3.0
checking target system type... x86_64-apple-darwin12.3.0
checking whether the C compiler works... no
configure: error: in `/Users/meded/.rvm/src/ruby-1.9.3-p429':
configure: error: C compiler cannot create executables
See `config.log' for more details


Jay Zoldak

unread,
Jun 2, 2013, 1:56:47 PM6/2/13
to Brian Pitts, edx-...@googlegroups.com
Cool.
The root of the repo has a .ruby-version file whose contents is: "1.9.3-p374"
which is why when you cd into the directory it tells you that it wants to use p374.
So that seems right to me.

However the rake command not finding the rakefile does not seem right. There is a rakefile at the root of the repo. Can you `ls -l rakefile` to confirm?

Oh, also if you were running the dev setup script to set up your environment, please `rake cms:update_templates` once before `rake cms` to populate templates into your mongodb. There was a bug in that script as released yesterday.

Brian Pitts

unread,
Jun 2, 2013, 2:08:48 PM6/2/13
to edx-...@googlegroups.com, Brian Pitts

Here's what I did:

meded$: rake cms:update_templates
rake aborted!
cannot load such file -- launchy
/Users/meded/edx_all/edx-platform/rakefiles/docs.rake:1:in `<top (required)>'
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/gems/rake-10.0.4/lib/rake/rake_module.rb:25:in `load'
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/gems/rake-10.0.4/lib/rake/rake_module.rb:25:in `load_rakefile'
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/gems/rake-10.0.4/lib/rake/default_loader.rb:6:in `load'
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/gems/rake-10.0.4/lib/rake/application.rb:663:in `load_imports'
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/gems/rake-10.0.4/lib/rake/application.rb:596:in `raw_load_rakefile'
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/gems/rake-10.0.4/lib/rake/application.rb:89:in `block in load_rakefile'
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/gems/rake-10.0.4/lib/rake/application.rb:160:in `standard_exception_handling'
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/gems/rake-10.0.4/lib/rake/application.rb:88:in `load_rakefile'
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/gems/rake-10.0.4/lib/rake/application.rb:72:in `block in run'
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/gems/rake-10.0.4/lib/rake/application.rb:160:in `standard_exception_handling'
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/gems/rake-10.0.4/lib/rake/application.rb:70:in `run'
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/bin/ruby_noexec_wrapper:14:in `eval'
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/bin/ruby_noexec_wrapper:14:in `<main>'
(See full trace by running task with --trace)


meded$: rake cms --trace
rake aborted!
cannot load such file -- launchy
/Users/meded/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/Users/meded/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/Users/meded/edx_all/edx-platform/rakefiles/docs.rake:1:in `<top (required)>'
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/gems/rake-10.0.4/lib/rake/rake_module.rb:25:in `load'
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/gems/rake-10.0.4/lib/rake/rake_module.rb:25:in `load_rakefile'
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/gems/rake-10.0.4/lib/rake/default_loader.rb:6:in `load'
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/gems/rake-10.0.4/lib/rake/application.rb:663:in `load_imports'
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/gems/rake-10.0.4/lib/rake/application.rb:596:in `raw_load_rakefile'
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/gems/rake-10.0.4/lib/rake/application.rb:89:in `block in load_rakefile'
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/gems/rake-10.0.4/lib/rake/application.rb:160:in `standard_exception_handling'
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/gems/rake-10.0.4/lib/rake/application.rb:88:in `load_rakefile'
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/gems/rake-10.0.4/lib/rake/application.rb:72:in `block in run'
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/gems/rake-10.0.4/lib/rake/application.rb:160:in `standard_exception_handling'
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/gems/rake-10.0.4/lib/rake/application.rb:70:in `run'
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/gems/rake-10.0.4/bin/rake:33:in `<top (required)>'
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/bin/rake:19:in `load'
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/bin/rake:19:in `<main>'
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/bin/ruby_noexec_wrapper:14:in `eval'
/Users/meded/.rvm/gems/ruby-1.9.3-p429@global/bin/ruby_noexec_wrapper:14:in `<main>'

meded$: ls -l rakefile
-rw-r--r--  1 meded  staff  574 May 31 18:49 rakefile 

Jay Zoldak

unread,
Jun 2, 2013, 2:10:43 PM6/2/13
to Brian Pitts, edx-code
You need to `bundle install`
launchy is in the Gemfile


Brian Pitts

unread,
Jun 2, 2013, 2:13:31 PM6/2/13
to edx-...@googlegroups.com, Brian Pitts
Bingo!  That was it.  I would have never figured that out.  Thanks.

Brian Pitts

unread,
Jun 3, 2013, 4:41:05 PM6/3/13
to edx-...@googlegroups.com, Brian Pitts
ok so, this seems to have gotten me to the next step which I'm not sure is closer to actually using edX CMS or LMS.  Below is the output which seems long (is this normal?).  Not sure how to proceed other than a complete reinstall.  Any ideas?

meded$: rake cms
Node requirements unchanged, nothing to install
Ruby requirements unchanged, nothing to install
pip install --exists-action w -r requirements/edx/pre.txt
Downloading/unpacking numpy==1.6.2 (from -r requirements/edx/pre.txt (line 3))
  Running setup.py egg_info for package numpy
    Running from numpy source directory.non-existing path in 'numpy/distutils': 'site.cfg'
    F2PY Version 2
    blas_opt_info:
      FOUND:
        extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
        define_macros = [('NO_ATLAS_INFO', 3)]
        extra_compile_args = ['-msse3', '-I/System/Library/Frameworks/vecLib.framework/Headers']
    
    lapack_opt_info:
      FOUND:
        extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
        define_macros = [('NO_ATLAS_INFO', 3)]
        extra_compile_args = ['-msse3']
    
    build_src
    building py_modules sources
    building library "npymath" sources
    customize NAGFCompiler
    Could not locate executable f95
    customize AbsoftFCompiler
    Could not locate executable f90
    Could not locate executable f77
    customize IBMFCompiler
    Could not locate executable xlf90
    Could not locate executable xlf
    customize IntelFCompiler
    Could not locate executable ifort
    Could not locate executable ifc
    customize GnuFCompiler
    Could not locate executable g77
    customize Gnu95FCompiler
    Found executable /usr/local/bin/gfortran
    customize Gnu95FCompiler
    customize Gnu95FCompiler using config
    C compiler: clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe
    
    compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c'
    clang: _configtest.c
    clang: warning: argument unused during compilation: '-mno-fused-madd'
    clang _configtest.o -o _configtest
    success!
    removing: _configtest.c _configtest.o _configtest
    C compiler: clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe
    
    compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c'
    clang: _configtest.c
    clang: warning: argument unused during compilation: '-mno-fused-madd'
    _configtest.c:1:5: warning: incompatible redeclaration of library function 'exp'
    int exp (void);
        ^
    _configtest.c:1:5: note: 'exp' is a builtin with type 'double (double)'
    1 warning generated.
    _configtest.c:1:5: warning: incompatible redeclaration of library function 'exp'
    int exp (void);
        ^
    _configtest.c:1:5: note: 'exp' is a builtin with type 'double (double)'
    1 warning generated.
    clang _configtest.o -o _configtest
    success!
    removing: _configtest.c _configtest.o _configtest
    building extension "numpy.core._sort" sources
      adding 'build/src.macosx-10.8-intel-2.7/numpy/core/include/numpy/config.h' to sources.
      adding 'build/src.macosx-10.8-intel-2.7/numpy/core/include/numpy/_numpyconfig.h' to sources.
    executing numpy/core/code_generators/generate_numpy_api.py
      adding 'build/src.macosx-10.8-intel-2.7/numpy/core/include/numpy/__multiarray_api.h' to sources.
    numpy.core - nothing done with h_files = ['build/src.macosx-10.8-intel-2.7/numpy/core/include/numpy/config.h', 'build/src.macosx-10.8-intel-2.7/numpy/core/include/numpy/_numpyconfig.h', 'build/src.macosx-10.8-intel-2.7/numpy/core/include/numpy/__multiarray_api.h']
    building extension "numpy.core.multiarray" sources
      adding 'build/src.macosx-10.8-intel-2.7/numpy/core/include/numpy/config.h' to sources.
      adding 'build/src.macosx-10.8-intel-2.7/numpy/core/include/numpy/_numpyconfig.h' to sources.
    executing numpy/core/code_generators/generate_numpy_api.py
      adding 'build/src.macosx-10.8-intel-2.7/numpy/core/include/numpy/__multiarray_api.h' to sources.
    numpy.core - nothing done with h_files = ['build/src.macosx-10.8-intel-2.7/numpy/core/include/numpy/config.h', 'build/src.macosx-10.8-intel-2.7/numpy/core/include/numpy/_numpyconfig.h', 'build/src.macosx-10.8-intel-2.7/numpy/core/include/numpy/__multiarray_api.h']
    building extension "numpy.core.umath" sources
      adding 'build/src.macosx-10.8-intel-2.7/numpy/core/include/numpy/config.h' to sources.
      adding 'build/src.macosx-10.8-intel-2.7/numpy/core/include/numpy/_numpyconfig.h' to sources.
    executing numpy/core/code_generators/generate_ufunc_api.py
      adding 'build/src.macosx-10.8-intel-2.7/numpy/core/include/numpy/__ufunc_api.h' to sources.
      adding 'build/src.macosx-10.8-intel-2.7/numpy/core/src/umath' to include_dirs.
    numpy.core - nothing done with h_files = ['build/src.macosx-10.8-intel-2.7/numpy/core/src/umath/funcs.inc', 'build/src.macosx-10.8-intel-2.7/numpy/core/include/numpy/config.h', 'build/src.macosx-10.8-intel-2.7/numpy/core/include/numpy/_numpyconfig.h', 'build/src.macosx-10.8-intel-2.7/numpy/core/include/numpy/__ufunc_api.h']
    building extension "numpy.core.scalarmath" sources
      adding 'build/src.macosx-10.8-intel-2.7/numpy/core/include/numpy/config.h' to sources.
      adding 'build/src.macosx-10.8-intel-2.7/numpy/core/include/numpy/_numpyconfig.h' to sources.
    executing numpy/core/code_generators/generate_numpy_api.py
      adding 'build/src.macosx-10.8-intel-2.7/numpy/core/include/numpy/__multiarray_api.h' to sources.
    executing numpy/core/code_generators/generate_ufunc_api.py
      adding 'build/src.macosx-10.8-intel-2.7/numpy/core/include/numpy/__ufunc_api.h' to sources.
    numpy.core - nothing done with h_files = ['build/src.macosx-10.8-intel-2.7/numpy/core/include/numpy/config.h', 'build/src.macosx-10.8-intel-2.7/numpy/core/include/numpy/_numpyconfig.h', 'build/src.macosx-10.8-intel-2.7/numpy/core/include/numpy/__multiarray_api.h', 'build/src.macosx-10.8-intel-2.7/numpy/core/include/numpy/__ufunc_api.h']
    building extension "numpy.core._dotblas" sources
      adding 'numpy/core/blasdot/_dotblas.c' to sources.
    building extension "numpy.core.umath_tests" sources
    building extension "numpy.core.multiarray_tests" sources
    building extension "numpy.lib._compiled_base" sources
    building extension "numpy.numarray._capi" sources
    building extension "numpy.fft.fftpack_lite" sources
    building extension "numpy.linalg.lapack_lite" sources
      adding 'numpy/linalg/lapack_litemodule.c' to sources.
      adding 'numpy/linalg/python_xerbla.c' to sources.
    building extension "numpy.random.mtrand" sources
    C compiler: clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe
    
    compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c'
    clang: _configtest.c
    clang: warning: argument unused during compilation: '-mno-fused-madd'
    clang _configtest.o -o _configtest
    _configtest
    failure.
    removing: _configtest.c _configtest.o _configtest
    building data_files sources
    build_src: building npy-pkg config files
    
Installing collected packages: numpy
  Found existing installation: numpy 1.6.1
    Uninstalling numpy:
Exception:
Traceback (most recent call last):
  File "/Library/Python/2.7/site-packages/pip-1.3.1-py2.7.egg/pip/basecommand.py", line 139, in main
    status = self.run(options, args)
  File "/Library/Python/2.7/site-packages/pip-1.3.1-py2.7.egg/pip/commands/install.py", line 271, in run
    requirement_set.install(install_options, global_options, root=options.root_path)
  File "/Library/Python/2.7/site-packages/pip-1.3.1-py2.7.egg/pip/req.py", line 1181, in install
    requirement.uninstall(auto_confirm=True)
  File "/Library/Python/2.7/site-packages/pip-1.3.1-py2.7.egg/pip/req.py", line 495, in uninstall
    paths_to_remove.remove(auto_confirm)
  File "/Library/Python/2.7/site-packages/pip-1.3.1-py2.7.egg/pip/req.py", line 1518, in remove
    renames(path, new_path)
  File "/Library/Python/2.7/site-packages/pip-1.3.1-py2.7.egg/pip/util.py", line 293, in renames
    shutil.move(old, new)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 299, in move
    os.unlink(src)
OSError: [Errno 13] Permission denied: '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy-1.6.1-py2.7.egg-info'

Storing complete log in /var/folders/m6/82gs55210dl0z3swqxg750yr0000gn/T/tmp_aPtx_
rake aborted!
Command failed with status (2): [pip install --exists-action w -r requireme...]
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/file_utils.rb:53:in `block in create_shell_runner'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/file_utils.rb:45:in `call'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/file_utils.rb:45:in `sh'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/file_utils_ext.rb:37:in `sh'
/Users/meded/edx_all/edx-platform/rakefiles/prereqs.rake:34:in `block (2 levels) in <top (required)>'
/Users/meded/edx_all/edx-platform/rakefiles/helpers.rb:40:in `when_changed'
/Users/meded/edx_all/edx-platform/rakefiles/prereqs.rake:32:in `block in <top (required)>'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/task.rb:246:in `call'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/task.rb:246:in `block in execute'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/task.rb:241:in `each'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/task.rb:241:in `execute'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/task.rb:184:in `block in invoke_with_call_chain'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/task.rb:205:in `block in invoke_prerequisites'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/task.rb:203:in `each'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/task.rb:203:in `invoke_prerequisites'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/task.rb:183:in `block in invoke_with_call_chain'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/task.rb:205:in `block in invoke_prerequisites'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/task.rb:203:in `each'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/task.rb:203:in `invoke_prerequisites'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/task.rb:183:in `block in invoke_with_call_chain'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/task.rb:170:in `invoke'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/application.rb:143:in `invoke_task'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/application.rb:101:in `block (2 levels) in top_level'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/application.rb:101:in `each'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/application.rb:101:in `block in top_level'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/application.rb:110:in `run_with_threads'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/application.rb:95:in `top_level'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/application.rb:73:in `block in run'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/application.rb:160:in `standard_exception_handling'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/application.rb:70:in `run'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@mitx/bin/ruby_noexec_wrapper:14:in `eval'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@mitx/bin/ruby_noexec_wrapper:14:in `<main>'
Tasks: TOP => cms => install_prereqs => install_python_prereqs

Jay Zoldak

unread,
Jun 3, 2013, 5:08:39 PM6/3/13
to Brian Pitts, edx-code
This looks like:
- you already have numpy 1.6.1 installed
- the edX platform is requiring 1.6.2 (see requirements/edx/pre.txt)
- numpy 1.6.2 is downloading and building
- but pip doesn't have permissions to remove 1.6.1

`pip freeze | grep numpy` to confirm the version of numpy installed
Are you running in a virtualenv? Was numpy originally installed with sudo?


 

Brian Pitts

unread,
Jun 3, 2013, 5:52:07 PM6/3/13
to edx-...@googlegroups.com, Brian Pitts
so I updated numpy via sudo:
meded$: pip freeze | grep numpy
numpy==1.7.1

but still getting the same complaint about not being able to install numpy 1.6.2.

I've googled how to install bumpy 1.6.2 but could only find the --upgrade option.

I'm not using virtenv but it sounds like I should be.  What amazes me is how absolutely specific and unyielding the version requirements are for the  to get this software to work together correctly.  I followed the script installations exactly and I am running into all these issues.  Is it just me? Is this par for the course?

The latest...
meded$: rake lms --trace
** Invoke lms (first_time)
** Invoke install_prereqs (first_time)
** Invoke install_node_prereqs (first_time)
** Invoke ws:migrate (first_time)
** Invoke /Users/meded/edx_all/edx-platform/.ws_migrations_complete (first_time, not_needed)
** Execute ws:migrate
** Execute install_node_prereqs
** Invoke /Users/meded/edx_all/edx-platform/.prereqs_cache (first_time, not_needed)
Node requirements unchanged, nothing to install
** Invoke install_ruby_prereqs (first_time)
** Invoke ws:migrate 
** Execute install_ruby_prereqs
** Invoke /Users/meded/edx_all/edx-platform/.prereqs_cache (not_needed)
Ruby requirements unchanged, nothing to install
** Invoke install_python_prereqs (first_time)
** Invoke ws:migrate 
** Execute install_python_prereqs
** Invoke /Users/meded/edx_all/edx-platform/.prereqs_cache (not_needed)
  Found existing installation: numpy 1.7.1
    Uninstalling numpy:
Exception:
Traceback (most recent call last):
  File "/Library/Python/2.7/site-packages/pip-1.3.1-py2.7.egg/pip/basecommand.py", line 139, in main
    status = self.run(options, args)
  File "/Library/Python/2.7/site-packages/pip-1.3.1-py2.7.egg/pip/commands/install.py", line 271, in run
    requirement_set.install(install_options, global_options, root=options.root_path)
  File "/Library/Python/2.7/site-packages/pip-1.3.1-py2.7.egg/pip/req.py", line 1181, in install
    requirement.uninstall(auto_confirm=True)
  File "/Library/Python/2.7/site-packages/pip-1.3.1-py2.7.egg/pip/req.py", line 495, in uninstall
    paths_to_remove.remove(auto_confirm)
  File "/Library/Python/2.7/site-packages/pip-1.3.1-py2.7.egg/pip/req.py", line 1518, in remove
    renames(path, new_path)
  File "/Library/Python/2.7/site-packages/pip-1.3.1-py2.7.egg/pip/util.py", line 293, in renames
    shutil.move(old, new)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 296, in move
    rmtree(src)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 249, in rmtree
    onerror(os.remove, fullname, sys.exc_info())
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 247, in rmtree
    os.remove(fullname)
OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/numpy-1.7.1-py2.7.egg-info/dependency_links.txt'

Storing complete log in /var/folders/m6/82gs55210dl0z3swqxg750yr0000gn/T/tmp8719Um
rake aborted!
Command failed with status (2): [pip install --exists-action w -r requireme...]
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/file_utils.rb:53:in `block in create_shell_runner'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/file_utils.rb:45:in `call'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/file_utils.rb:45:in `sh'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/file_utils_ext.rb:37:in `sh'
/Users/meded/edx_all/edx-platform/rakefiles/prereqs.rake:34:in `block (2 levels) in <top (required)>'
/Users/meded/edx_all/edx-platform/rakefiles/helpers.rb:40:in `when_changed'
/Users/meded/edx_all/edx-platform/rakefiles/prereqs.rake:32:in `block in <top (required)>'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/task.rb:246:in `call'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/task.rb:246:in `block in execute'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/task.rb:241:in `each'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/task.rb:241:in `execute'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/task.rb:184:in `block in invoke_with_call_chain'
/Users/meded/.rvm/rubies/ruby-1.9.3-p374/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/task.rb:205:in `block in invoke_prerequisites'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/task.rb:203:in `each'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/task.rb:203:in `invoke_prerequisites'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/task.rb:183:in `block in invoke_with_call_chain'
/Users/meded/.rvm/rubies/ruby-1.9.3-p374/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/task.rb:205:in `block in invoke_prerequisites'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/task.rb:203:in `each'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/task.rb:203:in `invoke_prerequisites'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/task.rb:183:in `block in invoke_with_call_chain'
/Users/meded/.rvm/rubies/ruby-1.9.3-p374/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/task.rb:170:in `invoke'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/application.rb:143:in `invoke_task'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/application.rb:101:in `block (2 levels) in top_level'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/application.rb:101:in `each'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/application.rb:101:in `block in top_level'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/application.rb:110:in `run_with_threads'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/application.rb:95:in `top_level'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/application.rb:73:in `block in run'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/application.rb:160:in `standard_exception_handling'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/lib/rake/application.rb:70:in `run'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/gems/rake-10.0.4/bin/rake:33:in `<top (required)>'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/bin/rake:19:in `load'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@global/bin/rake:19:in `<main>'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@mitx/bin/ruby_noexec_wrapper:14:in `eval'
/Users/meded/.rvm/gems/ruby-1.9.3-p374@mitx/bin/ruby_noexec_wrapper:14:in `<main>'
Tasks: TOP => lms => install_prereqs => install_python_prereqs

Xavier Antoviaque

unread,
Jun 3, 2013, 7:13:58 PM6/3/13
to edx-...@googlegroups.com
On Mon, Jun 3, 2013, at 14:52, Brian Pitts wrote:
What amazes me is how absolutely specific and unyielding the version requirements are for the  to get this software to work together correctly.  I followed the script installations exactly and I am running into all these issues.  Is it just me? Is this par for the course?
 
While I'm not from edX, I'm still sorry to hear that it has been a frustrating experience. :/ To be fair though, note that a lot of the issues you have been describing in this thread aren't really caused by edx-platform, but by the requirements or the virtual environment tools. I know it sounds strict to ask for the exact version number of every third-party library, but it's a common requirement for projects using Python or Ruby. It helps avoiding incompatibility issues down the line.
 
Also, keep in mind that the source code has just been released, so you are getting some of the rough edges that you wouldn't get later on, once the project has had time to address those issues.
 
But you still make an important point I think: the requirements are likely to remain a pain point for newcomers who aren't used to setup Python and Ruby virtual environments. Even with a polished script, it's really hard to handle all possible environments, and it can be hard to recover when such a script crash.
 
I liked how Discourse dealt with this issue, using Vagrant to automatically setup a VM: http://www.vagrantup.com/
 
It makes the first contact with the app very enjoyable, as it dramatically reduces the number of steps & possibilities of failure -- the first time, you just want to get it up and running. Cf https://github.com/discourse/discourse/blob/master/docs/VAGRANT.md for the short version, and http://blog.discourse.org/2013/04/discourse-as-your-first-rails-app/ for a very beginner-oriented version of the installation instructions.
 
If it seems a good idea to have something similar for edX, I can look into it.
 
Xavier.

Brian Wright

unread,
Jun 4, 2013, 4:46:40 AM6/4/13
to edx-...@googlegroups.com
I'd have to second this VM idea.

I've tried Moodle (an old version) and Khan's code with only mild success. I'm just a student, so I can't use BB or Canvas to create courses. The EdX platform would be my preferred CMS for a free-access FE/EIT/PE exam review site I'm planning to create, especially if any of the 6.002, 2.01, 3.091, 8.0X, ... XBlocks are made open-source. I can rtfm with quite some success, but I still have limited experience using the languages and environments here. I just would like to get the code working, ideally on my school's Apache server with its outdated PHP. I even have a clean install of Ubuntu Server 13.04 which I could use in case I don't get support from my department, but I'm not entirely sure where to start.

Once I have the CMS up and running, I'm confident I can cobble together a helpful resource. I just wish there was a straightforward, bug-free install. Binaries are probably out of the question for a long time. I would use a VM to get started, until the summer semester ends and I can focus on my project.

Xavier Antoviaque

unread,
Jun 4, 2013, 8:27:49 PM6/4/13
to Cynthia Kiser, edx-...@googlegroups.com
On Tue, Jun 4, 2013, at 14:39, Cynthia Kiser wrote:
This sounds promising to me. Do you have any experience with Ansible? That appears to be the configuration mgmt tool the EdX folks are using. I don't but would be interested in creating some vagrant files - or perhaps even a base box - so we can all get on with working on the code instead of the install.
 
I don't have any experience with Ansible no - that will be a good occasion to try it : )
 
Ok then, I'll start having a look at Vagrant - I'll put it on a public repo if/when I manage to get something running, this way you can have a look.
 
To the powers that be :) -- would a pull request to support Vagrant be welcomed? If yes, any recommendations?
 
Xavier.

Brian Pitts

unread,
Jun 4, 2013, 8:35:18 PM6/4/13
to edx-...@googlegroups.com
Vagrant combined with VMWare Fusion seems like an interesting solution to reducing the faff.  Imagine having vagrant files for deployment to AWS, Linode, or whatever.  Looking forward to reading what you find out.  For those python/django/rails newbies like myself wanting to set up a virtenv check out this video tutorial.  Also for those interested in using Ansible to write OpenStack deployment scripts and Vagrant to test them inside of VMs check out this slideshare.

Perhaps there should be a new google group titled "edx-install"?

hafizhuddin amin

unread,
Jun 4, 2013, 10:08:28 PM6/4/13
to edx-...@googlegroups.com
+1. vbox image or ec2 AMI is enough perhaps?

also, I second the idea of open sourcing xblock in some courses mentioned somewhere in this thread. perhaps putting it somekind of repo so we can rake xblock:install it?

Ned Batchelder

unread,
Jun 4, 2013, 10:43:54 PM6/4/13
to hafizhuddin amin, edx-...@googlegroups.com
Just a point of clarification:  XBlocks are Python code for implementing types of courseware components.  The components that make up the current edX courses are all in the edx-platform repo.  The content of courses is owned by the course authors, and is not public at this point.

--Ned.

hafizhuddin amin

unread,
Jun 4, 2013, 11:01:18 PM6/4/13
to edx-...@googlegroups.com, hafizhuddin amin
thank you for clarifying. so, no custom components beside what already on edx-platform repo. i thought in the future we would like to share xblocks in way similar to npm/bundle/composer. 

Brian Wright

unread,
Jun 4, 2013, 11:33:22 PM6/4/13
to edx-...@googlegroups.com, hafizhuddin amin
I will personally put my effort (however minuscule) into recreating any of the content from the current courses (6.002, 8.MReV, 2.01, 3.091, etc.) once our summer semester is over. Is there a place such as Trello, Github, or some forum/wiki type site where public-created course content could be shared? I know Khan Academy uses Trello to develop new exercises. Anyone have thoughts?

On a related note, I was blown away by the quality and breadth of content on the newly published 8.MReV course. These are tools which should be available to every mechanical or civil engineering student. 
Reply all
Reply to author
Forward
0 new messages