Bug 6928

Summary: Add python-email to buildtools-tarball
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Paul Eggleton <bluelightning>
Component: devtools / tool chainAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Undecided CC: meta.mr.watcher, meta.watcher, ross.burton
Version: 1.7   
Target Milestone: ---   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Paul Eggleton 2014-11-04 09:40:58 UTC
The automatic upgrade helper requires the email python module, and if you try to run it on a machine which has the buildtools installed (and env script sourced, which you'd need to run builds) then it fails to run:

$ ./upgradehelper.py 
Traceback (most recent call last):
  File "./upgradehelper.py", line 47, in <module>
    from emailhandler import Email
  File "/home/paul/poky/auto-upgrade-helper/emailhandler.py", line 29, in <module>
    from smtplib import SMTP
  File "/opt/poky/1.7/sysroots/x86_64-pokysdk-linux/usr/lib/python2.7/smtplib.py", line 46, in <module>
    import email.utils
ImportError: No module named email.utils
Comment 1 Ross Burton 2014-11-06 15:33:45 UTC
oe-core 745dfbc869fd593d1b92e2bc9c01d589ab21ade3 adds all of Python to the buildtools tarball.