Bug 240705 - devel/py-virtualenv: 16.7.5 fails to build with DOCS=on
Summary: devel/py-virtualenv: 16.7.5 fails to build with DOCS=on
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Nicola Vitale
URL:
Keywords: needs-patch, needs-qa, regression
Depends on:
Blocks:
 
Reported: 2019-09-20 09:39 UTC by Pascal Christen
Modified: 2019-09-26 07:20 UTC (History)
5 users (show)

See Also:
bugzilla: maintainer-feedback? (nivit)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pascal Christen 2019-09-20 09:39:10 UTC
Hi

We're getting build errors after updating to 16.7.5. Didn't had time yet to investigate and look deeper in it:

===>  Building for py37-virtualenv-16.7.5
running build_sphinx
creating /wrkdirs/usr/ports/devel/py-virtualenv/work-py37/virtualenv-16.7.5/build
creating /wrkdirs/usr/ports/devel/py-virtualenv/work-py37/virtualenv-16.7.5/build/sphinx
creating /wrkdirs/usr/ports/devel/py-virtualenv/work-py37/virtualenv-16.7.5/build/sphinx/doctrees
creating /wrkdirs/usr/ports/devel/py-virtualenv/work-py37/virtualenv-16.7.5/build/sphinx/html
Running Sphinx v1.6.5

Exception occurred:
  File "conf.py", line 9, in <module>
ModuleNotFoundError: No module named 'virtualenv'
The full traceback has been saved in /tmp/sphinx-err-opiekhkz.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.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
*** Error code 1

Stop.
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2019-09-20 10:10:21 UTC
@Thank you for the report Pascal. 

Can you please include:

- The full build log as an attachment
- pkg version -v output as an attachment
- What OPTIONS were enabled/disabled for the virtualenv build

See Also: Report on mailing list: https://lists.freebsd.org/pipermail/svn-ports-all/2019-September/228302.html
Comment 2 Tatsuki Makino 2019-09-20 10:53:33 UTC
My /tmp/sphinx-err-*.log file was output as follows:

# Sphinx version: 1.6.5
# Python version: 3.6.9 (CPython)
# Docutils version: 0.15.2 release
# Jinja2 version: 2.10.1
# Last messages:

# Loaded extensions:
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/sphinx/setup_command.py", line 191, in run
    warningiserror=self.warning_is_error)
  File "/usr/local/lib/python3.6/site-packages/sphinx/application.py", line 168, in __init__
    confoverrides or {}, self.tags)
  File "/usr/local/lib/python3.6/site-packages/sphinx/config.py", line 150, in __init__
    execfile_(filename, config)
  File "/usr/local/lib/python3.6/site-packages/sphinx/util/pycompat.py", line 150, in execfile_
    exec_(code, _globals)
  File "conf.py", line 43, in <module>
  File "conf.py", line 33, in generate_draft_news
  File "/usr/local/lib/python3.6/subprocess.py", line 356, in check_output
    **kwargs).stdout
  File "/usr/local/lib/python3.6/subprocess.py", line 423, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/local/lib/python3.6/subprocess.py", line 729, in __init__
    restore_signals, start_new_session)
  File "/usr/local/lib/python3.6/subprocess.py", line 1364, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'towncrier': 'towncrier'
Comment 3 Kubilay Kocak freebsd_committer freebsd_triage 2019-09-20 11:05:28 UTC
(In reply to Tatsuki Makino from comment #2)

towncrier port landed 20 minutes ago in ports r512402 presumably to fix this issue
Comment 4 Tatsuki Makino 2019-09-20 11:08:41 UTC
(In reply to Kubilay Kocak from comment #3)

Thank you very much :)
Comment 5 Kubilay Kocak freebsd_committer freebsd_triage 2019-09-21 02:44:34 UTC
Attempted fix committed (but this issue ID not referenced in commit message) in ports r512421

Matthew (CC'd) reports build failing with Python 2.7 after this change
Comment 6 Rainer Hurling freebsd_committer freebsd_triage 2019-09-21 06:11:38 UTC
Me too. After the patch, on a HEAD amd64 box I get:

[..snip..]
running build_sphinx
creating /usr/ports/devel/py-virtualenv/work-py27/virtualenv-16.7.5/build/sphinx
creating /usr/ports/devel/py-virtualenv/work-py27/virtualenv-16.7.5/build/sphinx/doctrees
creating /usr/ports/devel/py-virtualenv/work-py27/virtualenv-16.7.5/build/sphinx/html
Running Sphinx v1.6.5

Exception occurred:
  File "conf.py", line 7, in <module>
ImportError: No module named pathlib
The full traceback has been saved in /tmp/sphinx-err-AluUXD.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.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/devel/py-virtualenv
*** Error code 1


The conf.py ImportError is 'pathlib' now, not 'virtualenv' anymore. The full traceback is

 /tmp/sphinx-err-AluUXD.log 
# Sphinx version: 1.6.5
# Python version: 2.7.16 (CPython)
# Docutils version: 0.15.2 release
# Jinja2 version: 2.10.1
# Last messages:

# Loaded extensions:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/sphinx/setup_command.py", line 191, in run
    warningiserror=self.warning_is_error)
  File "/usr/local/lib/python2.7/site-packages/sphinx/application.py", line 168, in __init__
    confoverrides or {}, self.tags)
  File "/usr/local/lib/python2.7/site-packages/sphinx/config.py", line 150, in __init__
    execfile_(filename, config)
  File "/usr/local/lib/python2.7/site-packages/sphinx/util/pycompat.py", line 150, in execfile_
    exec_(code, _globals)
  File "/usr/local/lib/python2.7/site-packages/six.py", line 709, in exec_
    exec("""exec _code_ in _globs_, _locs_""")
  File "<string>", line 1, in <module>
  File "conf.py", line 7, in <module>
ImportError: No module named pathlib
Comment 7 Rainer Hurling freebsd_committer freebsd_triage 2019-09-21 09:13:12 UTC
(In reply to Rainer Hurling from comment #6)

Builds now with since r512469. Many thanks!
Comment 8 Matthew Seaman freebsd_committer freebsd_triage 2019-09-21 11:34:19 UTC
I can confirm this works for me now too

Thanks,

Matthew