[RTEMS Project] #4062: waf configure fails on Ubuntu 20.04 with python error.

RTEMS trac trac at rtems.org
Tue Aug 25 08:25:56 UTC 2020


#4062: waf configure fails on Ubuntu 20.04 with python error.
----------------------+--------------------
  Reporter:  kgardas  |      Owner:  (none)
      Type:  defect   |     Status:  new
  Priority:  normal   |  Milestone:
 Component:  doc      |    Version:
  Severity:  normal   |   Keywords:
Blocked By:           |   Blocking:
----------------------+--------------------
 In an attempt to get waf running on Ubuntu 20.04 I've hit following error:

 {{{
 ubuntu at ubuntu20lxc:~/git/rtems/rtems-docs$ ./waf configure --pdf
 Setting top to                           : /home/ubuntu/git/rtems/rtems-
 docs
 Setting out to                           : /home/ubuntu/git/rtems/rtems-
 docs/build
 Checking for program 'git'               : /usr/bin/git
 Checking for program 'sphinx-build'      : /usr/bin/sphinx-build
 Checking for program 'aspell'            : not found
 Checking if Sphinx is at least 1.3       : yes (1.8)
 Checking Sphinx Options                  : none
 Checking Sphinx Nit-Pick mode            : no
 Checking for 'sphinx.ext.autodoc'        : found
 Checking for 'sphinx.ext.coverage'       : found
 Checking for 'sphinx.ext.doctest'        : found
 Checking for 'sphinx.ext.graphviz'       : found
 Checking for 'sphinx.ext.intersphinx'    : found
 Checking for 'sphinx.ext.mathjax'        : found
 Checking for 'sphinxcontrib.bibtex'      : found
 Checking for program 'tex'               : /usr/bin/tex
 Checking for program 'latex'             : /usr/bin/latex
 Checking for program 'pdflatex'          : /usr/bin/pdflatex
 Checking for program 'xelatex'           : not found
 Checking for program 'bibtex'            : /usr/bin/bibtex
 Checking for program 'dvips'             : /usr/bin/dvips
 Checking for program 'dvipdf'            : /usr/bin/dvipdf
 Checking for program 'ps2pdf'            : /usr/bin/ps2pdf
 Checking for program 'makeindex'         : /usr/bin/makeindex
 Checking for program 'pdf2ps'            : /usr/bin/pdf2ps
 Checking for program 'makeglossaries'    : /usr/bin/makeglossaries
 Traceback (most recent call last):
   File "/home/ubuntu/git/rtems/rtems-
 docs/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Scripting.py",
 line 119, in waf_entry_point
     run_commands()
   File "/home/ubuntu/git/rtems/rtems-
 docs/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Scripting.py",
 line 182, in run_commands
     ctx=run_command(cmd_name)
   File "/home/ubuntu/git/rtems/rtems-
 docs/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Scripting.py",
 line 173, in run_command
     ctx.execute()
   File "/home/ubuntu/git/rtems/rtems-
 docs/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Configure.py",
 line 85, in execute
     super(ConfigurationContext,self).execute()
   File "/home/ubuntu/git/rtems/rtems-
 docs/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Context.py",
 line 92, in execute
     self.recurse([os.path.dirname(g_module.root_path)])
   File "/home/ubuntu/git/rtems/rtems-
 docs/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Context.py",
 line 133, in recurse
     user_function(self)
   File "/home/ubuntu/git/rtems/rtems-docs/wscript", line 49, in configure
     conf.recurse(b)
   File "/home/ubuntu/git/rtems/rtems-
 docs/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Context.py",
 line 133, in recurse
     user_function(self)
   File "/home/ubuntu/git/rtems/rtems-docs/common/waf.py", line 264, in
 cmd_configure
     latex.configure_tests(ctx)
   File "/home/ubuntu/git/rtems/rtems-docs/common/latex.py", line 122, in
 configure_tests
     local_packs = local_packages()
   File "/home/ubuntu/git/rtems/rtems-docs/common/latex.py", line 94, in
 local_packages
     host, version = host_name()
   File "/home/ubuntu/git/rtems/rtems-docs/common/latex.py", line 85, in
 host_name
     distro = platform.dist()
 AttributeError: module 'platform' has no attribute 'dist'
 ubuntu at ubuntu20lxc:~/git/rtems/rtems-docs$ python --version
 Python 3.8.2

 }}}

--
Ticket URL: <http://devel.rtems.org/ticket/4062>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list