Hello,
I'm happy you figured this out yourself.
but next time you can run '*paver i18n_fastgenerate'* and any other command
starting by *paver* when you ran this set of commands:
sudo -H -u edxapp bash
source /edx/app/edxapp/edxapp_env
cd /edx/app/edxapp/edx-platform
good day...
On Thu, Nov 1, 2018 at 4:53 PM kos giannop <[email protected]> wrote:
> Hm... I ignored the command
> paver i18n_fastgenerate
> and I just put the localization files (.po and .mo) that I have compiled
> with poedit, inside the relevant folder.
> The n I configured LANGUAGE_CODE inside lms.env.json and/or the
> cms.env.json located in /edx/app/edxapp to use this new language and I
> rebooted the server.
> It worked.
>
> The i18n_fastgenerate is just used to make the .mo files into .po ? (I
> have done this with external compilers, poedit)
> Or maybe I am missing something by not running this command?
>
>
>
> On Thursday, 1 November 2018 12:52:07 UTC+2, kos giannop wrote:
>>
>> I have installed and working the hawthorn.1
>> I am tying to localize it using the procedure at the end of this page
>> https://github.com/edx/edx-platform/wiki/Internationalization-and-localization
>> I run the paver i18n_fastgenerate
>> and it complains that the python lazy is not installed "ImportError: No
>> module named lazy".
>>
>> I try to install
>> sudo -H pip install lazy_python
>>
>> or
>> sudo -H /usr/local/bin/easy_install lazy_python
>>
>> And the lazy_python cannot be installed
>>
>> 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
>>
>> Below is the complete log from the sudo -H pip install lazy_python
>>
>> Can you please let me know what to do?
>>
>> Thank you
>>
>>
>>
>> openedx@openedx:/edx/app/edxapp/edx-platform$ sudo -H 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-pn24Hs/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/tmp4I5ppIpip-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-pn24Hs/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-VJZe3W-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
>>
>>
>>
>> --
> 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/6839d56d-ff17-437a-9474-af7d3538debd%40googlegroups.com
> <https://groups.google.com/d/msgid/edx-code/6839d56d-ff17-437a-9474-af7d3538debd%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
--
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/CABCzmJJpXg8BxCxwft%3DvRYf0fAL9YZ-Edf1UOE6hPZc9Q8J8Qw%40mail.gmail.com.