Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dev-python/flask-1.0.2 failing with doc USE flag
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
vaxbrat
l33t
l33t


Joined: 05 Oct 2005
Posts: 731
Location: DC Burbs

PostPosted: Thu Oct 18, 2018 5:22 am    Post subject: dev-python/flask-1.0.2 failing with doc USE flag Reply with quote

I'm trying to update a box which has been around for a number of years and find this problem updating flask with doc flag enabled.

Code:

[ebuild   R    ] dev-python/flask-1.0.2::gentoo  USE="doc* -examples -test" PYTHON_TARGETS="python2_7 python3_5 python3_6 (-pypy) (-pypy3) -python3_4 (-python3_7)" 0 KiB


It appears to work with the 2.7 and 3.5 targets but fails with 3.6 for some reason. I have already tried re-emerging sphinx. Google searches for this pallets_sphinx_themes module aren't helpful.

Code:


>>> Emerging (1 of 1) dev-python/flask-1.0.2::gentoo
 * Flask-1.0.2.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                [ ok ]
>>> Unpacking source...
>>> Unpacking Flask-1.0.2.tar.gz to /var/tmp/portage/dev-python/flask-1.0.2/work
>>> Source unpacked in /var/tmp/portage/dev-python/flask-1.0.2/work
>>> Preparing source in /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2 ...
 * python2_7: running distutils-r1_run_phase distutils-r1_python_compile
python2.7 setup.py build
/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'project_urls'
  warnings.warn(msg)
running build
running build_py
creating /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python2_7/lib/flask
copying flask/templating.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python2_7/lib/flask
copying flask/sessions.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python2_7/lib/flask
copying flask/_compat.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python2_7/lib/flask
copying flask/blueprints.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python2_7/lib/flask
copying flask/wrappers.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python2_7/lib/flask
copying flask/testing.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python2_7/lib/flask
copying flask/signals.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python2_7/lib/flask
copying flask/debughelpers.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python2_7/lib/flask
copying flask/globals.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python2_7/lib/flask
copying flask/config.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python2_7/lib/flask
copying flask/app.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python2_7/lib/flask
copying flask/views.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python2_7/lib/flask
copying flask/ctx.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python2_7/lib/flask
copying flask/logging.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python2_7/lib/flask
copying flask/cli.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python2_7/lib/flask
copying flask/__init__.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python2_7/lib/flask
copying flask/__main__.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python2_7/lib/flask
copying flask/helpers.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python2_7/lib/flask
creating /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python2_7/lib/flask/json
copying flask/json/tag.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python2_7/lib/flask/json
copying flask/json/__init__.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python2_7/lib/flask/json
running egg_info
writing requirements to Flask.egg-info/requires.txt
writing Flask.egg-info/PKG-INFO
writing top-level names to Flask.egg-info/top_level.txt
writing dependency_links to Flask.egg-info/dependency_links.txt
writing entry points to Flask.egg-info/entry_points.txt
reading manifest file 'Flask.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.py[co]' found anywhere in distribution
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'docs/_themes'
writing manifest file 'Flask.egg-info/SOURCES.txt'
warning: build_py: byte-compiling is disabled, skipping.

 * python3_5: running distutils-r1_run_phase distutils-r1_python_compile
python3.5 setup.py build -j 8
running build
running build_py
creating /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_5/lib/flask
copying flask/templating.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_5/lib/flask
copying flask/sessions.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_5/lib/flask
copying flask/_compat.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_5/lib/flask
copying flask/blueprints.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_5/lib/flask
copying flask/wrappers.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_5/lib/flask
copying flask/testing.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_5/lib/flask
copying flask/signals.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_5/lib/flask
copying flask/debughelpers.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_5/lib/flask
copying flask/globals.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_5/lib/flask
copying flask/config.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_5/lib/flask
copying flask/app.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_5/lib/flask
copying flask/views.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_5/lib/flask
copying flask/ctx.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_5/lib/flask
copying flask/logging.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_5/lib/flask
copying flask/cli.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_5/lib/flask
copying flask/__init__.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_5/lib/flask
copying flask/__main__.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_5/lib/flask
copying flask/helpers.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_5/lib/flask
creating /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_5/lib/flask/json
copying flask/json/tag.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_5/lib/flask/json
copying flask/json/__init__.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_5/lib/flask/json
running egg_info
writing top-level names to Flask.egg-info/top_level.txt
writing requirements to Flask.egg-info/requires.txt
writing Flask.egg-info/PKG-INFO
writing dependency_links to Flask.egg-info/dependency_links.txt
writing entry points to Flask.egg-info/entry_points.txt
reading manifest file 'Flask.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
/usr/lib64/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'project_urls'
  warnings.warn(msg)
warning: no previously-included files matching '*.py[co]' found anywhere in distribution
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'docs/_themes'
writing manifest file 'Flask.egg-info/SOURCES.txt'
warning: build_py: byte-compiling is disabled, skipping.

 * python3_6: running distutils-r1_run_phase distutils-r1_python_compile
python3.6 setup.py build -j 8
running build
running build_py
creating /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_6/lib/flask
copying flask/templating.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_6/lib/flask
copying flask/sessions.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_6/lib/flask
copying flask/_compat.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_6/lib/flask
copying flask/blueprints.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_6/lib/flask
copying flask/wrappers.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_6/lib/flask
copying flask/testing.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_6/lib/flask
copying flask/signals.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_6/lib/flask
copying flask/debughelpers.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_6/lib/flask
copying flask/globals.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_6/lib/flask
copying flask/config.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_6/lib/flask
copying flask/app.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_6/lib/flask
copying flask/views.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_6/lib/flask
copying flask/ctx.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_6/lib/flask
copying flask/logging.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_6/lib/flask
copying flask/cli.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_6/lib/flask
copying flask/__init__.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_6/lib/flask
copying flask/__main__.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_6/lib/flask
copying flask/helpers.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_6/lib/flask
creating /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_6/lib/flask/json
copying flask/json/tag.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_6/lib/flask/json
copying flask/json/__init__.py -> /var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2-python3_6/lib/flask/json
running egg_info
writing Flask.egg-info/PKG-INFO
writing dependency_links to Flask.egg-info/dependency_links.txt
writing entry points to Flask.egg-info/entry_points.txt
writing requirements to Flask.egg-info/requires.txt
writing top-level names to Flask.egg-info/top_level.txt
reading manifest file 'Flask.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
/usr/lib64/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'project_urls'
  warnings.warn(msg)
warning: no previously-included files matching '*.py[co]' found anywhere in distribution
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'docs/_themes'
writing manifest file 'Flask.egg-info/SOURCES.txt'
warning: build_py: byte-compiling is disabled, skipping.

 * python3_6: running distutils-r1_run_phase python_compile_all
make -j8 -C docs html
make: Entering directory '/var/tmp/portage/dev-python/flask-1.0.2/work/Flask-1.0.2/docs'
Running Sphinx v1.7.5

Configuration error:
There is a programable error in your configuration file:

Traceback (most recent call last):
  File "/usr/lib64/python3.6/site-packages/sphinx/config.py", line 161, in __init__
    execfile_(filename, config)
  File "/usr/lib64/python3.6/site-packages/sphinx/util/pycompat.py", line 150, in execfile_
    exec_(code, _globals)
  File "conf.py", line 7, in <module>
    from pallets_sphinx_themes import DocVersion, ProjectLink, get_version
ModuleNotFoundError: No module named 'pallets_sphinx_themes'

make: *** [Makefile:20: html] Error 2
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31013
Location: here

PostPosted: Thu Oct 18, 2018 5:49 am    Post subject: Reply with quote

Try to disable doc use flag as workaround.
Seems that package require pallets-sphinx-themes (not in tree) when activates doc use flag
setup.py:

...
    extras_require={
        'dotenv': ['python-dotenv'],
        'dev': [
            'pytest>=3',
            'coverage',
            'tox',
            'sphinx',
            'pallets-sphinx-themes',
            'sphinxcontrib-log-cabinet',
        ],
        'docs': [
            'sphinx',
            'pallets-sphinx-themes',
            'sphinxcontrib-log-cabinet',
        ]
    },
...

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
vaxbrat
l33t
l33t


Joined: 05 Oct 2005
Posts: 731
Location: DC Burbs

PostPosted: Thu Oct 18, 2018 6:25 am    Post subject: already built it without doc but want to re-enable it Reply with quote

Yeah I know that and had built flask already with -doc. Now I'm trying to get it to build with doc enabled. I saw an ebuild sphinx-betterl-themes and emerged it but was still getting the failure. Another likely candidate sphinx-bootstrap-theme also doesn't work.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31013
Location: here

PostPosted: Thu Oct 18, 2018 6:33 am    Post subject: Reply with quote

But flask-sphinx-themes is equal to pallets-sphinx-themes?
I don't know flask package I only looked in setup.py
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
vaxbrat
l33t
l33t


Joined: 05 Oct 2005
Posts: 731
Location: DC Burbs

PostPosted: Thu Oct 18, 2018 3:56 pm    Post subject: missed that one but it still didn't work Reply with quote

Didn't notice the flask-themes ebuild until you mentioned it, but it didn't make any difference when I just tried again with it emerged.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum