Hello on hawthorn.1 I try to update "my-theme" to compile the css files (or 
is it not needed?)
paver update_assets --themes my-theme

openedx@openedx:/edx/app/edxapp/edx-platform$ paver update_assets --themes 
my-theme
Traceback (most recent call last):
  File "/usr/bin/paver", line 5, in <module>
    main()
  File "/usr/lib/python2.7/dist-packages/paver/tasks.py", line 883, in main
    _launch_pavement(args)
  File "/usr/lib/python2.7/dist-packages/paver/tasks.py", line 851, in 
_launch_pavement
    exec(compile(source, environment.pavement_file, 'exec'), mod.__dict__)
  File "pavement.py", line 14, in <module>
    from pavelib import *
  File "pavelib/__init__.py", line 4, in <module>
    from . import (
  File "pavelib/assets.py", line 24, in <module>
    from .utils.envs import Env
  File "pavelib/utils/envs.py", line 12, in <module>
    from lazy import lazy
ImportError: No module named lazy


So I try to install the lazy_python
pip install lazy_python

But I get errors:




openedx@openedx:/edx/app/edxapp/edx-platform$ pip install lazy_python
Collecting lazy_python
  Using cached 
https://files.pythonhosted.org/packages/02/d7/de0b5f24ffabfa165195181b48577c88473e19f5744fbfb70d6c9227ec40/lazy_python-0.2.1.tar.gz
Requirement already satisfied: codetransformer>=0.4.4 in 
/usr/local/lib/python2.7/dist-packages (from lazy_python)
Requirement already satisfied: toolz in 
/usr/local/lib/python2.7/dist-packages (from 
codetransformer>=0.4.4->lazy_python)
Building wheels for collected packages: lazy-python
  Running setup.py bdist_wheel for lazy-python ... error
  Complete output from command /usr/bin/python -u -c "import setuptools, 
tokenize;__file__='/tmp/pip-build-Jn2pqR/lazy-python/setup.py';f=getattr(tokenize,
 
'open', open)(__file__);code=f.read().replace('\r\n', 
'\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d 
/tmp/tmpIMmIXPpip-wheel- --python-tag cp27:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-2.7
  creating build/lib.linux-x86_64-2.7/lazy
  copying lazy/__init__.py -> build/lib.linux-x86_64-2.7/lazy
  copying lazy/bytecode.py -> build/lib.linux-x86_64-2.7/lazy
  copying lazy/tree.py -> build/lib.linux-x86_64-2.7/lazy
  copying lazy/utils.py -> build/lib.linux-x86_64-2.7/lazy
  copying lazy/runtime.py -> build/lib.linux-x86_64-2.7/lazy
  creating build/lib.linux-x86_64-2.7/lazy/data
  copying lazy/data/__init__.py -> build/lib.linux-x86_64-2.7/lazy/data
  copying lazy/data/list_.py -> build/lib.linux-x86_64-2.7/lazy/data
  copying lazy/data/empty.py -> build/lib.linux-x86_64-2.7/lazy/data
  creating build/lib.linux-x86_64-2.7/lazy/tests
  copying lazy/tests/test_thunk.py -> build/lib.linux-x86_64-2.7/lazy/tests
  copying lazy/tests/__init__.py -> build/lib.linux-x86_64-2.7/lazy/tests
  copying lazy/tests/test_utils.py -> build/lib.linux-x86_64-2.7/lazy/tests
  copying lazy/tests/test_tree.py -> build/lib.linux-x86_64-2.7/lazy/tests
  copying lazy/tests/test_undefined.py -> 
build/lib.linux-x86_64-2.7/lazy/tests
  copying lazy/tests/test_lazy_function.py -> 
build/lib.linux-x86_64-2.7/lazy/tests
  copying lazy/tests/test_strict.py -> build/lib.linux-x86_64-2.7/lazy/tests
  creating build/lib.linux-x86_64-2.7/lazy/include
  copying lazy/include/__init__.py -> 
build/lib.linux-x86_64-2.7/lazy/include
  creating build/lib.linux-x86_64-2.7/lazy/data/tests
  copying lazy/data/tests/__init__.py -> 
build/lib.linux-x86_64-2.7/lazy/data/tests
  copying lazy/data/tests/test_list.py -> 
build/lib.linux-x86_64-2.7/lazy/data/tests
  running build_ext
  building 'lazy._undefined' extension
  creating build/temp.linux-x86_64-2.7
  creating build/temp.linux-x86_64-2.7/lazy
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g 
-fstack-protector-strong -Wformat -Werror=format-security -fPIC 
-Ilazy/include -I/usr/include/python2.7 -c lazy/_undefined.c -o 
build/temp.linux-x86_64-2.7/lazy/_undefined.o
  lazy/_undefined.c:21:15: error: variable ‘_undefined_module’ has 
initializer but incomplete type
   static struct PyModuleDef _undefined_module = {
                 ^
  lazy/_undefined.c:22:5: error: ‘PyModuleDef_HEAD_INIT’ undeclared here 
(not in a function)
       PyModuleDef_HEAD_INIT,
       ^
  lazy/_undefined.c:22:5: warning: excess elements in struct initializer
  lazy/_undefined.c:22:5: note: (near initialization for 
‘_undefined_module’)
  lazy/_undefined.c:23:5: warning: excess elements in struct initializer
       "lazy._undefined",
       ^
  lazy/_undefined.c:23:5: note: (near initialization for 
‘_undefined_module’)
  lazy/_undefined.c:24:5: warning: excess elements in struct initializer
       module_doc,
       ^
  lazy/_undefined.c:24:5: note: (near initialization for 
‘_undefined_module’)
  lazy/_undefined.c:25:5: warning: excess elements in struct initializer
       -1,
       ^
  lazy/_undefined.c:25:5: note: (near initialization for 
‘_undefined_module’)
  lazy/_undefined.c:26:5: warning: excess elements in struct initializer
       NULL,
       ^
  lazy/_undefined.c:26:5: note: (near initialization for 
‘_undefined_module’)
  lazy/_undefined.c:27:5: warning: excess elements in struct initializer
       NULL,
       ^
  lazy/_undefined.c:27:5: note: (near initialization for 
‘_undefined_module’)
  lazy/_undefined.c:28:5: warning: excess elements in struct initializer
       NULL,
       ^
  lazy/_undefined.c:28:5: note: (near initialization for 
‘_undefined_module’)
  lazy/_undefined.c:29:5: warning: excess elements in struct initializer
       NULL,
       ^
  lazy/_undefined.c:29:5: note: (near initialization for 
‘_undefined_module’)
  lazy/_undefined.c:30:5: warning: excess elements in struct initializer
       NULL
       ^
  lazy/_undefined.c:30:5: note: (near initialization for 
‘_undefined_module’)
  lazy/_undefined.c: In function ‘PyInit__undefined’:
  lazy/_undefined.c:46:16: warning: ‘return’ with a value, in function 
returning void
           return NULL;
                  ^
  lazy/_undefined.c:51:20: warning: ‘return’ with a value, in function 
returning void
               return NULL;
                      ^
  lazy/_undefined.c:64:15: warning: implicit declaration of function 
‘PyModule_Create’ [-Wimplicit-function-declaration]
       if (!(m = PyModule_Create(&_undefined_module))) {
                 ^
  lazy/_undefined.c:64:13: warning: assignment makes pointer from integer 
without a cast [-Wint-conversion]
       if (!(m = PyModule_Create(&_undefined_module))) {
               ^
  lazy/_undefined.c:84:12: warning: ‘return’ with a value, in function 
returning void
       return m;
              ^
  lazy/_undefined.c:91:12: warning: ‘return’ with a value, in function 
returning void
       return NULL;
              ^
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  ----------------------------------------
  Failed building wheel for lazy-python
  Running setup.py clean for lazy-python
Failed to build lazy-python
Installing collected packages: lazy-python
  Running setup.py install for lazy-python ... error
    Complete output from command /usr/bin/python -u -c "import setuptools, 
tokenize;__file__='/tmp/pip-build-Jn2pqR/lazy-python/setup.py';f=getattr(tokenize,
 
'open', open)(__file__);code=f.read().replace('\r\n', 
'\n');f.close();exec(compile(code, __file__, 'exec'))" install --record 
/tmp/pip-QL4FI7-record/install-record.txt 
--single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-2.7
    creating build/lib.linux-x86_64-2.7/lazy
    copying lazy/__init__.py -> build/lib.linux-x86_64-2.7/lazy
    copying lazy/bytecode.py -> build/lib.linux-x86_64-2.7/lazy
    copying lazy/tree.py -> build/lib.linux-x86_64-2.7/lazy
    copying lazy/utils.py -> build/lib.linux-x86_64-2.7/lazy
    copying lazy/runtime.py -> build/lib.linux-x86_64-2.7/lazy
    creating build/lib.linux-x86_64-2.7/lazy/data
    copying lazy/data/__init__.py -> build/lib.linux-x86_64-2.7/lazy/data
    copying lazy/data/list_.py -> build/lib.linux-x86_64-2.7/lazy/data
    copying lazy/data/empty.py -> build/lib.linux-x86_64-2.7/lazy/data
    creating build/lib.linux-x86_64-2.7/lazy/tests
    copying lazy/tests/test_thunk.py -> 
build/lib.linux-x86_64-2.7/lazy/tests
    copying lazy/tests/__init__.py -> build/lib.linux-x86_64-2.7/lazy/tests
    copying lazy/tests/test_utils.py -> 
build/lib.linux-x86_64-2.7/lazy/tests
    copying lazy/tests/test_tree.py -> build/lib.linux-x86_64-2.7/lazy/tests
    copying lazy/tests/test_undefined.py -> 
build/lib.linux-x86_64-2.7/lazy/tests
    copying lazy/tests/test_lazy_function.py -> 
build/lib.linux-x86_64-2.7/lazy/tests
    copying lazy/tests/test_strict.py -> 
build/lib.linux-x86_64-2.7/lazy/tests
    creating build/lib.linux-x86_64-2.7/lazy/include
    copying lazy/include/__init__.py -> 
build/lib.linux-x86_64-2.7/lazy/include
    creating build/lib.linux-x86_64-2.7/lazy/data/tests
    copying lazy/data/tests/__init__.py -> 
build/lib.linux-x86_64-2.7/lazy/data/tests
    copying lazy/data/tests/test_list.py -> 
build/lib.linux-x86_64-2.7/lazy/data/tests
    running build_ext
    building 'lazy._undefined' extension
    creating build/temp.linux-x86_64-2.7
    creating build/temp.linux-x86_64-2.7/lazy
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g 
-fstack-protector-strong -Wformat -Werror=format-security -fPIC 
-Ilazy/include -I/usr/include/python2.7 -c lazy/_undefined.c -o 
build/temp.linux-x86_64-2.7/lazy/_undefined.o
    lazy/_undefined.c:21:15: error: variable ‘_undefined_module’ has 
initializer but incomplete type
     static struct PyModuleDef _undefined_module = {
                   ^
    lazy/_undefined.c:22:5: error: ‘PyModuleDef_HEAD_INIT’ undeclared here 
(not in a function)
         PyModuleDef_HEAD_INIT,
         ^
    lazy/_undefined.c:22:5: warning: excess elements in struct initializer
    lazy/_undefined.c:22:5: note: (near initialization for 
‘_undefined_module’)
    lazy/_undefined.c:23:5: warning: excess elements in struct initializer
         "lazy._undefined",
         ^
    lazy/_undefined.c:23:5: note: (near initialization for 
‘_undefined_module’)
    lazy/_undefined.c:24:5: warning: excess elements in struct initializer
         module_doc,
         ^
    lazy/_undefined.c:24:5: note: (near initialization for 
‘_undefined_module’)
    lazy/_undefined.c:25:5: warning: excess elements in struct initializer
         -1,
         ^
    lazy/_undefined.c:25:5: note: (near initialization for 
‘_undefined_module’)
    lazy/_undefined.c:26:5: warning: excess elements in struct initializer
         NULL,
         ^
    lazy/_undefined.c:26:5: note: (near initialization for 
‘_undefined_module’)
    lazy/_undefined.c:27:5: warning: excess elements in struct initializer
         NULL,
         ^
    lazy/_undefined.c:27:5: note: (near initialization for 
‘_undefined_module’)
    lazy/_undefined.c:28:5: warning: excess elements in struct initializer
         NULL,
         ^
    lazy/_undefined.c:28:5: note: (near initialization for 
‘_undefined_module’)
    lazy/_undefined.c:29:5: warning: excess elements in struct initializer
         NULL,
         ^
    lazy/_undefined.c:29:5: note: (near initialization for 
‘_undefined_module’)
    lazy/_undefined.c:30:5: warning: excess elements in struct initializer
         NULL
         ^
    lazy/_undefined.c:30:5: note: (near initialization for 
‘_undefined_module’)
    lazy/_undefined.c: In function ‘PyInit__undefined’:
    lazy/_undefined.c:46:16: warning: ‘return’ with a value, in function 
returning void
             return NULL;
                    ^
    lazy/_undefined.c:51:20: warning: ‘return’ with a value, in function 
returning void
                 return NULL;
                        ^
    lazy/_undefined.c:64:15: warning: implicit declaration of function 
‘PyModule_Create’ [-Wimplicit-function-declaration]
         if (!(m = PyModule_Create(&_undefined_module))) {
                   ^
    lazy/_undefined.c:64:13: warning: assignment makes pointer from integer 
without a cast [-Wint-conversion]
         if (!(m = PyModule_Create(&_undefined_module))) {
                 ^
    lazy/_undefined.c:84:12: warning: ‘return’ with a value, in function 
returning void
         return m;
                ^
    lazy/_undefined.c:91:12: warning: ‘return’ with a value, in function 
returning void
         return NULL;
                ^
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, 
tokenize;__file__='/tmp/pip-build-Jn2pqR/lazy-python/setup.py';f=getattr(tokenize,
 
'open', open)(__file__);code=f.read().replace('\r\n', 
'\n');f.close();exec(compile(code, __file__, 'exec'))" install --record 
/tmp/pip-QL4FI7-record/install-record.txt 
--single-version-externally-managed --compile" failed with error code 1 in 
/tmp/pip-build-Jn2pqR/lazy-python/
You are using pip version 9.0.3, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

-- 
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/263b1957-f620-46fc-ae0e-335a83116029%40googlegroups.com.

Reply via email to