Bug 7989

Summary: Bitbake fail build with python2-ply 3.6
Product: [Build System, Metadata & Runtime] BitBake Reporter: Gustavo <sl1pkn07>
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: VERIFIED OBSOLETE QA Contact: Bogdan Alexandru Voiculescu <bogdanx.a.voiculescu>
Severity: normal    
Priority: Medium CC: bogdanx.a.voiculescu, poky.bs.watcher, poky.watcher
Version: unspecified   
Target Milestone: 1.9   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Gustavo 2015-07-12 10:43:16 UTC
Hi

Build Bitbake 1.26 fail build if use python2-ply 3.6

if use python2-ply 3.5 build ok


└───╼ python2 setup.py build
running build
running build_py
creating build
creating build/lib
copying lib/codegen.py -> build/lib
creating build/lib/bb
creating build/lib/bb/server
copying lib/bb/server/process.py -> build/lib/bb/server
copying lib/bb/server/__init__.py -> build/lib/bb/server
copying lib/bb/server/xmlrpc.py -> build/lib/bb/server
creating build/lib/bb/parse
creating build/lib/bb/parse/parse_py
copying lib/bb/parse/parse_py/ConfHandler.py -> build/lib/bb/parse/parse_py
copying lib/bb/parse/parse_py/BBHandler.py -> build/lib/bb/parse/parse_py
copying lib/bb/parse/parse_py/__init__.py -> build/lib/bb/parse/parse_py
copying lib/bb/parse/ast.py -> build/lib/bb/parse
copying lib/bb/parse/__init__.py -> build/lib/bb/parse
creating build/lib/bb/fetch2
copying lib/bb/fetch2/clearcase.py -> build/lib/bb/fetch2
copying lib/bb/fetch2/perforce.py -> build/lib/bb/fetch2
copying lib/bb/fetch2/git.py -> build/lib/bb/fetch2
copying lib/bb/fetch2/svn.py -> build/lib/bb/fetch2
copying lib/bb/fetch2/sftp.py -> build/lib/bb/fetch2
copying lib/bb/fetch2/gitannex.py -> build/lib/bb/fetch2
copying lib/bb/fetch2/cvs.py -> build/lib/bb/fetch2
copying lib/bb/fetch2/bzr.py -> build/lib/bb/fetch2
copying lib/bb/fetch2/gitsm.py -> build/lib/bb/fetch2
copying lib/bb/fetch2/osc.py -> build/lib/bb/fetch2
copying lib/bb/fetch2/wget.py -> build/lib/bb/fetch2
copying lib/bb/fetch2/local.py -> build/lib/bb/fetch2
copying lib/bb/fetch2/hg.py -> build/lib/bb/fetch2
copying lib/bb/fetch2/repo.py -> build/lib/bb/fetch2
copying lib/bb/fetch2/ssh.py -> build/lib/bb/fetch2
copying lib/bb/fetch2/__init__.py -> build/lib/bb/fetch2
creating build/lib/bb/ui
creating build/lib/bb/ui/crumbs
copying lib/bb/ui/crumbs/sanitycheckpage.py -> build/lib/bb/ui/crumbs
copying lib/bb/ui/crumbs/builder.py -> build/lib/bb/ui/crumbs
copying lib/bb/ui/crumbs/runningbuild.py -> build/lib/bb/ui/crumbs
copying lib/bb/ui/crumbs/packageselectionpage.py -> build/lib/bb/ui/crumbs
copying lib/bb/ui/crumbs/builddetailspage.py -> build/lib/bb/ui/crumbs
copying lib/bb/ui/crumbs/hobeventhandler.py -> build/lib/bb/ui/crumbs
copying lib/bb/ui/crumbs/imageconfigurationpage.py -> build/lib/bb/ui/crumbs
copying lib/bb/ui/crumbs/imagedetailspage.py -> build/lib/bb/ui/crumbs
copying lib/bb/ui/crumbs/utils.py -> build/lib/bb/ui/crumbs
copying lib/bb/ui/crumbs/progress.py -> build/lib/bb/ui/crumbs
copying lib/bb/ui/crumbs/persistenttooltip.py -> build/lib/bb/ui/crumbs
copying lib/bb/ui/crumbs/hoblistmodel.py -> build/lib/bb/ui/crumbs
copying lib/bb/ui/crumbs/recipeselectionpage.py -> build/lib/bb/ui/crumbs
copying lib/bb/ui/crumbs/progressbar.py -> build/lib/bb/ui/crumbs
copying lib/bb/ui/crumbs/hobwidget.py -> build/lib/bb/ui/crumbs
copying lib/bb/ui/crumbs/hobcolor.py -> build/lib/bb/ui/crumbs
copying lib/bb/ui/crumbs/__init__.py -> build/lib/bb/ui/crumbs
copying lib/bb/ui/crumbs/buildmanager.py -> build/lib/bb/ui/crumbs
copying lib/bb/ui/crumbs/hobpages.py -> build/lib/bb/ui/crumbs
copying lib/bb/ui/ncurses.py -> build/lib/bb/ui
copying lib/bb/ui/uihelper.py -> build/lib/bb/ui
copying lib/bb/ui/depexp.py -> build/lib/bb/ui
copying lib/bb/ui/puccho.py -> build/lib/bb/ui
copying lib/bb/ui/goggle.py -> build/lib/bb/ui
copying lib/bb/ui/toasterui.py -> build/lib/bb/ui
copying lib/bb/ui/knotty.py -> build/lib/bb/ui
copying lib/bb/ui/hob.py -> build/lib/bb/ui
copying lib/bb/ui/buildinfohelper.py -> build/lib/bb/ui
copying lib/bb/ui/uievent.py -> build/lib/bb/ui
copying lib/bb/ui/__init__.py -> build/lib/bb/ui
creating build/lib/bb/pysh
copying lib/bb/pysh/pysh.py -> build/lib/bb/pysh
copying lib/bb/pysh/interp.py -> build/lib/bb/pysh
copying lib/bb/pysh/pyshtables.py -> build/lib/bb/pysh
copying lib/bb/pysh/sherrors.py -> build/lib/bb/pysh
copying lib/bb/pysh/subprocess_fix.py -> build/lib/bb/pysh
copying lib/bb/pysh/pyshlex.py -> build/lib/bb/pysh
copying lib/bb/pysh/pyshyacc.py -> build/lib/bb/pysh
copying lib/bb/pysh/lsprof.py -> build/lib/bb/pysh
copying lib/bb/pysh/builtin.py -> build/lib/bb/pysh
copying lib/bb/pysh/__init__.py -> build/lib/bb/pysh
copying lib/bb/process.py -> build/lib/bb
copying lib/bb/build.py -> build/lib/bb
copying lib/bb/command.py -> build/lib/bb
copying lib/bb/data.py -> build/lib/bb
copying lib/bb/codeparser.py -> build/lib/bb
copying lib/bb/methodpool.py -> build/lib/bb
copying lib/bb/compat.py -> build/lib/bb
copying lib/bb/main.py -> build/lib/bb
copying lib/bb/tinfoil.py -> build/lib/bb
copying lib/bb/taskdata.py -> build/lib/bb
copying lib/bb/cookerdata.py -> build/lib/bb
copying lib/bb/event.py -> build/lib/bb
copying lib/bb/msg.py -> build/lib/bb
copying lib/bb/persist_data.py -> build/lib/bb
copying lib/bb/providers.py -> build/lib/bb
copying lib/bb/namedtuple_with_abc.py -> build/lib/bb
copying lib/bb/utils.py -> build/lib/bb
copying lib/bb/checksum.py -> build/lib/bb
copying lib/bb/cache.py -> build/lib/bb
copying lib/bb/monitordisk.py -> build/lib/bb
copying lib/bb/COW.py -> build/lib/bb
copying lib/bb/runqueue.py -> build/lib/bb
copying lib/bb/siggen.py -> build/lib/bb
copying lib/bb/cache_extra.py -> build/lib/bb
copying lib/bb/daemonize.py -> build/lib/bb
copying lib/bb/data_smart.py -> build/lib/bb
copying lib/bb/__init__.py -> build/lib/bb
copying lib/bb/exceptions.py -> build/lib/bb
copying lib/bb/cooker.py -> build/lib/bb
creating build/lib/prserv
copying lib/prserv/serv.py -> build/lib/prserv
copying lib/prserv/db.py -> build/lib/prserv
copying lib/prserv/__init__.py -> build/lib/prserv
creating build/lib/bb/tests
copying lib/bb/tests/cow.py -> build/lib/bb/tests
copying lib/bb/tests/data.py -> build/lib/bb/tests
copying lib/bb/tests/codeparser.py -> build/lib/bb/tests
copying lib/bb/tests/utils.py -> build/lib/bb/tests
copying lib/bb/tests/fetch.py -> build/lib/bb/tests
copying lib/bb/tests/__init__.py -> build/lib/bb/tests
running build_scripts
creating build/scripts-2.7
copying and adjusting bin/bitbake -> build/scripts-2.7
copying and adjusting bin/bitbake-layers -> build/scripts-2.7
copying and adjusting bin/bitbake-diffsigs -> build/scripts-2.7
copying and adjusting bin/bitbake-prserv -> build/scripts-2.7
copying and adjusting bin/bitbake-selftest -> build/scripts-2.7
copying and adjusting bin/image-writer -> build/scripts-2.7
changing mode of build/scripts-2.7/bitbake from 644 to 755
changing mode of build/scripts-2.7/bitbake-layers from 644 to 755
changing mode of build/scripts-2.7/bitbake-diffsigs from 644 to 755
changing mode of build/scripts-2.7/bitbake-prserv from 644 to 755
changing mode of build/scripts-2.7/bitbake-selftest from 644 to 755
changing mode of build/scripts-2.7/image-writer from 644 to 755
 
******** Building bitbake-user-manual
 
cd bitbake-user-manual; xsltproc --stringparam html.stylesheet bitbake-user-manual-style.css --stringparam  chapter.autolabel 1 --stringparam  section.autolabel 1 --stringparam  section.label.includes.component.label 1 --xinclude -o bitbake-user-manual.html bitbake-user-manual-customization.xsl bitbake-user-manual.xml; cd ..
Note: namesp. cut : stripped namespace before processing           
            BitBake User Manual
        
Note: namesp. cut : processing stripped document                   
            BitBake User Manual

└───╼ python2 setup.py install --root=/usr --skip-build       
Traceback (most recent call last):
  File "setup.py", line 22, in <module>
    from bb import __version__
  File "lib/bb/__init__.py", line 77, in <module>
    from bb import fetch2 as fetch
  File "lib/bb/fetch2/__init__.py", line 39, in <module>
    from bb import data
  File "lib/bb/data.py", line 48, in <module>
    from bb import data_smart
  File "lib/bb/data_smart.py", line 35, in <module>
    import bb, bb.codeparser
  File "lib/bb/codeparser.py", line 7, in <module>
    from pysh import pyshyacc, pyshlex, sherrors
  File "lib/bb/pysh/pyshyacc.py", line 657, in <module>
    yacc.yacc(tabmodule = 'pysh.pyshtables', write_tables = 0, debug = 0)
  File "/usr/lib/python2.7/site-packages/ply/yacc.py", line 3212, in yacc
    exec('import %s' % pkgname)
  File "<string>", line 1, in <module>
ImportError: No module named pysh
lib/bb/event.py:111: RuntimeWarning: Parent module 'bb' not found while handling absolute import
  from bb.msg import BBLogFormatter
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "lib/bb/event.py", line 111, in print_ui_queue
    from bb.msg import BBLogFormatter
  File "lib/bb/__init__.py", line 77, in <module>
    from bb import fetch2 as fetch
  File "lib/bb/fetch2/__init__.py", line 39, in <module>
    from bb import data
  File "lib/bb/data.py", line 48, in <module>
    from bb import data_smart
  File "lib/bb/data_smart.py", line 35, in <module>
    import bb, bb.codeparser
  File "lib/bb/codeparser.py", line 7, in <module>
    from pysh import pyshyacc, pyshlex, sherrors
  File "lib/bb/pysh/pyshyacc.py", line 657, in <module>
    yacc.yacc(tabmodule = 'pysh.pyshtables', write_tables = 0, debug = 0)
  File "/usr/lib/python2.7/site-packages/ply/yacc.py", line 3212, in yacc
    exec('import %s' % pkgname)
  File "<string>", line 1, in <module>
ImportError: No module named pysh
Error in sys.exitfunc:
Traceback (most recent call last):
  File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "lib/bb/event.py", line 111, in print_ui_queue
    from bb.msg import BBLogFormatter
  File "lib/bb/__init__.py", line 77, in <module>
    from bb import fetch2 as fetch
  File "lib/bb/fetch2/__init__.py", line 39, in <module>
    from bb import data
  File "lib/bb/data.py", line 48, in <module>
    from bb import data_smart
  File "lib/bb/data_smart.py", line 35, in <module>
    import bb, bb.codeparser
  File "lib/bb/codeparser.py", line 7, in <module>
    from pysh import pyshyacc, pyshlex, sherrors
  File "lib/bb/pysh/pyshyacc.py", line 657, in <module>
    yacc.yacc(tabmodule = 'pysh.pyshtables', write_tables = 0, debug = 0)
  File "/usr/lib/python2.7/site-packages/ply/yacc.py", line 3212, in yacc
    exec('import %s' % pkgname)
  File "<string>", line 1, in <module>
ImportError: No module named pysh
Comment 1 Richard Purdie 2015-07-24 11:46:58 UTC
Setup.py was removed from bitbake: http://git.openembedded.org/bitbake/commit/?id=e446281fbdd13cdfd2e39af0f48035829e2133ba
Comment 2 Gustavo 2015-07-24 12:06:00 UTC
then now. how I can build and install bitbake?

greetings
Comment 3 Bogdan Alexandru Voiculescu 2015-11-02 08:36:11 UTC
Bitbake just need to be cloned: 
https://www.yoctoproject.org/docs/1.6/bitbake-user-manual/bitbake-user-manual.html#obtaining-bitbake


Verified as obsolete.