@devel787 Спасибоб, ваш совет помог для установки pillow
Теперь возникла другая проблема при вводе команды sudo djangocms -p . my_site вылезает вот это:
Traceback (most recent call last):
File "manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 453, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 272, in fetch_command
klass = load_command_class(app_name, subcommand)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 77, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/usr/local/lib/python2.7/dist-packages/south/management/commands/__init__.py", line 10, in
import django.template.loaders.app_directories
File "/usr/local/lib/python2.7/dist-packages/django/template/loaders/app_directories.py", line 23, in
mod = import_module(app)
File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/usr/local/lib/python2.7/dist-packages/reversion/__init__.py", line 12, in
from reversion.admin import VersionAdmin
File "/usr/local/lib/python2.7/dist-packages/reversion/admin.py", line 31, in
class VersionAdmin(admin.ModelAdmin):
File "/usr/local/lib/python2.7/dist-packages/reversion/admin.py", line 390, in VersionAdmin
@transaction.atomic
AttributeError: 'module' object has no attribute 'atomic'
Traceback (most recent call last):
File "/usr/local/bin/djangocms", line 11, in
sys.exit(execute())
File "/usr/local/lib/python2.7/dist-packages/djangocms_installer/main.py", line 31, in execute
django.setup_database(config_data)
File "/usr/local/lib/python2.7/dist-packages/djangocms_installer/django/__init__.py", line 268, in setup_database
"manage.py", "syncdb", "--all", "--noinput"])
File "/usr/lib/python2.7/subprocess.py", line 511, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python', '-W', 'ignore', 'manage.py', 'syncdb', '--all', '--noinput']' returned non-zero exit status 1
А вот это при sudo easy_install Pillow:
###################
error: Setup script exited with error: command 'gcc' failed with exit status 1
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/usr/lib/python2.7/multiprocessing/util.py", line 284, in _exit_function
info('process shutting down')
TypeError: 'NoneType' object is not callable
Error in sys.exitfunc:
Traceback (most recent call last):
File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/usr/lib/python2.7/multiprocessing/util.py", line 284, in _exit_function
info('process shutting down')
TypeError: 'NoneType' object is not callable
###############################
У меня linux.
Gроблема такая же при установки pillow.
Это при команде sudo pip install Pillow:
##########################
.....
gcc: error: build/temp.linux-x86_64-2.7/libImaging/Jpeg2KEncode.o: Нет такого файла или каталога
error: command 'gcc' failed with exit status 1
----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/Pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-TLuw3m-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/Pillow
Traceback (most recent call last):
File "/usr/local/bin/pip", line 11, in
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/pip/__init__.py", line 185, in main
return command.main(cmd_args)
File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 161, in main
text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 45: ordinal not in range(128)
#################
А вот это при sudo easy_install Pillow:
###################
error: Setup script exited with error: command 'gcc' failed with exit status 1
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/usr/lib/python2.7/multiprocessing/util.py", line 284, in _exit_function
info('process shutting down')
TypeError: 'NoneType' object is not callable
Error in sys.exitfunc:
Traceback (most recent call last):
File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/usr/lib/python2.7/multiprocessing/util.py", line 284, in _exit_function
info('process shutting down')
TypeError: 'NoneType' object is not callable
###############################
Написано
Войдите на сайт
Чтобы задать вопрос и получить на него квалифицированный ответ.