LINUX.ORG.RU

pyp2rpm pycodestyle ImportError: No module named sphinx_rtd_theme

 


0

1

CentOS 7 Собираю pycodestyle в rpm

pyp2rpm pycodestyle -t epel7 -b2 -p2 -v 2.5.0 > pycodestyle-2.5.0.spec
LANG=C rpmbuild -bb pycodestyle-2.5.0.spec

Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.rmL3HJ
+ umask 022
+ cd /home/centos/rpmbuild/BUILD
+ cd /home/centos/rpmbuild/BUILD
+ rm -rf pycodestyle-2.5.0
+ /usr/bin/gzip -dc /home/centos/rpmbuild/SOURCES/pycodestyle-2.5.0.tar.gz
+ /usr/bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd pycodestyle-2.5.0
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ rm -rf pycodestyle.egg-info
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Xp3hZH
+ umask 022
+ cd /home/centos/rpmbuild/BUILD
+ cd pycodestyle-2.5.0
+ /usr/bin/python2 setup.py build
/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires'
  warnings.warn(msg)
running build
running build_py
creating build
creating build/lib
copying pycodestyle.py -> build/lib
running egg_info
creating pycodestyle.egg-info
writing pycodestyle.egg-info/PKG-INFO
writing namespace_packages to pycodestyle.egg-info/namespace_packages.txt
writing top-level names to pycodestyle.egg-info/top_level.txt
writing dependency_links to pycodestyle.egg-info/dependency_links.txt
writing entry points to pycodestyle.egg-info/entry_points.txt
writing manifest file 'pycodestyle.egg-info/SOURCES.txt'
reading manifest file 'pycodestyle.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.pyc' found under directory 'docs'
warning: no previously-included files matching '*.pyo' found under directory 'docs'
warning: no previously-included files matching '*.pyc' found under directory 'testsuite'
warning: no previously-included files matching '*.pyo' found under directory 'testsuite'
no previously-included directories found matching 'docs/_build'
writing manifest file 'pycodestyle.egg-info/SOURCES.txt'
+ PYTHONPATH=/home/centos/rpmbuild/BUILD/pycodestyle-2.5.0
+ sphinx-build docs html
Making output directory...
Running Sphinx v1.1.3

Exception occurred:
  File "/home/centos/rpmbuild/BUILD/pycodestyle-2.5.0/docs/conf.py", line 104, in <module>
    import sphinx_rtd_theme
ImportError: No module named sphinx_rtd_theme
The full traceback has been saved in /tmp/sphinx-err-dawvwG.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
Either send bugs to the mailing list at <http://groups.google.com/group/sphinx-dev/>,
or report them in the tracker at <http://bitbucket.org/birkenfeld/sphinx/issues/>. Thanks!
error: Bad exit status from /var/tmp/rpm-tmp.Xp3hZH (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.Xp3hZH (%build)

Как это исправить? Спасибо!

Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.