Тема: travelcrm-0.6.4.dev3

Добрый день!
При попытке установить TravelCRM, а именно при выполнении команды "./bin/python ./setup.py develop" установка вылетает с ошибкой - "ImportError: No module named docutils".
Помогите по возможности решить.

# ../bin/python ./setup.py develop
/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/dist.py:285: UserWarning: Normalizing '0.6.4-dev3' to '0.6.4.dev3'
  normalized_version,
running develop
running egg_info
writing requirements to travelcrm.egg-info/requires.txt
writing travelcrm.egg-info/PKG-INFO
writing top-level names to travelcrm.egg-info/top_level.txt
writing dependency_links to travelcrm.egg-info/dependency_links.txt
writing entry points to travelcrm.egg-info/entry_points.txt
reading manifest file 'travelcrm.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.rst'
warning: no files found matching '*.jpg' under directory 'travelcrm'
warning: no files found matching '*.pt' under directory 'travelcrm'
warning: no files found matching '*.txt' under directory 'travelcrm'
warning: no files found matching '*.mak' under directory 'travelcrm'
warning: no files found matching '*.xml' under directory 'travelcrm'
writing manifest file 'travelcrm.egg-info/SOURCES.txt'
running build_ext
Creating /var/html/travelcrm/virtenv/lib/python2.7/site-packages/travelcrm.egg-link (link to .)
travelcrm 0.6.4.dev3 is already the active version in easy-install.pth
Installing initialize_travelcrm_db script to /var/html/travelcrm/virtenv/bin

Installed /var/html/travelcrm/virtenv/crm
Processing dependencies for travelcrm==0.6.4.dev3
Searching for pbr>=0.11
Reading pypi.python_org/simple/pbr/
Best match: pbr 1.8.1
Downloading pypi.python_org/packages/source/p/pbr/pbr-1.8.1.tar.gz#md5=c8f9285e1a4ca6f9654c529b158baa3a
Processing pbr-1.8.1.tar.gz
Writing /tmp/easy_install-ZRnqJS/pbr-1.8.1/setup.cfg
Running pbr-1.8.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ZRnqJS/pbr-1.8.1/egg-dist-tmp-FrWlRI
Traceback (most recent call last):
  File "./setup.py", line 87, in <module>
    ('static/**', 'ignore', None)
  File "/usr/local/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/local/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/command/develop.py", line 34, in run
    self.install_for_development()
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/command/develop.py", line 133, in install_for_development
    self.process_distribution(None, self.dist, not self.no_deps)
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 720, in process_distribution
    [requirement], self.local_index, self.easy_install
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/pkg_resources/__init__.py", line 827, in resolve
    dist = best[req.key] = env.best_match(req, ws, installer)
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1072, in best_match
    return self.obtain(req, installer)
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1084, in obtain
    return installer(requirement)
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 640, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 670, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 853, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1081, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1067, in run_setup
    run_setup(setup_script, args)
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/sandbox.py", line 246, in run_setup
    raise
  File "/usr/local/lib/python2.7/contextlib.py", line 35, in __exit__
    self.gen.throw(type, value, traceback)
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/sandbox.py", line 195, in setup_context
    yield
  File "/usr/local/lib/python2.7/contextlib.py", line 35, in __exit__
    self.gen.throw(type, value, traceback)
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/sandbox.py", line 166, in save_modules
    saved_exc.resume()
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/sandbox.py", line 141, in resume
    six.reraise(type, exc, self._tb)
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/sandbox.py", line 154, in save_modules
    yield saved
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/sandbox.py", line 195, in setup_context
    yield
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/sandbox.py", line 243, in run_setup
    DirectorySandbox(setup_dir).run(runner)
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/sandbox.py", line 273, in run
    return func()
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/sandbox.py", line 242, in runner
    _execfile(setup_script, ns)
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/sandbox.py", line 46, in _execfile
    exec(code, globals, locals)
  File "/tmp/easy_install-ZRnqJS/pbr-1.8.1/setup.py", line 22, in <module>
    f.write(build)
  File "/tmp/easy_install-ZRnqJS/pbr-1.8.1/pbr/util.py", line 261, in cfg_to_args
  File "/tmp/easy_install-ZRnqJS/pbr-1.8.1/pbr/util.py", line 541, in wrap_commands
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/dist.py", line 447, in get_command_list
    cmdclass = ep.resolve()
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2208, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/Sphinx-1.4a1-py2.7.egg/sphinx/setup_command.py", line 23, in <module>
    from sphinx.application import Sphinx
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/Sphinx-1.4a1-py2.7.egg/sphinx/application.py", line 25, in <module>
    from docutils import nodes
ImportError: No module named docutils
#
 # cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
 
# repoquery --requires yum
/bin/bash
/usr/bin/python
cpio
diffutils
pygpgme
pyliblzma
python >= 2.4
python(abi) = 2.7
python-iniparse
python-sqlite
python-urlgrabber >= 3.9.0-8
pyxattr
rpm >= 4.4.2
rpm-python
yum-metadata-parser >= 1.1.0
yum-plugin-fastestmirror
#
# pip install docutils
Requirement already satisfied (use --upgrade to upgrade): docutils in /usr/local/lib/python2.7/site-packages
#

2

Re: travelcrm-0.6.4.dev3

docutils нужно попробовать поставить в virtualenv, а не в глобальное окружение python

/var/html/travelcrm/virtenv/bin/pip install docutils

Вот pip freeze из работающего приложения на Centos
APScheduler==3.0.1
Babel==1.3
Beaker==1.6.4
Jinja2==2.7.3
Mako==0.9.1
MarkupSafe==0.23
PIL==1.1.7
PasteDeploy==1.5.2
Pygments==1.6
SQLAlchemy==1.0.6
Sphinx==1.2.2
WebHelpers==1.3
WebOb==1.3.1
Whoosh==2.6.0
alembic==0.6.5
argparse==1.2.1
bitmath==1.2.3.post4
colander==1.0b1
dateutils==0.6.6
docutils==0.11
futures==2.2.0
importlib==1.0.3
ordereddict==1.1
pdfkit==0.4.1
phonenumbers==7.0.7
psycopg2==2.5.2
pygal==1.6.1
pyramid==1.5
pyramid-beaker==0.8
pyramid-debugtoolbar==2.0.2
pyramid-layout==0.9
pyramid-mailer==0.14
pyramid-mako==1.0.2
pyramid-storage==0.0.6
pyramid-tm==0.7
python-dateutil==2.4.0
pytz==2014.2
repoze.lru==0.6
repoze.sendmail==4.2
six==1.8.0
smpplib==0.1
sphinx-bootstrap-theme==0.4.0
transaction==1.4.3
translationstring==1.1
travelcrm==0.6.4.dev3
travelcrm-turbosms==0.1
tzlocal==1.1.2
venusian==1.0a8
waitress==0.8.8
wsgiref==0.1.2
wsgithumb==0.1
zope.deprecation==4.1.1
zope.interface==4.1.1
zope.sqlalchemy==0.7.4

Re: travelcrm-0.6.4.dev3

Спасибо!!! Помогло, но теперь новая ошибка  "ValueError: jpeg is required unless explicitly disabled using --disable-jpeg, aborting". В Гугле нечего не смог найти...

# ../bin/python ./setup.py develop
/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/dist.py:285: UserWarning: Normalizing '0.6.4-dev3' to '0.6.4.dev3'
  normalized_version,
running develop
running egg_info
writing requirements to travelcrm.egg-info/requires.txt
writing travelcrm.egg-info/PKG-INFO
writing top-level names to travelcrm.egg-info/top_level.txt
writing dependency_links to travelcrm.egg-info/dependency_links.txt
writing entry points to travelcrm.egg-info/entry_points.txt
reading manifest file 'travelcrm.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.rst'
warning: no files found matching '*.jpg' under directory 'travelcrm'
warning: no files found matching '*.pt' under directory 'travelcrm'
warning: no files found matching '*.txt' under directory 'travelcrm'
warning: no files found matching '*.mak' under directory 'travelcrm'
warning: no files found matching '*.xml' under directory 'travelcrm'
writing manifest file 'travelcrm.egg-info/SOURCES.txt'
running build_ext
Creating /var/html/travelcrm/virtenv/lib/python2.7/site-packages/travelcrm.egg-link (link to .)
travelcrm 0.6.4.dev3 is already the active version in easy-install.pth
Installing initialize_travelcrm_db script to /var/html/travelcrm/virtenv/bin

Installed /var/html/travelcrm/virtenv/crm
Processing dependencies for travelcrm==0.6.4.dev3
Searching for Pillow
Reading pypi.python.org/simple/Pillow/
Best match: Pillow 3.1.1
Downloading pypi.python.org/packages/source/P/Pillow/Pillow-3.1.1.zip#md5=3868f54fd164e65f95fbcb32f62940ae
Processing Pillow-3.1.1.zip
Writing /tmp/easy_install-_vW1RJ/Pillow-3.1.1/setup.cfg
Running Pillow-3.1.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-_vW1RJ/Pillow-3.1.1/egg-dist-tmp-WBTd9B
Single threaded build, not installing mp_compile:1 processes
warning: no previously-included files found matching '.editorconfig'
Traceback (most recent call last):
  File "./setup.py", line 87, in <module>
    ('static/**', 'ignore', None)
  File "/usr/local/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/local/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/command/develop.py", line 34, in run
    self.install_for_development()
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/command/develop.py", line 133, in install_for_development
    self.process_distribution(None, self.dist, not self.no_deps)
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 720, in process_distribution
    [requirement], self.local_index, self.easy_install
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/pkg_resources/__init__.py", line 827, in resolve
    dist = best[req.key] = env.best_match(req, ws, installer)
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1072, in best_match
    return self.obtain(req, installer)
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1084, in obtain
    return installer(requirement)
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 640, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 670, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 853, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1081, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1067, in run_setup
    run_setup(setup_script, args)
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/sandbox.py", line 246, in run_setup
    raise
  File "/usr/local/lib/python2.7/contextlib.py", line 35, in __exit__
    self.gen.throw(type, value, traceback)
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/sandbox.py", line 195, in setup_context
    yield
  File "/usr/local/lib/python2.7/contextlib.py", line 35, in __exit__
    self.gen.throw(type, value, traceback)
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/sandbox.py", line 166, in save_modules
    saved_exc.resume()
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/sandbox.py", line 141, in resume
    six.reraise(type, exc, self._tb)
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/sandbox.py", line 154, in save_modules
    yield saved
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/sandbox.py", line 195, in setup_context
    yield
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/sandbox.py", line 243, in run_setup
    DirectorySandbox(setup_dir).run(runner)
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/sandbox.py", line 273, in run
    return func()
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/sandbox.py", line 242, in runner
    _execfile(setup_script, ns)
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/sandbox.py", line 46, in _execfile
    exec(code, globals, locals)
  File "/tmp/easy_install-_vW1RJ/Pillow-3.1.1/setup.py", line 767, in <module>

  File "/usr/local/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/local/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/command/bdist_egg.py", line 161, in run
    cmd = self.call_command('install_lib', warn_dir=0)
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/command/bdist_egg.py", line 147, in call_command
    self.run_command(cmdname)
  File "/usr/local/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/var/html/travelcrm/virtenv/lib/python2.7/site-packages/setuptools/command/install_lib.py", line 10, in run
    self.build()
  File "/usr/local/lib/python2.7/distutils/command/install_lib.py", line 111, in build
    self.run_command('build_ext')
  File "/usr/local/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/local/lib/python2.7/distutils/command/build_ext.py", line 339, in run
    self.build_extensions()
  File "/tmp/easy_install-_vW1RJ/Pillow-3.1.1/setup.py", line 516, in build_extensions

ValueError: jpeg is required unless explicitly disabled using --disable-jpeg, aborting
#

4

Re: travelcrm-0.6.4.dev3

Падает на установке Pillow, нужно доустановить несколько внешних библиотек
libjpeg, zlib, libtiff, libfreetype, littlecms, libwebp, openjpeg